From 92566e1b12115af563a3b9ac75d8a71dc0f81f00 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 4 Jun 2026 00:22:08 +0000 Subject: [PATCH 1/2] fix!: Changed proto3 optional flag of an existing field `value` in message `.google.cloud.geminidataanalytics.v1beta.LookerQuery` fix!: The type of an existing field `parameters` is changed from `.google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters.ParametersEntry` to `.google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters.Parameter` in message `.google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters` fix!: An existing field `region` is removed from message `.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference` docs: A comment for field `sources` in message `.google.cloud.geminidataanalytics.v1beta.Context` is changed docs: A comment for field `confidence_score` in message `.google.cloud.geminidataanalytics.v1beta.Context` is changed docs: A comment for field `example_queries` in message `.google.cloud.geminidataanalytics.v1beta.Context` is changed docs: A comment for field `looker_golden_queries` in message `.google.cloud.geminidataanalytics.v1beta.Context` is changed docs: A comment for field `glossary_terms` in message `.google.cloud.geminidataanalytics.v1beta.Context` is changed docs: A comment for field `value` in message `.google.cloud.geminidataanalytics.v1beta.LookerQuery` is changed docs: A comment for field `page_size` in message `.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest` is changed docs: A comment for method `Chat` in service `DataChatService` is changed docs: A comment for field `parameters` in message `.google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters` is changed docs: A comment for field `page_size` in message `.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest` is changed docs: A comment for field `project` in message `.google.cloud.geminidataanalytics.v1beta.ChatRequest` is changed docs: A comment for field `credentials` in message `.google.cloud.geminidataanalytics.v1beta.DataAgentContext` is changed docs: A comment for message `SystemMessage` is changed docs: A comment for field `clarification` in message `.google.cloud.geminidataanalytics.v1beta.SystemMessage` is changed docs: A comment for field `generated_looker_query` in message `.google.cloud.geminidataanalytics.v1beta.DataMessage` is changed docs: A comment for message `ClarificationQuestion` is changed docs: A comment for enum `SelectionMode` is changed docs: A comment for enum value `SELECTION_MODE_UNSPECIFIED` in enum `SelectionMode` is changed docs: A comment for enum value `SINGLE_SELECT` in enum `SelectionMode` is changed docs: A comment for enum value `MULTI_SELECT` in enum `SelectionMode` is changed docs: A comment for enum `ClarificationQuestionType` is changed docs: A comment for enum value `CLARIFICATION_QUESTION_TYPE_UNSPECIFIED` in enum `ClarificationQuestionType` is changed docs: A comment for enum value `FILTER_VALUES` in enum `ClarificationQuestionType` is changed docs: A comment for enum value `FIELDS` in enum `ClarificationQuestionType` is changed docs: A comment for field `question` in message `.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion` is changed docs: A comment for field `selection_mode` in message `.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion` is changed docs: A comment for field `options` in message `.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion` is changed docs: A comment for field `clarification_question_type` in message `.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion` is changed docs: A comment for message `ClarificationMessage` is changed docs: A comment for field `questions` in message `.google.cloud.geminidataanalytics.v1beta.ClarificationMessage` is changed docs: A comment for message `BigQueryTableReferences` is changed docs: A comment for field `studio_references` in message `.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferences` is changed docs: A comment for field `credentials` in message `.google.cloud.geminidataanalytics.v1beta.LookerExploreReferences` is changed docs: A comment for field `category` in message `.google.cloud.geminidataanalytics.v1beta.Field` is changed feat: A new field `user_functions` is added to message `.google.cloud.geminidataanalytics.v1beta.Context` feat: A new message `UserFunctions` is added feat: A new message `BigQueryRoutine` is added feat: A new message `BigQueryRoutineReference` is added feat: A new field `parameters` is added to message `.google.cloud.geminidataanalytics.v1beta.ExampleQuery` feat: A new message `QueryParameter` is added feat: A new message `MatchedQuery` is added feat: A new message `QueryParameterValues` is added feat: A new message `Citation` is added feat: A new message `CitationSource` is added feat: A new message `CitationAnchor` is added feat: A new resource_definition `cloudkms.googleapis.com/CryptoKey` is added feat: A new field `kms_key` is added to message `.google.cloud.geminidataanalytics.v1beta.Conversation` feat: A new field `memory_paused` is added to message `.google.cloud.geminidataanalytics.v1beta.Conversation` feat: A new field `kms_key` is added to message `.google.cloud.geminidataanalytics.v1beta.DataAgent` feat: A new message `Parameter` is added feat: A new field `credentials` is added to message `.google.cloud.geminidataanalytics.v1beta.ChatRequest` feat: A new field `citation` is added to message `.google.cloud.geminidataanalytics.v1beta.SystemMessage` feat: A new value `FOLLOWUP_QUESTIONS` is added to enum `TextType` feat: A new field `matched_query` is added to message `.google.cloud.geminidataanalytics.v1beta.DataMessage` feat: A new field `property_graph_references` is added to message `.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferences` feat: A new field `location_boundary` is added to message `.google.cloud.geminidataanalytics.v1beta.BigQueryTableReference` feat: A new message `DatabaseTableReference` is added feat: A new field `database_table_references` is added to message `.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference` feat: A new field `database_table_references` is added to message `.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference` feat: A new field `database_table_references` is added to message `.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference` feat: A new message `BigQueryPropertyGraphReference` is added feat: A new field `bigquery_property_graph_reference` is added to message `.google.cloud.geminidataanalytics.v1beta.Datasource` PiperOrigin-RevId: 926233116 Source-Link: https://github.com/googleapis/googleapis/commit/0db4dc67dd805d20294c6dc34068c37f546d71da Source-Link: https://github.com/googleapis/googleapis-gen/commit/fdac115ee4f8ab46edc896886b98a761dc304ded Copy-Tag: eyJwIjoiR2VtaW5pRGF0YUFuYWx5dGljcy8uT3dsQm90LnlhbWwiLCJoIjoiZmRhYzExNWVlNGY4YWI0NmVkYzg5Njg4NmI5OGE3NjFkYzMwNGRlZCJ9 --- .../Cloud/Geminidataanalytics/V1/Context.php | 28 + .../Geminidataanalytics/V1/Conversation.php | 28 + .../Geminidataanalytics/V1/Credentials.php | 25 + .../Geminidataanalytics/V1/DataAgent.php | 28 + .../V1/DataAgentService.php | 36 + .../V1/DataAnalyticsAgent.php | 26 + .../V1/DataChatService.php | 35 + .../Geminidataanalytics/V1/Datasource.php | 26 + .../GeminiDataAnalytics/V1/AnalysisEvent.php | 372 +++++ .../V1/AnalysisMessage.php | 108 ++ .../V1/AnalysisOptions.php | 77 ++ .../V1/AnalysisOptions/Python.php | 71 + .../GeminiDataAnalytics/V1/AnalysisQuery.php | 101 ++ .../GeminiDataAnalytics/V1/BigQueryJob.php | 263 ++++ .../V1/BigQueryPropertyGraphReference.php | 135 ++ .../V1/BigQueryRoutine.php | 115 ++ .../V1/BigQueryRoutineReference.php | 135 ++ .../V1/BigQueryTableReference.php | 179 +++ .../V1/BigQueryTableReferences.php | 69 + .../Cloud/GeminiDataAnalytics/V1/Blob.php | 101 ++ .../GeminiDataAnalytics/V1/ChartMessage.php | 108 ++ .../GeminiDataAnalytics/V1/ChartQuery.php | 105 ++ .../GeminiDataAnalytics/V1/ChartResult.php | 125 ++ .../GeminiDataAnalytics/V1/ChatRequest.php | 453 ++++++ .../V1/ChatRequest/Model.php | 58 + .../V1/ChatRequest/ThinkingMode.php | 61 + .../Cloud/GeminiDataAnalytics/V1/Citation.php | 101 ++ .../GeminiDataAnalytics/V1/CitationAnchor.php | 75 + .../TextMessageCitationAnchor.php | 197 +++ .../GeminiDataAnalytics/V1/CitationSource.php | 213 +++ .../V1/ClientManagedResourceContext.php | 152 ++ .../Cloud/GeminiDataAnalytics/V1/Context.php | 379 +++++ .../V1/Context/SchemaRelationship.php | 219 +++ .../SchemaRelationship/SchemaPaths.php | 109 ++ .../V1/Context/SchemaRelationship/Source.php | 68 + .../GeminiDataAnalytics/V1/Conversation.php | 383 ++++++ .../V1/ConversationOptions.php | 165 +++ .../V1/ConversationOptions/Model.php | 59 + .../V1/ConversationReference.php | 119 ++ .../V1/CreateConversationRequest.php | 229 +++ .../V1/CreateDataAgentRequest.php | 247 ++++ .../GeminiDataAnalytics/V1/Credentials.php | 75 + .../GeminiDataAnalytics/V1/DataAgent.php | 515 +++++++ .../V1/DataAgentContext.php | 101 ++ .../V1/DataAgentContext/ContextVersion.php | 65 + .../V1/DataAnalyticsAgent.php | 185 +++ .../GeminiDataAnalytics/V1/DataFilter.php | 148 ++ .../GeminiDataAnalytics/V1/DataFilterType.php | 56 + .../GeminiDataAnalytics/V1/DataMessage.php | 207 +++ .../GeminiDataAnalytics/V1/DataQuery.php | 193 +++ .../GeminiDataAnalytics/V1/DataResult.php | 227 +++ .../GeminiDataAnalytics/V1/Datasource.php | 278 ++++ .../V1/DatasourceOptions.php | 122 ++ .../V1/DatasourceReferences.php | 141 ++ .../V1/DeleteConversationRequest.php | 91 ++ .../V1/DeleteDataAgentRequest.php | 155 +++ .../GeminiDataAnalytics/V1/ErrorMessage.php | 78 ++ .../GeminiDataAnalytics/V1/ExampleQueries.php | 79 ++ .../GeminiDataAnalytics/V1/ExampleQuery.php | 167 +++ .../Cloud/GeminiDataAnalytics/V1/Field.php | 397 ++++++ .../V1/GetConversationRequest.php | 91 ++ .../V1/GetDataAgentRequest.php | 81 ++ .../GeminiDataAnalytics/V1/GlossaryTerm.php | 151 ++ .../V1/ListAccessibleDataAgentsRequest.php | 313 +++++ .../CreatorFilter.php | 68 + .../V1/ListAccessibleDataAgentsResponse.php | 135 ++ .../V1/ListConversationsRequest.php | 212 +++ .../V1/ListConversationsResponse.php | 101 ++ .../V1/ListDataAgentsRequest.php | 279 ++++ .../V1/ListDataAgentsResponse.php | 135 ++ .../V1/ListMessagesRequest.php | 221 +++ .../V1/ListMessagesResponse.php | 101 ++ .../V1/LookerExploreReference.php | 244 ++++ .../V1/LookerExploreReferences.php | 67 + .../V1/LookerGoldenQuery.php | 116 ++ .../GeminiDataAnalytics/V1/LookerQuery.php | 353 +++++ .../V1/LookerQuery/Filter.php | 119 ++ .../GeminiDataAnalytics/V1/LookerSettings.php | 87 ++ .../GeminiDataAnalytics/V1/MatchedQuery.php | 113 ++ .../Cloud/GeminiDataAnalytics/V1/Message.php | 194 +++ .../V1/OAuthCredentials.php | 108 ++ .../V1/OAuthCredentials/SecretBased.php | 102 ++ .../V1/OAuthCredentials/TokenBased.php | 68 + .../V1/OperationMetadata.php | 307 +++++ .../V1/PrivateLookerInstanceInfo.php | 102 ++ .../GeminiDataAnalytics/V1/QueryParameter.php | 156 +++ .../V1/QueryParameterValues.php | 103 ++ .../Cloud/GeminiDataAnalytics/V1/Schema.php | 273 ++++ .../GeminiDataAnalytics/V1/SchemaMessage.php | 108 ++ .../GeminiDataAnalytics/V1/SchemaQuery.php | 67 + .../GeminiDataAnalytics/V1/SchemaResult.php | 67 + .../GeminiDataAnalytics/V1/StorageMessage.php | 111 ++ .../V1/StudioDatasourceReference.php | 67 + .../V1/StudioDatasourceReferences.php | 67 + .../GeminiDataAnalytics/V1/SystemMessage.php | 371 +++++ .../GeminiDataAnalytics/V1/TextMessage.php | 139 ++ .../V1/TextMessage/TextType.php | 80 ++ .../V1/UpdateDataAgentRequest.php | 240 ++++ .../GeminiDataAnalytics/V1/UserFunctions.php | 67 + .../GeminiDataAnalytics/V1/UserMessage.php | 75 + .../create_data_agent.php | 85 ++ .../create_data_agent_sync.php | 73 + .../delete_data_agent.php | 80 ++ .../delete_data_agent_sync.php | 69 + .../DataAgentServiceClient/get_data_agent.php | 71 + .../DataAgentServiceClient/get_iam_policy.php | 71 + .../DataAgentServiceClient/get_location.php | 57 + .../list_accessible_data_agents.php | 77 ++ .../list_data_agents.php | 76 + .../DataAgentServiceClient/list_locations.php | 77 ++ .../DataAgentServiceClient/set_iam_policy.php | 73 + .../update_data_agent.php | 71 + .../update_data_agent_sync.php | 59 + .../samples/V1/DataChatServiceClient/chat.php | 79 ++ .../create_conversation.php | 84 ++ .../delete_conversation.php | 75 + .../get_conversation.php | 77 ++ .../V1/DataChatServiceClient/get_location.php | 57 + .../list_conversations.php | 77 ++ .../DataChatServiceClient/list_locations.php | 77 ++ .../DataChatServiceClient/list_messages.php | 82 ++ .../src/V1/Client/DataAgentServiceClient.php | 700 ++++++++++ .../src/V1/Client/DataChatServiceClient.php | 527 +++++++ .../v1/src/V1/gapic_metadata.json | 132 ++ .../data_agent_service_client_config.json | 99 ++ .../data_agent_service_descriptor_config.php | 238 ++++ .../data_agent_service_rest_client_config.php | 229 +++ .../data_chat_service_client_config.json | 72 + .../data_chat_service_descriptor_config.php | 159 +++ .../data_chat_service_rest_client_config.php | 168 +++ .../V1/Client/DataAgentServiceClientTest.php | 1225 +++++++++++++++++ .../V1/Client/DataChatServiceClientTest.php | 677 +++++++++ .../V1Beta/AgentContext.php | 25 + .../Geminidataanalytics/V1Beta/Context.php | 28 + .../V1Beta/Conversation.php | 28 + .../V1Beta/Credentials.php | 25 + .../Geminidataanalytics/V1Beta/DataAgent.php | 28 + .../V1Beta/DataAgentService.php | 36 + .../V1Beta/DataAnalyticsAgent.php | 26 + .../V1Beta/DataChatService.php | 35 + .../Geminidataanalytics/V1Beta/Datasource.php | 28 + .../V1beta/AgentContextReference.php | 67 + .../V1beta/AlloyDbDatabaseReference.php | 279 ++++ .../V1beta/AlloyDbReference.php | 126 ++ .../V1beta/AnalysisEvent.php | 372 +++++ .../V1beta/AnalysisMessage.php | 108 ++ .../V1beta/AnalysisOptions.php | 77 ++ .../V1beta/AnalysisOptions/Python.php | 71 + .../V1beta/AnalysisQuery.php | 101 ++ .../V1beta/BigQueryJob.php | 263 ++++ .../V1beta/BigQueryPropertyGraphReference.php | 135 ++ .../V1beta/BigQueryRoutine.php | 115 ++ .../V1beta/BigQueryRoutineReference.php | 135 ++ .../V1beta/BigQueryTableReference.php | 179 +++ .../V1beta/BigQueryTableReferences.php | 115 ++ .../Cloud/GeminiDataAnalytics/V1beta/Blob.php | 101 ++ .../V1beta/ChartMessage.php | 108 ++ .../V1beta/ChartOptions.php | 81 ++ .../V1beta/ChartOptions/ImageOptions.php | 108 ++ .../ChartOptions/ImageOptions/NoImage.php | 33 + .../ChartOptions/ImageOptions/SvgOptions.php | 33 + .../GeminiDataAnalytics/V1beta/ChartQuery.php | 105 ++ .../V1beta/ChartResult.php | 125 ++ .../V1beta/ChatRequest.php | 498 +++++++ .../V1beta/ChatRequest/Model.php | 55 + .../V1beta/ChatRequest/ThinkingMode.php | 61 + .../GeminiDataAnalytics/V1beta/Citation.php | 101 ++ .../V1beta/CitationAnchor.php | 75 + .../TextMessageCitationAnchor.php | 197 +++ .../V1beta/CitationSource.php | 213 +++ .../V1beta/ClarificationMessage.php | 83 ++ .../V1beta/ClarificationQuestion.php | 221 +++ .../ClarificationQuestionType.php | 69 + .../ClarificationQuestion/SelectionMode.php | 66 + .../V1beta/ClientManagedResourceContext.php | 152 ++ .../V1beta/CloudSqlDatabaseReference.php | 279 ++++ .../CloudSqlDatabaseReference/Engine.php | 61 + .../V1beta/CloudSqlReference.php | 126 ++ .../GeminiDataAnalytics/V1beta/Context.php | 379 +++++ .../V1beta/Context/SchemaRelationship.php | 219 +++ .../SchemaRelationship/SchemaPaths.php | 109 ++ .../Context/SchemaRelationship/Source.php | 68 + .../V1beta/Conversation.php | 383 ++++++ .../V1beta/ConversationOptions.php | 209 +++ .../V1beta/ConversationOptions/Model.php | 56 + .../V1beta/ConversationReference.php | 119 ++ .../V1beta/CreateConversationRequest.php | 229 +++ .../V1beta/CreateDataAgentRequest.php | 247 ++++ .../V1beta/Credentials.php | 75 + .../GeminiDataAnalytics/V1beta/DataAgent.php | 515 +++++++ .../V1beta/DataAgentContext.php | 176 +++ .../DataAgentContext/ContextVersion.php | 65 + .../V1beta/DataAnalyticsAgent.php | 185 +++ .../GeminiDataAnalytics/V1beta/DataFilter.php | 148 ++ .../V1beta/DataFilterType.php | 56 + .../V1beta/DataMessage.php | 252 ++++ .../GeminiDataAnalytics/V1beta/DataQuery.php | 193 +++ .../GeminiDataAnalytics/V1beta/DataResult.php | 227 +++ .../V1beta/DatabaseTableReference.php | 195 +++ .../GeminiDataAnalytics/V1beta/Datasource.php | 377 +++++ .../V1beta/DatasourceOptions.php | 122 ++ .../V1beta/DatasourceReferences.php | 249 ++++ .../V1beta/DeleteConversationRequest.php | 91 ++ .../V1beta/DeleteDataAgentRequest.php | 155 +++ .../V1beta/ErrorMessage.php | 78 ++ .../V1beta/ExampleQueries.php | 79 ++ .../V1beta/ExampleQuery.php | 167 +++ .../V1beta/ExecutedQueryResult.php | 227 +++ .../V1beta/ExecutedQueryResult/Column.php | 101 ++ .../V1beta/ExecutedQueryResult/Row.php | 67 + .../V1beta/ExecutedQueryResult/Value.php | 75 + .../GeminiDataAnalytics/V1beta/Field.php | 397 ++++++ .../V1beta/GenerationOptions.php | 185 +++ .../V1beta/GetConversationRequest.php | 91 ++ .../V1beta/GetDataAgentRequest.php | 81 ++ .../V1beta/GlossaryTerm.php | 151 ++ .../ListAccessibleDataAgentsRequest.php | 313 +++++ .../CreatorFilter.php | 68 + .../ListAccessibleDataAgentsResponse.php | 135 ++ .../V1beta/ListConversationsRequest.php | 212 +++ .../V1beta/ListConversationsResponse.php | 101 ++ .../V1beta/ListDataAgentsRequest.php | 279 ++++ .../V1beta/ListDataAgentsResponse.php | 135 ++ .../V1beta/ListMessagesRequest.php | 221 +++ .../V1beta/ListMessagesResponse.php | 101 ++ .../V1beta/LookerExploreReference.php | 244 ++++ .../V1beta/LookerExploreReferences.php | 142 ++ .../V1beta/LookerGoldenQuery.php | 116 ++ .../V1beta/LookerQuery.php | 353 +++++ .../V1beta/LookerQuery/Filter.php | 119 ++ .../V1beta/LookerSettings.php | 87 ++ .../V1beta/MatchedQuery.php | 113 ++ .../GeminiDataAnalytics/V1beta/Message.php | 194 +++ .../V1beta/OAuthCredentials.php | 108 ++ .../V1beta/OAuthCredentials/SecretBased.php | 102 ++ .../V1beta/OAuthCredentials/TokenBased.php | 68 + .../V1beta/OperationMetadata.php | 307 +++++ .../ParameterizedSecureViewParameters.php | 69 + .../Parameter.php | 101 ++ .../V1beta/PrivateLookerInstanceInfo.php | 102 ++ .../V1beta/QueryDataContext.php | 121 ++ .../V1beta/QueryDataRequest.php | 201 +++ .../V1beta/QueryDataResponse.php | 253 ++++ .../V1beta/QueryParameter.php | 156 +++ .../V1beta/QueryParameterValues.php | 103 ++ .../GeminiDataAnalytics/V1beta/Schema.php | 273 ++++ .../V1beta/SchemaMessage.php | 108 ++ .../V1beta/SchemaQuery.php | 67 + .../V1beta/SchemaResult.php | 67 + .../V1beta/SpannerDatabaseReference.php | 333 +++++ .../SpannerDatabaseReference/Engine.php | 61 + .../V1beta/SpannerReference.php | 126 ++ .../V1beta/StorageMessage.php | 111 ++ .../V1beta/StudioDatasourceReference.php | 67 + .../V1beta/StudioDatasourceReferences.php | 67 + .../V1beta/SystemMessage.php | 416 ++++++ .../V1beta/TextMessage.php | 139 ++ .../V1beta/TextMessage/TextType.php | 80 ++ .../V1beta/UpdateDataAgentRequest.php | 240 ++++ .../V1beta/UserFunctions.php | 67 + .../V1beta/UserMessage.php | 75 + .../create_data_agent.php | 85 ++ .../create_data_agent_sync.php | 73 + .../delete_data_agent.php | 80 ++ .../delete_data_agent_sync.php | 69 + .../DataAgentServiceClient/get_data_agent.php | 71 + .../DataAgentServiceClient/get_iam_policy.php | 71 + .../DataAgentServiceClient/get_location.php | 57 + .../list_accessible_data_agents.php | 77 ++ .../list_data_agents.php | 76 + .../DataAgentServiceClient/list_locations.php | 77 ++ .../DataAgentServiceClient/set_iam_policy.php | 73 + .../update_data_agent.php | 71 + .../update_data_agent_sync.php | 59 + .../V1beta/DataChatServiceClient/chat.php | 79 ++ .../create_conversation.php | 84 ++ .../delete_conversation.php | 75 + .../get_conversation.php | 77 ++ .../DataChatServiceClient/get_location.php | 57 + .../list_conversations.php | 77 ++ .../DataChatServiceClient/list_locations.php | 77 ++ .../DataChatServiceClient/list_messages.php | 82 ++ .../DataChatServiceClient/query_data.php | 82 ++ .../V1beta/Client/DataAgentServiceClient.php | 744 ++++++++++ .../V1beta/Client/DataChatServiceClient.php | 608 ++++++++ .../v1beta/src/V1beta/gapic_metadata.json | 137 ++ .../data_agent_service_client_config.json | 99 ++ .../data_agent_service_descriptor_config.php | 238 ++++ .../data_agent_service_rest_client_config.php | 229 +++ .../data_chat_service_client_config.json | 77 ++ .../data_chat_service_descriptor_config.php | 172 +++ .../data_chat_service_rest_client_config.php | 180 +++ .../Client/DataAgentServiceClientTest.php | 1225 +++++++++++++++++ .../Client/DataChatServiceClientTest.php | 765 ++++++++++ 294 files changed, 45670 insertions(+) create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Context.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Conversation.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Credentials.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataAgent.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataAgentService.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataAnalyticsAgent.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataChatService.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Datasource.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisEvent.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisOptions.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisOptions/Python.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisQuery.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryJob.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryPropertyGraphReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryRoutine.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryRoutineReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryTableReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryTableReferences.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Blob.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartQuery.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartResult.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest/Model.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest/ThinkingMode.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Citation.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationAnchor.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationAnchor/TextMessageCitationAnchor.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationSource.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ClientManagedResourceContext.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship/SchemaPaths.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship/Source.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Conversation.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationOptions.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationOptions/Model.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CreateConversationRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CreateDataAgentRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Credentials.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgent.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgentContext.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgentContext/ContextVersion.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAnalyticsAgent.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataFilter.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataFilterType.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataQuery.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataResult.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Datasource.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DatasourceOptions.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DatasourceReferences.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DeleteConversationRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DeleteDataAgentRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ErrorMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ExampleQueries.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ExampleQuery.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Field.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GetConversationRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GetDataAgentRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GlossaryTerm.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsRequest/CreatorFilter.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsResponse.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListConversationsRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListConversationsResponse.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListDataAgentsRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListDataAgentsResponse.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListMessagesRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListMessagesResponse.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerExploreReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerExploreReferences.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerGoldenQuery.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerQuery.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerQuery/Filter.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerSettings.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/MatchedQuery.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Message.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials/SecretBased.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials/TokenBased.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OperationMetadata.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/PrivateLookerInstanceInfo.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/QueryParameter.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/QueryParameterValues.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Schema.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaQuery.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaResult.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StorageMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StudioDatasourceReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StudioDatasourceReferences.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SystemMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/TextMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/TextMessage/TextType.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UpdateDataAgentRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UserFunctions.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UserMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/create_data_agent.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/create_data_agent_sync.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/delete_data_agent.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/delete_data_agent_sync.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_data_agent.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_location.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_accessible_data_agents.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_data_agents.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_locations.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/update_data_agent.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/update_data_agent_sync.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/chat.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/create_conversation.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/delete_conversation.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/get_conversation.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/get_location.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_conversations.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_locations.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_messages.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/src/V1/Client/DataAgentServiceClient.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/src/V1/Client/DataChatServiceClient.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_client_config.json create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_descriptor_config.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_rest_client_config.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_client_config.json create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_descriptor_config.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_rest_client_config.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/tests/Unit/V1/Client/DataAgentServiceClientTest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/tests/Unit/V1/Client/DataChatServiceClientTest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/AgentContext.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Context.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Conversation.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Credentials.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAgent.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAgentService.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAnalyticsAgent.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataChatService.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Datasource.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AgentContextReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AlloyDbDatabaseReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AlloyDbReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisEvent.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisOptions.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisOptions/Python.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisQuery.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryJob.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryPropertyGraphReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryRoutine.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryRoutineReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryTableReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryTableReferences.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Blob.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions/NoImage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions/SvgOptions.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartQuery.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartResult.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest/Model.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest/ThinkingMode.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Citation.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CitationAnchor.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CitationAnchor/TextMessageCitationAnchor.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CitationSource.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion/ClarificationQuestionType.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion/SelectionMode.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClientManagedResourceContext.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlDatabaseReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlDatabaseReference/Engine.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship/SchemaPaths.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship/Source.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Conversation.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationOptions.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationOptions/Model.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CreateConversationRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CreateDataAgentRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Credentials.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgent.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgentContext.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgentContext/ContextVersion.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAnalyticsAgent.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataFilter.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataFilterType.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataQuery.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataResult.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatabaseTableReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Datasource.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatasourceOptions.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatasourceReferences.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DeleteConversationRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DeleteDataAgentRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ErrorMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExampleQueries.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExampleQuery.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Column.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Row.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Value.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Field.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GenerationOptions.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GetConversationRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GetDataAgentRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GlossaryTerm.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsRequest/CreatorFilter.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsResponse.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListConversationsRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListConversationsResponse.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListDataAgentsRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListDataAgentsResponse.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListMessagesRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListMessagesResponse.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerExploreReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerExploreReferences.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerGoldenQuery.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerQuery.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerQuery/Filter.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerSettings.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/MatchedQuery.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Message.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials/SecretBased.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials/TokenBased.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OperationMetadata.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ParameterizedSecureViewParameters.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ParameterizedSecureViewParameters/Parameter.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/PrivateLookerInstanceInfo.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataContext.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataResponse.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryParameter.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryParameterValues.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Schema.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaQuery.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaResult.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerDatabaseReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerDatabaseReference/Engine.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StorageMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StudioDatasourceReference.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StudioDatasourceReferences.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SystemMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/TextMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/TextMessage/TextType.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UpdateDataAgentRequest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UserFunctions.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UserMessage.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/create_data_agent.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/create_data_agent_sync.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/delete_data_agent.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/delete_data_agent_sync.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_data_agent.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_location.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_accessible_data_agents.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_data_agents.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_locations.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/update_data_agent.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/update_data_agent_sync.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/chat.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/create_conversation.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/delete_conversation.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/get_conversation.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/get_location.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_conversations.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_locations.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_messages.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/query_data.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/Client/DataAgentServiceClient.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/Client/DataChatServiceClient.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/gapic_metadata.json create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_client_config.json create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_descriptor_config.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_rest_client_config.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_client_config.json create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_descriptor_config.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_rest_client_config.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/tests/Unit/V1beta/Client/DataAgentServiceClientTest.php create mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/tests/Unit/V1beta/Client/DataChatServiceClientTest.php diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Context.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Context.php new file mode 100644 index 000000000000..548d84386530 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Context.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\xE1!\x0A1google/cloud/geminidataanalytics/v1/context.proto\x12#google.cloud.geminidataanalytics.v1\x1A\x19google/api/resource.proto\x1A4google/cloud/geminidataanalytics/v1/datasource.proto\x1A\x1Egoogle/protobuf/wrappers.proto\"\x90\x09\x0A\x07Context\x12\x1F\x0A\x12system_instruction\x18\x01 \x01(\x09B\x03\xE0A\x01\x12]\x0A\x15datasource_references\x18\x07 \x01(\x0B29.google.cloud.geminidataanalytics.v1.DatasourceReferencesB\x03\xE0A\x02\x12N\x0A\x07options\x18\x03 \x01(\x0B28.google.cloud.geminidataanalytics.v1.ConversationOptionsB\x03\xE0A\x01\x12O\x0A\x0Fexample_queries\x18\x05 \x03(\x0B21.google.cloud.geminidataanalytics.v1.ExampleQueryB\x03\xE0A\x01\x12Z\x0A\x15looker_golden_queries\x18\x0B \x03(\x0B26.google.cloud.geminidataanalytics.v1.LookerGoldenQueryB\x03\xE0A\x01\x12N\x0A\x0Eglossary_terms\x18\x08 \x03(\x0B21.google.cloud.geminidataanalytics.v1.GlossaryTermB\x03\xE0A\x01\x12b\x0A\x14schema_relationships\x18\x09 \x03(\x0B2?.google.cloud.geminidataanalytics.v1.Context.SchemaRelationshipB\x03\xE0A\x01\x12O\x0A\x0Euser_functions\x18\x0A \x01(\x0B22.google.cloud.geminidataanalytics.v1.UserFunctionsB\x03\xE0A\x01\x1A\x82\x04\x0A\x12SchemaRelationship\x12f\x0A\x11left_schema_paths\x18\x01 \x01(\x0B2K.google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SchemaPaths\x12g\x0A\x12right_schema_paths\x18\x02 \x01(\x0B2K.google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SchemaPaths\x12\\\x0A\x07sources\x18\x03 \x03(\x0E2F.google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SourceB\x03\xE0A\x01\x12\x1D\x0A\x10confidence_score\x18\x04 \x01(\x02B\x03\xE0A\x01\x1A/\x0A\x0BSchemaPaths\x12\x11\x0A\x09table_fqn\x18\x01 \x01(\x09\x12\x0D\x0A\x05paths\x18\x02 \x03(\x09\"m\x0A\x06Source\x12\x16\x0A\x12SOURCE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14BIGQUERY_JOB_HISTORY\x10\x01\x12\x11\x0A\x0DLLM_SUGGESTED\x10\x02\x12\x1E\x0A\x1ABIGQUERY_TABLE_CONSTRAINTS\x10\x03\"Z\x0A\x0DUserFunctions\x12I\x0A\x0Bbq_routines\x18\x01 \x03(\x0B24.google.cloud.geminidataanalytics.v1.BigQueryRoutine\"\x80\x01\x0A\x0FBigQueryRoutine\x12X\x0A\x11routine_reference\x18\x01 \x01(\x0B2=.google.cloud.geminidataanalytics.v1.BigQueryRoutineReference\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\"V\x0A\x18BigQueryRoutineReference\x12\x12\x0A\x0Aproject_id\x18\x01 \x01(\x09\x12\x12\x0A\x0Adataset_id\x18\x02 \x01(\x09\x12\x12\x0A\x0Aroutine_id\x18\x03 \x01(\x09\"\xA7\x01\x0A\x0CExampleQuery\x12\x18\x0A\x09sql_query\x18e \x01(\x09B\x03\xE0A\x01H\x00\x12&\x0A\x19natural_language_question\x18\x01 \x01(\x09B\x03\xE0A\x01\x12L\x0A\x0Aparameters\x18\x03 \x03(\x0B23.google.cloud.geminidataanalytics.v1.QueryParameterB\x03\xE0A\x01B\x07\x0A\x05query\"U\x0A\x0EQueryParameter\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09data_type\x18\x03 \x01(\x09B\x03\xE0A\x02\"\xB3\x01\x0A\x0CMatchedQuery\x12H\x0A\x0Dexample_query\x18\x01 \x01(\x0B21.google.cloud.geminidataanalytics.v1.ExampleQuery\x12Y\x0A\x16query_parameter_values\x18\x02 \x03(\x0B29.google.cloud.geminidataanalytics.v1.QueryParameterValues\"=\x0A\x14QueryParameterValues\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x12\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x89\x01\x0A\x11LookerGoldenQuery\x12'\x0A\x1Anatural_language_questions\x18\x04 \x03(\x09B\x03\xE0A\x01\x12K\x0A\x0Clooker_query\x18\x05 \x01(\x0B20.google.cloud.geminidataanalytics.v1.LookerQueryB\x03\xE0A\x01\"\xE7\x02\x0A\x0BLookerQuery\x12\x12\x0A\x05model\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x14\x0A\x07explore\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06fields\x18\x03 \x03(\x09B\x03\xE0A\x01\x12M\x0A\x07filters\x18\x04 \x03(\x0B27.google.cloud.geminidataanalytics.v1.LookerQuery.FilterB\x03\xE0A\x01\x12\x12\x0A\x05sorts\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\x17\x0A\x05limit\x18\x06 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01\x12\x1A\x0A\x08query_id\x18\x0A \x01(\x09B\x03\xE0A\x01H\x01\x88\x01\x01\x12\x1B\x0A\x09client_id\x18\x0B \x01(\x09B\x03\xE0A\x01H\x02\x88\x01\x01\x1A?\x0A\x06Filter\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B\x08\x0A\x06_valueB\x08\x0A\x06_limitB\x0B\x0A\x09_query_idB\x0C\x0A\x0A_client_id\"X\x0A\x0CGlossaryTerm\x12\x19\x0A\x0Cdisplay_name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06labels\x18\x03 \x03(\x09B\x03\xE0A\x01\"\xCB\x02\x0A\x13ConversationOptions\x12K\x0A\x08analysis\x18\x02 \x01(\x0B24.google.cloud.geminidataanalytics.v1.AnalysisOptionsB\x03\xE0A\x01\x12O\x0A\x0Adatasource\x18\x03 \x01(\x0B26.google.cloud.geminidataanalytics.v1.DatasourceOptionsB\x03\xE0A\x01\x12W\x0A\x05model\x18\x06 \x01(\x0E2>.google.cloud.geminidataanalytics.v1.ConversationOptions.ModelB\x03\xE0A\x01H\x00\x88\x01\x01\"3\x0A\x05Model\x12\x15\x0A\x11MODEL_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FLATEST_GA_MODEL\x10\x01B\x08\x0A\x06_model\"Y\x0A\x11DatasourceOptions\x12D\x0A\x1Abig_query_max_billed_bytes\x18\x01 \x01(\x0B2\x1B.google.protobuf.Int64ValueB\x03\xE0A\x01\"\x83\x01\x0A\x0FAnalysisOptions\x12P\x0A\x06python\x18\x01 \x01(\x0B2;.google.cloud.geminidataanalytics.v1.AnalysisOptions.PythonB\x03\xE0A\x01\x1A\x1E\x0A\x06Python\x12\x14\x0A\x07enabled\x18\x01 \x01(\x08B\x03\xE0A\x01\"\xA0\x01\x0A\x08Citation\x12I\x0A\x07sources\x18\x01 \x03(\x0B23.google.cloud.geminidataanalytics.v1.CitationSourceB\x03\xE0A\x03\x12I\x0A\x07anchors\x18\x02 \x03(\x0B23.google.cloud.geminidataanalytics.v1.CitationAnchorB\x03\xE0A\x03\"\xFA\x01\x0A\x0ECitationSource\x12\x12\x0A\x03uri\x18\x03 \x01(\x09B\x03\xE0A\x03H\x00\x12O\x0A\x0Dexample_query\x18\x04 \x01(\x0B21.google.cloud.geminidataanalytics.v1.ExampleQueryB\x03\xE0A\x03H\x00\x12O\x0A\x0Dglossary_term\x18\x05 \x01(\x0B21.google.cloud.geminidataanalytics.v1.GlossaryTermB\x03\xE0A\x03H\x00\x12\x0F\x0A\x02id\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05title\x18\x02 \x01(\x09B\x03\xE0A\x03B\x0D\x0A\x0Bsource_type\"\xA2\x02\x0A\x0ECitationAnchor\x12q\x0A\x13text_message_anchor\x18\x01 \x01(\x0B2M.google.cloud.geminidataanalytics.v1.CitationAnchor.TextMessageCitationAnchorB\x03\xE0A\x03H\x00\x1A\x8D\x01\x0A\x19TextMessageCitationAnchor\x12\x17\x0A\x0Apart_index\x18\x01 \x01(\x05B\x03\xE0A\x03\x12\x1F\x0A\x12start_offset_bytes\x18\x02 \x01(\x05B\x03\xE0A\x03\x12\x1D\x0A\x10end_offset_bytes\x18\x03 \x01(\x05B\x03\xE0A\x03\x12\x17\x0A\x0Asource_ids\x18\x04 \x03(\x09B\x03\xE0A\x03B\x0D\x0A\x0Banchor_typeB\x89\x02\x0A'com.google.cloud.geminidataanalytics.v1B\x0CContextProtoP\x01ZYcloud.google.com/go/geminidataanalytics/apiv1/geminidataanalyticspb;geminidataanalyticspb\xAA\x02#Google.Cloud.GeminiDataAnalytics.V1\xCA\x02#Google\\Cloud\\GeminiDataAnalytics\\V1\xEA\x02&Google::Cloud::GeminiDataAnalytics::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Conversation.php new file mode 100644 index 000000000000..c7884d60e600 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Conversation.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\x90\x0F\x0A6google/cloud/geminidataanalytics/v1/conversation.proto\x12#google.cloud.geminidataanalytics.v1\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xC6\x04\x0A\x0CConversation\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x01\xE0A\x08\x12\x13\x0A\x06agents\x18\x02 \x03(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x127\x0A\x0Elast_used_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12R\x0A\x06labels\x18\x09 \x03(\x0B2=.google.cloud.geminidataanalytics.v1.Conversation.LabelsEntryB\x03\xE0A\x01\x12?\x0A\x07kms_key\x18\x0A \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKeyH\x00\x88\x01\x01\x12\x1F\x0A\x0Dmemory_paused\x18\x0B \x01(\x08B\x03\xE0A\x01H\x01\x88\x01\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x98\x01\xEAA\x94\x01\x0A/geminidataanalytics.googleapis.com/Conversation\x12Dprojects/{project}/locations/{location}/conversations/{conversation}*\x0Dconversations2\x0CconversationB\x0A\x0A\x08_kms_keyB\x10\x0A\x0E_memory_paused\"\xF1\x01\x0A\x19CreateConversationRequest\x12G\x0A\x06parent\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x12/geminidataanalytics.googleapis.com/Conversation\x12\x1C\x0A\x0Fconversation_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12L\x0A\x0Cconversation\x18\x03 \x01(\x0B21.google.cloud.geminidataanalytics.v1.ConversationB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"_\x0A\x16GetConversationRequest\x12E\x0A\x04name\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/Conversation\"\xA9\x01\x0A\x18ListConversationsRequest\x12G\x0A\x06parent\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x12/geminidataanalytics.googleapis.com/Conversation\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\"~\x0A\x19ListConversationsResponse\x12H\x0A\x0Dconversations\x18\x01 \x03(\x0B21.google.cloud.geminidataanalytics.v1.Conversation\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"b\x0A\x19DeleteConversationRequest\x12E\x0A\x04name\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/ConversationB\xA1\x03\x0A'com.google.cloud.geminidataanalytics.v1B\x11ConversationProtoP\x01ZYcloud.google.com/go/geminidataanalytics/apiv1/geminidataanalyticspb;geminidataanalyticspb\xAA\x02#Google.Cloud.GeminiDataAnalytics.V1\xCA\x02#Google\\Cloud\\GeminiDataAnalytics\\V1\xEA\x02&Google::Cloud::GeminiDataAnalytics::V1\xEAA\x8F\x01\x0A!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}*\x0AcryptoKeys2\x09cryptoKeyb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Credentials.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Credentials.php new file mode 100644 index 000000000000..eb17d512fd0e --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Credentials.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\x84\x06\x0A5google/cloud/geminidataanalytics/v1/credentials.proto\x12#google.cloud.geminidataanalytics.v1\"]\x0A\x0BCredentials\x12F\x0A\x05oauth\x18\x01 \x01(\x0B25.google.cloud.geminidataanalytics.v1.OAuthCredentialsH\x00B\x06\x0A\x04kind\"\xAE\x02\x0A\x10OAuthCredentials\x12S\x0A\x06secret\x18\x02 \x01(\x0B2A.google.cloud.geminidataanalytics.v1.OAuthCredentials.SecretBasedH\x00\x12Q\x0A\x05token\x18\x03 \x01(\x0B2@.google.cloud.geminidataanalytics.v1.OAuthCredentials.TokenBasedH\x00\x1AA\x0A\x0BSecretBased\x12\x16\x0A\x09client_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1A\x0A\x0Dclient_secret\x18\x03 \x01(\x09B\x03\xE0A\x02\x1A'\x0A\x0ATokenBased\x12\x19\x0A\x0Caccess_token\x18\x01 \x01(\x09B\x03\xE0A\x02B\x06\x0A\x04kindB\x8D\x02\x0A'com.google.cloud.geminidataanalytics.v1B\x10CredentialsProtoP\x01ZYcloud.google.com/go/geminidataanalytics/apiv1/geminidataanalyticspb;geminidataanalyticspb\xAA\x02#Google.Cloud.GeminiDataAnalytics.V1\xCA\x02#Google\\Cloud\\GeminiDataAnalytics\\V1\xEA\x02&Google::Cloud::GeminiDataAnalytics::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataAgent.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataAgent.php new file mode 100644 index 000000000000..da6a077cca8f --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataAgent.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\xD8\x09\x0A4google/cloud/geminidataanalytics/v1/data_agent.proto\x12#google.cloud.geminidataanalytics.v1\x1A\x19google/api/resource.proto\x1A>google/cloud/geminidataanalytics/v1/data_analytics_agent.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xE8\x05\x0A\x09DataAgent\x12W\x0A\x14data_analytics_agent\x18e \x01(\x0B27.google.cloud.geminidataanalytics.v1.DataAnalyticsAgentH\x00\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x01\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x12O\x0A\x06labels\x18\x05 \x03(\x0B2:.google.cloud.geminidataanalytics.v1.DataAgent.LabelsEntryB\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bdelete_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x123\x0A\x0Apurge_time\x18\x0D \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12?\x0A\x07kms_key\x18\x0E \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKeyH\x01\x88\x01\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x8A\x01\xEAA\x86\x01\x0A,geminidataanalytics.googleapis.com/DataAgent\x12?projects/{project}/locations/{location}/dataAgents/{data_agent}*\x0AdataAgents2\x09dataAgentB\x06\x0A\x04typeB\x0A\x0A\x08_kms_keyB\x8B\x02\x0A'com.google.cloud.geminidataanalytics.v1B\x0EDataAgentProtoP\x01ZYcloud.google.com/go/geminidataanalytics/apiv1/geminidataanalyticspb;geminidataanalyticspb\xAA\x02#Google.Cloud.GeminiDataAnalytics.V1\xCA\x02#Google\\Cloud\\GeminiDataAnalytics\\V1\xEA\x02&Google::Cloud::GeminiDataAnalytics::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataAgentService.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataAgentService.php new file mode 100644 index 000000000000..f392675a5827 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataAgentService.php @@ -0,0 +1,36 @@ +internalAddGeneratedFile( + "\x0A\xCD'\x0AinternalAddGeneratedFile( + "\x0A\xBB\x05\x0A>google/cloud/geminidataanalytics/v1/data_analytics_agent.proto\x12#google.cloud.geminidataanalytics.v1\x1A1google/cloud/geminidataanalytics/v1/context.proto\"\x81\x02\x0A\x12DataAnalyticsAgent\x12J\x0A\x0Fstaging_context\x18\x05 \x01(\x0B2,.google.cloud.geminidataanalytics.v1.ContextB\x03\xE0A\x01\x12L\x0A\x11published_context\x18\x06 \x01(\x0B2,.google.cloud.geminidataanalytics.v1.ContextB\x03\xE0A\x01\x12Q\x0A\x16last_published_context\x18\x07 \x01(\x0B2,.google.cloud.geminidataanalytics.v1.ContextB\x03\xE0A\x03B\x94\x02\x0A'com.google.cloud.geminidataanalytics.v1B\x17DataAnalyticsAgentProtoP\x01ZYcloud.google.com/go/geminidataanalytics/apiv1/geminidataanalyticspb;geminidataanalyticspb\xAA\x02#Google.Cloud.GeminiDataAnalytics.V1\xCA\x02#Google\\Cloud\\GeminiDataAnalytics\\V1\xEA\x02&Google::Cloud::GeminiDataAnalytics::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataChatService.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataChatService.php new file mode 100644 index 000000000000..a066e4867182 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataChatService.php @@ -0,0 +1,35 @@ +internalAddGeneratedFile( + "\x0A\x91<\x0A;google/cloud/geminidataanalytics/v1/data_chat_service.proto\x12#google.cloud.geminidataanalytics.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A1google/cloud/geminidataanalytics/v1/context.proto\x1A6google/cloud/geminidataanalytics/v1/conversation.proto\x1A5google/cloud/geminidataanalytics/v1/credentials.proto\x1A4google/cloud/geminidataanalytics/v1/datasource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xA4\x01\x0A\x13ListMessagesRequest\x12G\x0A\x06parent\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/Conversation\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"v\x0A\x14ListMessagesResponse\x12E\x0A\x08messages\x18\x01 \x03(\x0B23.google.cloud.geminidataanalytics.v1.StorageMessage\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"c\x0A\x0EStorageMessage\x12\x12\x0A\x0Amessage_id\x18\x01 \x01(\x09\x12=\x0A\x07message\x18\x02 \x01(\x0B2,.google.cloud.geminidataanalytics.v1.Message\"\xD3\x07\x0A\x0BChatRequest\x12K\x0A\x0Einline_context\x18e \x01(\x0B2,.google.cloud.geminidataanalytics.v1.ContextB\x03\xE0A\x01H\x00\x12a\x0A\x16conversation_reference\x18g \x01(\x0B2:.google.cloud.geminidataanalytics.v1.ConversationReferenceB\x03\xE0A\x01H\x00\x12X\x0A\x12data_agent_context\x18h \x01(\x0B25.google.cloud.geminidataanalytics.v1.DataAgentContextB\x03\xE0A\x01H\x00\x12q\x0A\x1Fclient_managed_resource_context\x18i \x01(\x0B2A.google.cloud.geminidataanalytics.v1.ClientManagedResourceContextB\x03\xE0A\x01H\x00\x12S\x0A\x0Flooker_settings\x18\x0D \x01(\x0B23.google.cloud.geminidataanalytics.v1.LookerSettingsB\x03\xE0A\x01H\x01\x12\x13\x0A\x06parent\x18\x03 \x01(\x09B\x03\xE0A\x02\x12C\x0A\x08messages\x18\x02 \x03(\x0B2,.google.cloud.geminidataanalytics.v1.MessageB\x03\xE0A\x02\x12J\x0A\x0Bcredentials\x18\x07 \x01(\x0B20.google.cloud.geminidataanalytics.v1.CredentialsB\x03\xE0A\x01\x12Y\x0A\x0Dthinking_mode\x18\x09 \x01(\x0E2=.google.cloud.geminidataanalytics.v1.ChatRequest.ThinkingModeB\x03\xE0A\x01\x12J\x0A\x05model\x18\x0B \x01(\x0E26.google.cloud.geminidataanalytics.v1.ChatRequest.ModelB\x03\xE0A\x01\"E\x0A\x0CThinkingMode\x12\x1D\x0A\x19THINKING_MODE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04FAST\x10\x01\x12\x0C\x0A\x08THINKING\x10\x02\"3\x0A\x05Model\x12\x15\x0A\x11MODEL_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FLATEST_GA_MODEL\x10\x01B\x12\x0A\x10context_providerB\x15\x0A\x13datasource_settings\"\x8F\x02\x0A\x10DataAgentContext\x12H\x0A\x0Adata_agent\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,geminidataanalytics.googleapis.com/DataAgent\x12b\x0A\x0Fcontext_version\x18\x03 \x01(\x0E2D.google.cloud.geminidataanalytics.v1.DataAgentContext.ContextVersionB\x03\xE0A\x01\"M\x0A\x0EContextVersion\x12\x1F\x0A\x1BCONTEXT_VERSION_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07STAGING\x10\x01\x12\x0D\x0A\x09PUBLISHED\x10\x02\"\xBE\x01\x0A\x15ConversationReference\x12M\x0A\x0Cconversation\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/Conversation\x12V\x0A\x12data_agent_context\x18\x03 \x01(\x0B25.google.cloud.geminidataanalytics.v1.DataAgentContextB\x03\xE0A\x02\"\x9E\x01\x0A\x1CClientManagedResourceContext\x12I\x0A\x0Einline_context\x18\x01 \x01(\x0B2,.google.cloud.geminidataanalytics.v1.ContextB\x03\xE0A\x02\x12\x1C\x0A\x0Fconversation_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08agent_id\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xF6\x01\x0A\x07Message\x12H\x0A\x0Cuser_message\x18\x02 \x01(\x0B20.google.cloud.geminidataanalytics.v1.UserMessageH\x00\x12L\x0A\x0Esystem_message\x18\x03 \x01(\x0B22.google.cloud.geminidataanalytics.v1.SystemMessageH\x00\x122\x0A\x09timestamp\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x17\x0A\x0Amessage_id\x18\x04 \x01(\x09B\x03\xE0A\x01B\x06\x0A\x04kind\".\x0A\x0ELookerSettings\x12\x1C\x0A\x0Fenable_dev_mode\x18\x01 \x01(\x08B\x03\xE0A\x01\"%\x0A\x0BUserMessage\x12\x0E\x0A\x04text\x18\x01 \x01(\x09H\x00B\x06\x0A\x04kind\"\xF2\x04\x0A\x0DSystemMessage\x12@\x0A\x04text\x18\x01 \x01(\x0B20.google.cloud.geminidataanalytics.v1.TextMessageH\x00\x12D\x0A\x06schema\x18\x02 \x01(\x0B22.google.cloud.geminidataanalytics.v1.SchemaMessageH\x00\x12@\x0A\x04data\x18\x03 \x01(\x0B20.google.cloud.geminidataanalytics.v1.DataMessageH\x00\x12H\x0A\x08analysis\x18\x04 \x01(\x0B24.google.cloud.geminidataanalytics.v1.AnalysisMessageH\x00\x12B\x0A\x05chart\x18\x05 \x01(\x0B21.google.cloud.geminidataanalytics.v1.ChartMessageH\x00\x12B\x0A\x05error\x18\x06 \x01(\x0B21.google.cloud.geminidataanalytics.v1.ErrorMessageH\x00\x12S\x0A\x0Fexample_queries\x18\x0D \x01(\x0B23.google.cloud.geminidataanalytics.v1.ExampleQueriesB\x03\xE0A\x01H\x00\x12\x15\x0A\x08group_id\x18\x0C \x01(\x05H\x01\x88\x01\x01\x12D\x0A\x08citation\x18\x0F \x01(\x0B2-.google.cloud.geminidataanalytics.v1.CitationB\x03\xE0A\x03B\x06\x0A\x04kindB\x0B\x0A\x09_group_id\"\x82\x02\x0A\x0BTextMessage\x12\x12\x0A\x05parts\x18\x01 \x03(\x09B\x03\xE0A\x01\x12Q\x0A\x09text_type\x18\x02 \x01(\x0E29.google.cloud.geminidataanalytics.v1.TextMessage.TextTypeB\x03\xE0A\x01\x12\x1E\x0A\x11thought_signature\x18\x03 \x01(\x0CB\x03\xE0A\x01\"l\x0A\x08TextType\x12\x19\x0A\x15TEXT_TYPE_UNSPECIFIED\x10\x00\x12\x12\x0A\x0EFINAL_RESPONSE\x10\x01\x12\x0B\x0A\x07THOUGHT\x10\x02\x12\x0C\x0A\x08PROGRESS\x10\x03\x12\x16\x0A\x12FOLLOWUP_QUESTIONS\x10\x04\"\x9F\x01\x0A\x0DSchemaMessage\x12A\x0A\x05query\x18\x01 \x01(\x0B20.google.cloud.geminidataanalytics.v1.SchemaQueryH\x00\x12C\x0A\x06result\x18\x02 \x01(\x0B21.google.cloud.geminidataanalytics.v1.SchemaResultH\x00B\x06\x0A\x04kind\"\$\x0A\x0BSchemaQuery\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x01\"Y\x0A\x0CSchemaResult\x12I\x0A\x0Bdatasources\x18\x01 \x03(\x0B2/.google.cloud.geminidataanalytics.v1.DatasourceB\x03\xE0A\x01\"\xC9\x02\x0A\x0BDataMessage\x12?\x0A\x05query\x18\x01 \x01(\x0B2..google.cloud.geminidataanalytics.v1.DataQueryH\x00\x12\x17\x0A\x0Dgenerated_sql\x18\x02 \x01(\x09H\x00\x12A\x0A\x06result\x18\x03 \x01(\x0B2/.google.cloud.geminidataanalytics.v1.DataResultH\x00\x12I\x0A\x0Dbig_query_job\x18\x05 \x01(\x0B20.google.cloud.geminidataanalytics.v1.BigQueryJobH\x00\x12J\x0A\x0Dmatched_query\x18\x06 \x01(\x0B21.google.cloud.geminidataanalytics.v1.MatchedQueryH\x00B\x06\x0A\x04kind\"\xD7\x01\x0A\x09DataQuery\x12G\x0A\x06looker\x18\x04 \x01(\x0B20.google.cloud.geminidataanalytics.v1.LookerQueryB\x03\xE0A\x01H\x00\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12I\x0A\x0Bdatasources\x18\x02 \x03(\x0B2/.google.cloud.geminidataanalytics.v1.DatasourceB\x03\xE0A\x01B\x0C\x0A\x0Aquery_type\"\xC3\x01\x0A\x0ADataResult\x12\x11\x0A\x04name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12@\x0A\x06schema\x18\x05 \x01(\x0B2+.google.cloud.geminidataanalytics.v1.SchemaB\x03\xE0A\x01\x12*\x0A\x04data\x18\x02 \x03(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x124\x0A\x0Eformatted_data\x18\x06 \x03(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\"\xF1\x01\x0A\x0BBigQueryJob\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06job_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08location\x18\x05 \x01(\x09B\x03\xE0A\x01\x12[\x0A\x11destination_table\x18\x03 \x01(\x0B2;.google.cloud.geminidataanalytics.v1.BigQueryTableReferenceB\x03\xE0A\x01\x12@\x0A\x06schema\x18\x07 \x01(\x0B2+.google.cloud.geminidataanalytics.v1.SchemaB\x03\xE0A\x01\"\xAC\x01\x0A\x0FAnalysisMessage\x12C\x0A\x05query\x18\x01 \x01(\x0B22.google.cloud.geminidataanalytics.v1.AnalysisQueryH\x00\x12L\x0A\x0Eprogress_event\x18\x02 \x01(\x0B22.google.cloud.geminidataanalytics.v1.AnalysisEventH\x00B\x06\x0A\x04kind\"F\x0A\x0DAnalysisQuery\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11data_result_names\x18\x02 \x03(\x09B\x03\xE0A\x01\"\xAA\x02\x0A\x0DAnalysisEvent\x12\x1B\x0A\x11planner_reasoning\x18\x02 \x01(\x09H\x00\x12\x1B\x0A\x11coder_instruction\x18\x03 \x01(\x09H\x00\x12\x0E\x0A\x04code\x18\x04 \x01(\x09H\x00\x12\x1A\x0A\x10execution_output\x18\x05 \x01(\x09H\x00\x12\x19\x0A\x0Fexecution_error\x18\x06 \x01(\x09H\x00\x12 \x0A\x16result_vega_chart_json\x18\x07 \x01(\x09H\x00\x12!\x0A\x17result_natural_language\x18\x08 \x01(\x09H\x00\x12\x19\x0A\x0Fresult_csv_data\x18\x09 \x01(\x09H\x00\x12\x1F\x0A\x15result_reference_data\x18\x0A \x01(\x09H\x00\x12\x0F\x0A\x05error\x18\x0B \x01(\x09H\x00B\x06\x0A\x04kind\"\x9C\x01\x0A\x0CChartMessage\x12@\x0A\x05query\x18\x01 \x01(\x0B2/.google.cloud.geminidataanalytics.v1.ChartQueryH\x00\x12B\x0A\x06result\x18\x02 \x01(\x0B20.google.cloud.geminidataanalytics.v1.ChartResultH\x00B\x06\x0A\x04kind\"F\x0A\x0AChartQuery\x12\x19\x0A\x0Cinstructions\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10data_result_name\x18\x02 \x01(\x09B\x03\xE0A\x01\"\x7F\x0A\x0BChartResult\x121\x0A\x0Bvega_config\x18\x02 \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x12=\x0A\x05image\x18\x03 \x01(\x0B2).google.cloud.geminidataanalytics.v1.BlobB\x03\xE0A\x01\"!\x0A\x0CErrorMessage\x12\x11\x0A\x04text\x18\x01 \x01(\x09B\x03\xE0A\x03\"a\x0A\x0EExampleQueries\x12O\x0A\x0Fexample_queries\x18\x01 \x03(\x0B21.google.cloud.geminidataanalytics.v1.ExampleQueryB\x03\xE0A\x01\"1\x0A\x04Blob\x12\x16\x0A\x09mime_type\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04data\x18\x02 \x01(\x0CB\x03\xE0A\x022\xA7\x0A\x0A\x0FDataChatService\x12\x9D\x01\x0A\x04Chat\x120.google.cloud.geminidataanalytics.v1.ChatRequest\x1A,.google.cloud.geminidataanalytics.v1.Message\"3\x82\xD3\xE4\x93\x02-\"(/v1/{parent=projects/*/locations/*}:chat:\x01*0\x01\x12\xF6\x01\x0A\x12CreateConversation\x12>.google.cloud.geminidataanalytics.v1.CreateConversationRequest\x1A1.google.cloud.geminidataanalytics.v1.Conversation\"m\xDAA#parent,conversation,conversation_id\x82\xD3\xE4\x93\x02A\"1/v1/{parent=projects/*/locations/*}/conversations:\x0Cconversation\x12\xAE\x01\x0A\x12DeleteConversation\x12>.google.cloud.geminidataanalytics.v1.DeleteConversationRequest\x1A\x16.google.protobuf.Empty\"@\xDAA\x04name\x82\xD3\xE4\x93\x023*1/v1/{name=projects/*/locations/*/conversations/*}\x12\xC3\x01\x0A\x0FGetConversation\x12;.google.cloud.geminidataanalytics.v1.GetConversationRequest\x1A1.google.cloud.geminidataanalytics.v1.Conversation\"@\xDAA\x04name\x82\xD3\xE4\x93\x023\x121/v1/{name=projects/*/locations/*/conversations/*}\x12\xD6\x01\x0A\x11ListConversations\x12=.google.cloud.geminidataanalytics.v1.ListConversationsRequest\x1A>.google.cloud.geminidataanalytics.v1.ListConversationsResponse\"B\xDAA\x06parent\x82\xD3\xE4\x93\x023\x121/v1/{parent=projects/*/locations/*}/conversations\x12\xD2\x01\x0A\x0CListMessages\x128.google.cloud.geminidataanalytics.v1.ListMessagesRequest\x1A9.google.cloud.geminidataanalytics.v1.ListMessagesResponse\"M\xDAA\x06parent\x82\xD3\xE4\x93\x02>\x12internalAddGeneratedFile( + "\x0A\x97\x17\x0A4google/cloud/geminidataanalytics/v1/datasource.proto\x12#google.cloud.geminidataanalytics.v1\x1A\x1Cgoogle/protobuf/struct.proto\"\x93\x02\x0A\x14DatasourceReferences\x12J\x0A\x02bq\x18\x01 \x01(\x0B2<.google.cloud.geminidataanalytics.v1.BigQueryTableReferencesH\x00\x12Q\x0A\x06studio\x18\x02 \x01(\x0B2?.google.cloud.geminidataanalytics.v1.StudioDatasourceReferencesH\x00\x12N\x0A\x06looker\x18\x03 \x01(\x0B2<.google.cloud.geminidataanalytics.v1.LookerExploreReferencesH\x00B\x0C\x0A\x0Areferences\"u\x0A\x17BigQueryTableReferences\x12Z\x0A\x10table_references\x18\x01 \x03(\x0B2;.google.cloud.geminidataanalytics.v1.BigQueryTableReferenceB\x03\xE0A\x01\"\xA3\x01\x0A\x16BigQueryTableReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Adataset_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08table_id\x18\x04 \x01(\x09B\x03\xE0A\x02\x12@\x0A\x06schema\x18\x06 \x01(\x0B2+.google.cloud.geminidataanalytics.v1.SchemaB\x03\xE0A\x01\"|\x0A\x1AStudioDatasourceReferences\x12^\x0A\x11studio_references\x18\x02 \x03(\x0B2>.google.cloud.geminidataanalytics.v1.StudioDatasourceReferenceB\x03\xE0A\x01\"7\x0A\x19StudioDatasourceReference\x12\x1A\x0A\x0Ddatasource_id\x18\x01 \x01(\x09B\x03\xE0A\x02\"w\x0A\x17LookerExploreReferences\x12\\\x0A\x12explore_references\x18\x01 \x03(\x0B2;.google.cloud.geminidataanalytics.v1.LookerExploreReferenceB\x03\xE0A\x02\"\x9E\x02\x0A\x16LookerExploreReference\x12\x1D\x0A\x13looker_instance_uri\x18\x09 \x01(\x09H\x00\x12f\x0A\x1Cprivate_looker_instance_info\x18\x0A \x01(\x0B2>.google.cloud.geminidataanalytics.v1.PrivateLookerInstanceInfoH\x00\x12\x19\x0A\x0Clookml_model\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x14\x0A\x07explore\x18\x05 \x01(\x09B\x03\xE0A\x02\x12@\x0A\x06schema\x18\x08 \x01(\x0B2+.google.cloud.geminidataanalytics.v1.SchemaB\x03\xE0A\x01B\x0A\x0A\x08instance\"r\x0A\x1EBigQueryPropertyGraphReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Adataset_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1E\x0A\x11property_graph_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"W\x0A\x19PrivateLookerInstanceInfo\x12\x1A\x0A\x12looker_instance_id\x18\x01 \x01(\x09\x12\x1E\x0A\x16service_directory_name\x18\x02 \x01(\x09\"\xE4\x03\x0A\x0ADatasource\x12_\x0A\x18bigquery_table_reference\x18\x01 \x01(\x0B2;.google.cloud.geminidataanalytics.v1.BigQueryTableReferenceH\x00\x12\x1E\x0A\x14studio_datasource_id\x18\x02 \x01(\x09H\x00\x12_\x0A\x18looker_explore_reference\x18\x04 \x01(\x0B2;.google.cloud.geminidataanalytics.v1.LookerExploreReferenceH\x00\x12p\x0A!bigquery_property_graph_reference\x18\x10 \x01(\x0B2C.google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReferenceH\x00\x12@\x0A\x06schema\x18\x07 \x01(\x0B2+.google.cloud.geminidataanalytics.v1.SchemaB\x03\xE0A\x01\x123\x0A\x0Dstruct_schema\x18\x0A \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01B\x0B\x0A\x09reference\"\xEF\x01\x0A\x06Schema\x12?\x0A\x06fields\x18\x01 \x03(\x0B2*.google.cloud.geminidataanalytics.v1.FieldB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08synonyms\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x11\x0A\x04tags\x18\x04 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x05 \x01(\x09B\x03\xE0A\x01\x12E\x0A\x07filters\x18\x06 \x03(\x0B2/.google.cloud.geminidataanalytics.v1.DataFilterB\x03\xE0A\x01\"\x95\x02\x0A\x05Field\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04type\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04mode\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08synonyms\x18\x06 \x03(\x09B\x03\xE0A\x01\x12\x11\x0A\x04tags\x18\x07 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x08 \x01(\x09B\x03\xE0A\x01\x12B\x0A\x09subfields\x18\x09 \x03(\x0B2*.google.cloud.geminidataanalytics.v1.FieldB\x03\xE0A\x01\x12\x15\x0A\x08category\x18\x0A \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cvalue_format\x18\x0B \x01(\x09B\x03\xE0A\x01\"|\x0A\x0ADataFilter\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x01\x12F\x0A\x04type\x18\x03 \x01(\x0E23.google.cloud.geminidataanalytics.v1.DataFilterTypeB\x03\xE0A\x01*E\x0A\x0EDataFilterType\x12 \x0A\x1CDATA_FILTER_TYPE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DALWAYS_FILTER\x10\x01B\x8C\x02\x0A'com.google.cloud.geminidataanalytics.v1B\x0FDatasourceProtoP\x01ZYcloud.google.com/go/geminidataanalytics/apiv1/geminidataanalyticspb;geminidataanalyticspb\xAA\x02#Google.Cloud.GeminiDataAnalytics.V1\xCA\x02#Google\\Cloud\\GeminiDataAnalytics\\V1\xEA\x02&Google::Cloud::GeminiDataAnalytics::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisEvent.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisEvent.php new file mode 100644 index 000000000000..d3becd306291 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisEvent.php @@ -0,0 +1,372 @@ +google.cloud.geminidataanalytics.v1.AnalysisEvent + */ +class AnalysisEvent extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $planner_reasoning + * Python codegen planner's reasoning. + * @type string $coder_instruction + * Instructions issued for code generation. + * @type string $code + * Generated code. + * @type string $execution_output + * Output from code execution. + * @type string $execution_error + * An error from code execution. + * @type string $result_vega_chart_json + * Result as Vega chart JSON string. + * @type string $result_natural_language + * Result as NL string. + * @type string $result_csv_data + * Result as CSV string. + * @type string $result_reference_data + * Result as a reference to a data source. + * @type string $error + * A generic error message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Python codegen planner's reasoning. + * + * Generated from protobuf field string planner_reasoning = 2; + * @return string + */ + public function getPlannerReasoning() + { + return $this->readOneof(2); + } + + public function hasPlannerReasoning() + { + return $this->hasOneof(2); + } + + /** + * Python codegen planner's reasoning. + * + * Generated from protobuf field string planner_reasoning = 2; + * @param string $var + * @return $this + */ + public function setPlannerReasoning($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Instructions issued for code generation. + * + * Generated from protobuf field string coder_instruction = 3; + * @return string + */ + public function getCoderInstruction() + { + return $this->readOneof(3); + } + + public function hasCoderInstruction() + { + return $this->hasOneof(3); + } + + /** + * Instructions issued for code generation. + * + * Generated from protobuf field string coder_instruction = 3; + * @param string $var + * @return $this + */ + public function setCoderInstruction($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Generated code. + * + * Generated from protobuf field string code = 4; + * @return string + */ + public function getCode() + { + return $this->readOneof(4); + } + + public function hasCode() + { + return $this->hasOneof(4); + } + + /** + * Generated code. + * + * Generated from protobuf field string code = 4; + * @param string $var + * @return $this + */ + public function setCode($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Output from code execution. + * + * Generated from protobuf field string execution_output = 5; + * @return string + */ + public function getExecutionOutput() + { + return $this->readOneof(5); + } + + public function hasExecutionOutput() + { + return $this->hasOneof(5); + } + + /** + * Output from code execution. + * + * Generated from protobuf field string execution_output = 5; + * @param string $var + * @return $this + */ + public function setExecutionOutput($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * An error from code execution. + * + * Generated from protobuf field string execution_error = 6; + * @return string + */ + public function getExecutionError() + { + return $this->readOneof(6); + } + + public function hasExecutionError() + { + return $this->hasOneof(6); + } + + /** + * An error from code execution. + * + * Generated from protobuf field string execution_error = 6; + * @param string $var + * @return $this + */ + public function setExecutionError($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Result as Vega chart JSON string. + * + * Generated from protobuf field string result_vega_chart_json = 7; + * @return string + */ + public function getResultVegaChartJson() + { + return $this->readOneof(7); + } + + public function hasResultVegaChartJson() + { + return $this->hasOneof(7); + } + + /** + * Result as Vega chart JSON string. + * + * Generated from protobuf field string result_vega_chart_json = 7; + * @param string $var + * @return $this + */ + public function setResultVegaChartJson($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Result as NL string. + * + * Generated from protobuf field string result_natural_language = 8; + * @return string + */ + public function getResultNaturalLanguage() + { + return $this->readOneof(8); + } + + public function hasResultNaturalLanguage() + { + return $this->hasOneof(8); + } + + /** + * Result as NL string. + * + * Generated from protobuf field string result_natural_language = 8; + * @param string $var + * @return $this + */ + public function setResultNaturalLanguage($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Result as CSV string. + * + * Generated from protobuf field string result_csv_data = 9; + * @return string + */ + public function getResultCsvData() + { + return $this->readOneof(9); + } + + public function hasResultCsvData() + { + return $this->hasOneof(9); + } + + /** + * Result as CSV string. + * + * Generated from protobuf field string result_csv_data = 9; + * @param string $var + * @return $this + */ + public function setResultCsvData($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Result as a reference to a data source. + * + * Generated from protobuf field string result_reference_data = 10; + * @return string + */ + public function getResultReferenceData() + { + return $this->readOneof(10); + } + + public function hasResultReferenceData() + { + return $this->hasOneof(10); + } + + /** + * Result as a reference to a data source. + * + * Generated from protobuf field string result_reference_data = 10; + * @param string $var + * @return $this + */ + public function setResultReferenceData($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * A generic error message. + * + * Generated from protobuf field string error = 11; + * @return string + */ + public function getError() + { + return $this->readOneof(11); + } + + public function hasError() + { + return $this->hasOneof(11); + } + + /** + * A generic error message. + * + * Generated from protobuf field string error = 11; + * @param string $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisMessage.php new file mode 100644 index 000000000000..619f2791054e --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisMessage.php @@ -0,0 +1,108 @@ +google.cloud.geminidataanalytics.v1.AnalysisMessage + */ +class AnalysisMessage extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\AnalysisQuery $query + * An analysis query. + * @type \Google\Cloud\GeminiDataAnalytics\V1\AnalysisEvent $progress_event + * An event indicating the progress of the analysis. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * An analysis query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisQuery query = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1\AnalysisQuery|null + */ + public function getQuery() + { + return $this->readOneof(1); + } + + public function hasQuery() + { + return $this->hasOneof(1); + } + + /** + * An analysis query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisQuery query = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1\AnalysisQuery $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\AnalysisQuery::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * An event indicating the progress of the analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisEvent progress_event = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1\AnalysisEvent|null + */ + public function getProgressEvent() + { + return $this->readOneof(2); + } + + public function hasProgressEvent() + { + return $this->hasOneof(2); + } + + /** + * An event indicating the progress of the analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisEvent progress_event = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1\AnalysisEvent $var + * @return $this + */ + public function setProgressEvent($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\AnalysisEvent::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisOptions.php new file mode 100644 index 000000000000..ab128ea7aaaa --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisOptions.php @@ -0,0 +1,77 @@ +google.cloud.geminidataanalytics.v1.AnalysisOptions + */ +class AnalysisOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Options for Python analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisOptions.Python python = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $python = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\AnalysisOptions\Python $python + * Optional. Options for Python analysis. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Options for Python analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisOptions.Python python = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\AnalysisOptions\Python|null + */ + public function getPython() + { + return $this->python; + } + + public function hasPython() + { + return isset($this->python); + } + + public function clearPython() + { + unset($this->python); + } + + /** + * Optional. Options for Python analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisOptions.Python python = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\AnalysisOptions\Python $var + * @return $this + */ + public function setPython($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\AnalysisOptions\Python::class); + $this->python = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisOptions/Python.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisOptions/Python.php new file mode 100644 index 000000000000..43e2c4a9cc40 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisOptions/Python.php @@ -0,0 +1,71 @@ +google.cloud.geminidataanalytics.v1.AnalysisOptions.Python + */ +class Python extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether to enable Python analysis. + * Defaults to false. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Optional. Whether to enable Python analysis. + * Defaults to false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether to enable Python analysis. + * Defaults to false. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Optional. Whether to enable Python analysis. + * Defaults to false. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisQuery.php new file mode 100644 index 000000000000..21dfff914053 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisQuery.php @@ -0,0 +1,101 @@ +google.cloud.geminidataanalytics.v1.AnalysisQuery + */ +class AnalysisQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. An analysis question to help answer the user's original question. + * + * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $question = ''; + /** + * Optional. The names of previously retrieved data results to analyze. + * + * Generated from protobuf field repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $data_result_names; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $question + * Optional. An analysis question to help answer the user's original question. + * @type string[] $data_result_names + * Optional. The names of previously retrieved data results to analyze. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. An analysis question to help answer the user's original question. + * + * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getQuestion() + { + return $this->question; + } + + /** + * Optional. An analysis question to help answer the user's original question. + * + * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setQuestion($var) + { + GPBUtil::checkString($var, True); + $this->question = $var; + + return $this; + } + + /** + * Optional. The names of previously retrieved data results to analyze. + * + * Generated from protobuf field repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getDataResultNames() + { + return $this->data_result_names; + } + + /** + * Optional. The names of previously retrieved data results to analyze. + * + * Generated from protobuf field repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setDataResultNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->data_result_names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryJob.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryJob.php new file mode 100644 index 000000000000..3307f3525e36 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryJob.php @@ -0,0 +1,263 @@ +google.cloud.geminidataanalytics.v1.BigQueryJob + */ +class BigQueryJob extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The project that the job belongs to. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $project_id = ''; + /** + * Required. The ID of the job. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * + * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $job_id = ''; + /** + * Optional. The location of the job. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * + * Generated from protobuf field string location = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $location = ''; + /** + * Optional. A reference to the destination table of the job's query results. + * See + * [JobConfigurationQuery](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryTableReference destination_table = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $destination_table = null; + /** + * Optional. The schema of the job's query results. + * See + * [JobStatistics2](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobstatistics2). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $schema = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Required. The project that the job belongs to. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * @type string $job_id + * Required. The ID of the job. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * @type string $location + * Optional. The location of the job. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * @type \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference $destination_table + * Optional. A reference to the destination table of the job's query results. + * See + * [JobConfigurationQuery](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery). + * @type \Google\Cloud\GeminiDataAnalytics\V1\Schema $schema + * Optional. The schema of the job's query results. + * See + * [JobStatistics2](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobstatistics2). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The project that the job belongs to. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * Required. The project that the job belongs to. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Required. The ID of the job. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * + * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getJobId() + { + return $this->job_id; + } + + /** + * Required. The ID of the job. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * + * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setJobId($var) + { + GPBUtil::checkString($var, True); + $this->job_id = $var; + + return $this; + } + + /** + * Optional. The location of the job. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * + * Generated from protobuf field string location = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Optional. The location of the job. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * + * Generated from protobuf field string location = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * Optional. A reference to the destination table of the job's query results. + * See + * [JobConfigurationQuery](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryTableReference destination_table = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference|null + */ + public function getDestinationTable() + { + return $this->destination_table; + } + + public function hasDestinationTable() + { + return isset($this->destination_table); + } + + public function clearDestinationTable() + { + unset($this->destination_table); + } + + /** + * Optional. A reference to the destination table of the job's query results. + * See + * [JobConfigurationQuery](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryTableReference destination_table = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference $var + * @return $this + */ + public function setDestinationTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference::class); + $this->destination_table = $var; + + return $this; + } + + /** + * Optional. The schema of the job's query results. + * See + * [JobStatistics2](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobstatistics2). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\Schema|null + */ + public function getSchema() + { + return $this->schema; + } + + public function hasSchema() + { + return isset($this->schema); + } + + public function clearSchema() + { + unset($this->schema); + } + + /** + * Optional. The schema of the job's query results. + * See + * [JobStatistics2](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobstatistics2). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Schema $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Schema::class); + $this->schema = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryPropertyGraphReference.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryPropertyGraphReference.php new file mode 100644 index 000000000000..9b1b44c8bd83 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryPropertyGraphReference.php @@ -0,0 +1,135 @@ +google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReference + */ +class BigQueryPropertyGraphReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The project that the property graph belongs to. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $project_id = ''; + /** + * Required. The dataset that the property graph belongs to. + * + * Generated from protobuf field string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $dataset_id = ''; + /** + * Required. The property graph id. + * + * Generated from protobuf field string property_graph_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $property_graph_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Required. The project that the property graph belongs to. + * @type string $dataset_id + * Required. The dataset that the property graph belongs to. + * @type string $property_graph_id + * Required. The property graph id. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Required. The project that the property graph belongs to. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * Required. The project that the property graph belongs to. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Required. The dataset that the property graph belongs to. + * + * Generated from protobuf field string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDatasetId() + { + return $this->dataset_id; + } + + /** + * Required. The dataset that the property graph belongs to. + * + * Generated from protobuf field string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDatasetId($var) + { + GPBUtil::checkString($var, True); + $this->dataset_id = $var; + + return $this; + } + + /** + * Required. The property graph id. + * + * Generated from protobuf field string property_graph_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPropertyGraphId() + { + return $this->property_graph_id; + } + + /** + * Required. The property graph id. + * + * Generated from protobuf field string property_graph_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPropertyGraphId($var) + { + GPBUtil::checkString($var, True); + $this->property_graph_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryRoutine.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryRoutine.php new file mode 100644 index 000000000000..ccee90788580 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryRoutine.php @@ -0,0 +1,115 @@ +google.cloud.geminidataanalytics.v1.BigQueryRoutine + */ +class BigQueryRoutine extends \Google\Protobuf\Internal\Message +{ + /** + * The reference to the BigQuery routine. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryRoutineReference routine_reference = 1; + */ + protected $routine_reference = null; + /** + * User override or addition to description, to tell the agent when to use the + * UDF. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\BigQueryRoutineReference $routine_reference + * The reference to the BigQuery routine. + * @type string $description + * User override or addition to description, to tell the agent when to use the + * UDF. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * The reference to the BigQuery routine. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryRoutineReference routine_reference = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1\BigQueryRoutineReference|null + */ + public function getRoutineReference() + { + return $this->routine_reference; + } + + public function hasRoutineReference() + { + return isset($this->routine_reference); + } + + public function clearRoutineReference() + { + unset($this->routine_reference); + } + + /** + * The reference to the BigQuery routine. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryRoutineReference routine_reference = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1\BigQueryRoutineReference $var + * @return $this + */ + public function setRoutineReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\BigQueryRoutineReference::class); + $this->routine_reference = $var; + + return $this; + } + + /** + * User override or addition to description, to tell the agent when to use the + * UDF. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * User override or addition to description, to tell the agent when to use the + * UDF. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryRoutineReference.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryRoutineReference.php new file mode 100644 index 000000000000..312c2aa518a2 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryRoutineReference.php @@ -0,0 +1,135 @@ +google.cloud.geminidataanalytics.v1.BigQueryRoutineReference + */ +class BigQueryRoutineReference extends \Google\Protobuf\Internal\Message +{ + /** + * The project ID of the routine. + * + * Generated from protobuf field string project_id = 1; + */ + protected $project_id = ''; + /** + * The dataset ID of the routine. + * + * Generated from protobuf field string dataset_id = 2; + */ + protected $dataset_id = ''; + /** + * The routine ID of the routine. + * + * Generated from protobuf field string routine_id = 3; + */ + protected $routine_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * The project ID of the routine. + * @type string $dataset_id + * The dataset ID of the routine. + * @type string $routine_id + * The routine ID of the routine. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * The project ID of the routine. + * + * Generated from protobuf field string project_id = 1; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * The project ID of the routine. + * + * Generated from protobuf field string project_id = 1; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * The dataset ID of the routine. + * + * Generated from protobuf field string dataset_id = 2; + * @return string + */ + public function getDatasetId() + { + return $this->dataset_id; + } + + /** + * The dataset ID of the routine. + * + * Generated from protobuf field string dataset_id = 2; + * @param string $var + * @return $this + */ + public function setDatasetId($var) + { + GPBUtil::checkString($var, True); + $this->dataset_id = $var; + + return $this; + } + + /** + * The routine ID of the routine. + * + * Generated from protobuf field string routine_id = 3; + * @return string + */ + public function getRoutineId() + { + return $this->routine_id; + } + + /** + * The routine ID of the routine. + * + * Generated from protobuf field string routine_id = 3; + * @param string $var + * @return $this + */ + public function setRoutineId($var) + { + GPBUtil::checkString($var, True); + $this->routine_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryTableReference.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryTableReference.php new file mode 100644 index 000000000000..9cdd26c57ed2 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryTableReference.php @@ -0,0 +1,179 @@ +google.cloud.geminidataanalytics.v1.BigQueryTableReference + */ +class BigQueryTableReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The project that the table belongs to. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $project_id = ''; + /** + * Required. The dataset that the table belongs to. + * + * Generated from protobuf field string dataset_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $dataset_id = ''; + /** + * Required. The table id. + * + * Generated from protobuf field string table_id = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $table_id = ''; + /** + * Optional. The schema of the datasource. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $schema = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Required. The project that the table belongs to. + * @type string $dataset_id + * Required. The dataset that the table belongs to. + * @type string $table_id + * Required. The table id. + * @type \Google\Cloud\GeminiDataAnalytics\V1\Schema $schema + * Optional. The schema of the datasource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Required. The project that the table belongs to. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * Required. The project that the table belongs to. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Required. The dataset that the table belongs to. + * + * Generated from protobuf field string dataset_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDatasetId() + { + return $this->dataset_id; + } + + /** + * Required. The dataset that the table belongs to. + * + * Generated from protobuf field string dataset_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDatasetId($var) + { + GPBUtil::checkString($var, True); + $this->dataset_id = $var; + + return $this; + } + + /** + * Required. The table id. + * + * Generated from protobuf field string table_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTableId() + { + return $this->table_id; + } + + /** + * Required. The table id. + * + * Generated from protobuf field string table_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTableId($var) + { + GPBUtil::checkString($var, True); + $this->table_id = $var; + + return $this; + } + + /** + * Optional. The schema of the datasource. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\Schema|null + */ + public function getSchema() + { + return $this->schema; + } + + public function hasSchema() + { + return isset($this->schema); + } + + public function clearSchema() + { + unset($this->schema); + } + + /** + * Optional. The schema of the datasource. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Schema $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Schema::class); + $this->schema = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryTableReferences.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryTableReferences.php new file mode 100644 index 000000000000..ffb0f9a9f64c --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryTableReferences.php @@ -0,0 +1,69 @@ +google.cloud.geminidataanalytics.v1.BigQueryTableReferences + */ +class BigQueryTableReferences extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. References to BigQuery tables. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.BigQueryTableReference table_references = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $table_references; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference[] $table_references + * Optional. References to BigQuery tables. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Optional. References to BigQuery tables. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.BigQueryTableReference table_references = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference> + */ + public function getTableReferences() + { + return $this->table_references; + } + + /** + * Optional. References to BigQuery tables. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.BigQueryTableReference table_references = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference[] $var + * @return $this + */ + public function setTableReferences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference::class); + $this->table_references = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Blob.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Blob.php new file mode 100644 index 000000000000..148be0cc50c3 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Blob.php @@ -0,0 +1,101 @@ +google.cloud.geminidataanalytics.v1.Blob + */ +class Blob extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The IANA standard MIME type of the message data. + * + * Generated from protobuf field string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $mime_type = ''; + /** + * Required. The data represented as bytes. + * + * Generated from protobuf field bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $mime_type + * Required. The IANA standard MIME type of the message data. + * @type string $data + * Required. The data represented as bytes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The IANA standard MIME type of the message data. + * + * Generated from protobuf field string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getMimeType() + { + return $this->mime_type; + } + + /** + * Required. The IANA standard MIME type of the message data. + * + * Generated from protobuf field string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setMimeType($var) + { + GPBUtil::checkString($var, True); + $this->mime_type = $var; + + return $this; + } + + /** + * Required. The data represented as bytes. + * + * Generated from protobuf field bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getData() + { + return $this->data; + } + + /** + * Required. The data represented as bytes. + * + * Generated from protobuf field bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setData($var) + { + GPBUtil::checkString($var, False); + $this->data = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartMessage.php new file mode 100644 index 000000000000..cbe1fc637cf3 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartMessage.php @@ -0,0 +1,108 @@ +google.cloud.geminidataanalytics.v1.ChartMessage + */ +class ChartMessage extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\ChartQuery $query + * A query for generating a chart. + * @type \Google\Cloud\GeminiDataAnalytics\V1\ChartResult $result + * The result of a chart generation query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * A query for generating a chart. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChartQuery query = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1\ChartQuery|null + */ + public function getQuery() + { + return $this->readOneof(1); + } + + public function hasQuery() + { + return $this->hasOneof(1); + } + + /** + * A query for generating a chart. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChartQuery query = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1\ChartQuery $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ChartQuery::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The result of a chart generation query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChartResult result = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1\ChartResult|null + */ + public function getResult() + { + return $this->readOneof(2); + } + + public function hasResult() + { + return $this->hasOneof(2); + } + + /** + * The result of a chart generation query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChartResult result = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1\ChartResult $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ChartResult::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartQuery.php new file mode 100644 index 000000000000..63e4568c3a98 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartQuery.php @@ -0,0 +1,105 @@ +google.cloud.geminidataanalytics.v1.ChartQuery + */ +class ChartQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Natural language instructions for generating the chart. + * + * Generated from protobuf field string instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $instructions = ''; + /** + * Optional. The name of a previously retrieved data result to use in the + * chart. + * + * Generated from protobuf field string data_result_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_result_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $instructions + * Optional. Natural language instructions for generating the chart. + * @type string $data_result_name + * Optional. The name of a previously retrieved data result to use in the + * chart. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Natural language instructions for generating the chart. + * + * Generated from protobuf field string instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getInstructions() + { + return $this->instructions; + } + + /** + * Optional. Natural language instructions for generating the chart. + * + * Generated from protobuf field string instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setInstructions($var) + { + GPBUtil::checkString($var, True); + $this->instructions = $var; + + return $this; + } + + /** + * Optional. The name of a previously retrieved data result to use in the + * chart. + * + * Generated from protobuf field string data_result_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDataResultName() + { + return $this->data_result_name; + } + + /** + * Optional. The name of a previously retrieved data result to use in the + * chart. + * + * Generated from protobuf field string data_result_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDataResultName($var) + { + GPBUtil::checkString($var, True); + $this->data_result_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartResult.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartResult.php new file mode 100644 index 000000000000..a48ccf7d997b --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartResult.php @@ -0,0 +1,125 @@ +google.cloud.geminidataanalytics.v1.ChartResult + */ +class ChartResult extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A generated Vega chart config. + * See https://vega.github.io/vega/docs/config/ + * + * Generated from protobuf field .google.protobuf.Struct vega_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $vega_config = null; + /** + * Optional. A rendering of the chart if this was requested in the context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Blob image = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $image = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Struct $vega_config + * Optional. A generated Vega chart config. + * See https://vega.github.io/vega/docs/config/ + * @type \Google\Cloud\GeminiDataAnalytics\V1\Blob $image + * Optional. A rendering of the chart if this was requested in the context. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A generated Vega chart config. + * See https://vega.github.io/vega/docs/config/ + * + * Generated from protobuf field .google.protobuf.Struct vega_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Struct|null + */ + public function getVegaConfig() + { + return $this->vega_config; + } + + public function hasVegaConfig() + { + return isset($this->vega_config); + } + + public function clearVegaConfig() + { + unset($this->vega_config); + } + + /** + * Optional. A generated Vega chart config. + * See https://vega.github.io/vega/docs/config/ + * + * Generated from protobuf field .google.protobuf.Struct vega_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setVegaConfig($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->vega_config = $var; + + return $this; + } + + /** + * Optional. A rendering of the chart if this was requested in the context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Blob image = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\Blob|null + */ + public function getImage() + { + return $this->image; + } + + public function hasImage() + { + return isset($this->image); + } + + public function clearImage() + { + unset($this->image); + } + + /** + * Optional. A rendering of the chart if this was requested in the context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Blob image = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Blob $var + * @return $this + */ + public function setImage($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Blob::class); + $this->image = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest.php new file mode 100644 index 000000000000..5b33b358fb23 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest.php @@ -0,0 +1,453 @@ +google.cloud.geminidataanalytics.v1.ChatRequest + */ +class ChatRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent value for chat request. + * Pattern: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Required. Content of current conversation. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Message messages = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $messages; + /** + * Optional. The credentials to use when calling the data source(s) specified + * in the context. + * This field can be used to provide credentials for various data sources. + * For example, when connecting to Looker, it currently supports both OAuth + * token and API key-based credentials, as described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Credentials credentials = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $credentials = null; + /** + * Optional. The thinking mode to use for the agent loop. + * Defaults to THINKING_MODE_UNSPECIFIED if not specified. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChatRequest.ThinkingMode thinking_mode = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $thinking_mode = 0; + /** + * Optional. The model to use for the agent loop when processing the request. + * This setting only has an effect when context.options.model is not set. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChatRequest.Model model = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $model = 0; + protected $context_provider; + protected $datasource_settings; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\Context $inline_context + * Optional. Inline context for the chat request. Use this to chat + * statelessly (without managed conversation persistence and without an + * Agent) by passing all context inline. + * @type \Google\Cloud\GeminiDataAnalytics\V1\ConversationReference $conversation_reference + * Optional. Reference to a persisted conversation and agent context. + * Use this to chat with an Agent using managed conversation persistence. + * @type \Google\Cloud\GeminiDataAnalytics\V1\DataAgentContext $data_agent_context + * Optional. Context for the chat request. Use this to chat with an Agent + * statelessly, without managed conversation persistence. + * @type \Google\Cloud\GeminiDataAnalytics\V1\ClientManagedResourceContext $client_managed_resource_context + * Optional. Context with client managed resources. + * Some clients may not use GDA managed resources including + * conversations and agents, instead they create and manage their own + * conversations and agents resources. + * @type \Google\Cloud\GeminiDataAnalytics\V1\LookerSettings $looker_settings + * Optional. Looker specific settings. + * @type string $parent + * Required. The parent value for chat request. + * Pattern: `projects/{project}/locations/{location}` + * @type \Google\Cloud\GeminiDataAnalytics\V1\Message[] $messages + * Required. Content of current conversation. + * @type \Google\Cloud\GeminiDataAnalytics\V1\Credentials $credentials + * Optional. The credentials to use when calling the data source(s) specified + * in the context. + * This field can be used to provide credentials for various data sources. + * For example, when connecting to Looker, it currently supports both OAuth + * token and API key-based credentials, as described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * @type int $thinking_mode + * Optional. The thinking mode to use for the agent loop. + * Defaults to THINKING_MODE_UNSPECIFIED if not specified. + * @type int $model + * Optional. The model to use for the agent loop when processing the request. + * This setting only has an effect when context.options.model is not set. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Inline context for the chat request. Use this to chat + * statelessly (without managed conversation persistence and without an + * Agent) by passing all context inline. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context inline_context = 101 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\Context|null + */ + public function getInlineContext() + { + return $this->readOneof(101); + } + + public function hasInlineContext() + { + return $this->hasOneof(101); + } + + /** + * Optional. Inline context for the chat request. Use this to chat + * statelessly (without managed conversation persistence and without an + * Agent) by passing all context inline. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context inline_context = 101 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Context $var + * @return $this + */ + public function setInlineContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Context::class); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * Optional. Reference to a persisted conversation and agent context. + * Use this to chat with an Agent using managed conversation persistence. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ConversationReference conversation_reference = 103 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\ConversationReference|null + */ + public function getConversationReference() + { + return $this->readOneof(103); + } + + public function hasConversationReference() + { + return $this->hasOneof(103); + } + + /** + * Optional. Reference to a persisted conversation and agent context. + * Use this to chat with an Agent using managed conversation persistence. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ConversationReference conversation_reference = 103 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\ConversationReference $var + * @return $this + */ + public function setConversationReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ConversationReference::class); + $this->writeOneof(103, $var); + + return $this; + } + + /** + * Optional. Context for the chat request. Use this to chat with an Agent + * statelessly, without managed conversation persistence. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgentContext data_agent_context = 104 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\DataAgentContext|null + */ + public function getDataAgentContext() + { + return $this->readOneof(104); + } + + public function hasDataAgentContext() + { + return $this->hasOneof(104); + } + + /** + * Optional. Context for the chat request. Use this to chat with an Agent + * statelessly, without managed conversation persistence. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgentContext data_agent_context = 104 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\DataAgentContext $var + * @return $this + */ + public function setDataAgentContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DataAgentContext::class); + $this->writeOneof(104, $var); + + return $this; + } + + /** + * Optional. Context with client managed resources. + * Some clients may not use GDA managed resources including + * conversations and agents, instead they create and manage their own + * conversations and agents resources. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\ClientManagedResourceContext|null + */ + public function getClientManagedResourceContext() + { + return $this->readOneof(105); + } + + public function hasClientManagedResourceContext() + { + return $this->hasOneof(105); + } + + /** + * Optional. Context with client managed resources. + * Some clients may not use GDA managed resources including + * conversations and agents, instead they create and manage their own + * conversations and agents resources. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\ClientManagedResourceContext $var + * @return $this + */ + public function setClientManagedResourceContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ClientManagedResourceContext::class); + $this->writeOneof(105, $var); + + return $this; + } + + /** + * Optional. Looker specific settings. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerSettings looker_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\LookerSettings|null + */ + public function getLookerSettings() + { + return $this->readOneof(13); + } + + public function hasLookerSettings() + { + return $this->hasOneof(13); + } + + /** + * Optional. Looker specific settings. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerSettings looker_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\LookerSettings $var + * @return $this + */ + public function setLookerSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\LookerSettings::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Required. The parent value for chat request. + * Pattern: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent value for chat request. + * Pattern: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Content of current conversation. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Message messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\Message> + */ + public function getMessages() + { + return $this->messages; + } + + /** + * Required. Content of current conversation. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Message messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Message[] $var + * @return $this + */ + public function setMessages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\Message::class); + $this->messages = $arr; + + return $this; + } + + /** + * Optional. The credentials to use when calling the data source(s) specified + * in the context. + * This field can be used to provide credentials for various data sources. + * For example, when connecting to Looker, it currently supports both OAuth + * token and API key-based credentials, as described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Credentials credentials = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\Credentials|null + */ + public function getCredentials() + { + return $this->credentials; + } + + public function hasCredentials() + { + return isset($this->credentials); + } + + public function clearCredentials() + { + unset($this->credentials); + } + + /** + * Optional. The credentials to use when calling the data source(s) specified + * in the context. + * This field can be used to provide credentials for various data sources. + * For example, when connecting to Looker, it currently supports both OAuth + * token and API key-based credentials, as described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Credentials credentials = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Credentials $var + * @return $this + */ + public function setCredentials($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Credentials::class); + $this->credentials = $var; + + return $this; + } + + /** + * Optional. The thinking mode to use for the agent loop. + * Defaults to THINKING_MODE_UNSPECIFIED if not specified. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChatRequest.ThinkingMode thinking_mode = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getThinkingMode() + { + return $this->thinking_mode; + } + + /** + * Optional. The thinking mode to use for the agent loop. + * Defaults to THINKING_MODE_UNSPECIFIED if not specified. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChatRequest.ThinkingMode thinking_mode = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setThinkingMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1\ChatRequest\ThinkingMode::class); + $this->thinking_mode = $var; + + return $this; + } + + /** + * Optional. The model to use for the agent loop when processing the request. + * This setting only has an effect when context.options.model is not set. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChatRequest.Model model = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getModel() + { + return $this->model; + } + + /** + * Optional. The model to use for the agent loop when processing the request. + * This setting only has an effect when context.options.model is not set. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChatRequest.Model model = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setModel($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1\ChatRequest\Model::class); + $this->model = $var; + + return $this; + } + + /** + * @return string + */ + public function getContextProvider() + { + return $this->whichOneof("context_provider"); + } + + /** + * @return string + */ + public function getDatasourceSettings() + { + return $this->whichOneof("datasource_settings"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest/Model.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest/Model.php new file mode 100644 index 000000000000..7e0355bc0b49 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest/Model.php @@ -0,0 +1,58 @@ +google.cloud.geminidataanalytics.v1.ChatRequest.Model + */ +class Model +{ + /** + * No model specified. The default model will be used. Currently, this is + * `gemini-3.0-flash-preview`. + * + * Generated from protobuf enum MODEL_UNSPECIFIED = 0; + */ + const MODEL_UNSPECIFIED = 0; + /** + * Use the most up-to-date non-preview model. Currently, this is + * `gemini-2.5-flash`. This constrains the request level settings. The + * default will change to `gemini-2.5-flash`, and setting `thinking_mode` + * will not be supported. + * + * Generated from protobuf enum LATEST_GA_MODEL = 1; + */ + const LATEST_GA_MODEL = 1; + + private static $valueToName = [ + self::MODEL_UNSPECIFIED => 'MODEL_UNSPECIFIED', + self::LATEST_GA_MODEL => 'LATEST_GA_MODEL', + ]; + + 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest/ThinkingMode.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest/ThinkingMode.php new file mode 100644 index 000000000000..8f50ebf43cd1 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest/ThinkingMode.php @@ -0,0 +1,61 @@ +google.cloud.geminidataanalytics.v1.ChatRequest.ThinkingMode + */ +class ThinkingMode +{ + /** + * Unspecified thinking mode, agent will use THINKING mode by default. + * + * Generated from protobuf enum THINKING_MODE_UNSPECIFIED = 0; + */ + const THINKING_MODE_UNSPECIFIED = 0; + /** + * Fast mode, answers quickly. + * + * Generated from protobuf enum FAST = 1; + */ + const FAST = 1; + /** + * Thinking mode, solves complex problems. + * + * Generated from protobuf enum THINKING = 2; + */ + const THINKING = 2; + + private static $valueToName = [ + self::THINKING_MODE_UNSPECIFIED => 'THINKING_MODE_UNSPECIFIED', + self::FAST => 'FAST', + self::THINKING => 'THINKING', + ]; + + 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Citation.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Citation.php new file mode 100644 index 000000000000..1c5b72301cda --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Citation.php @@ -0,0 +1,101 @@ +google.cloud.geminidataanalytics.v1.Citation + */ +class Citation extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. List of the sources being cited. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.CitationSource sources = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $sources; + /** + * Output only. List of the anchors of the citations. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.CitationAnchor anchors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $anchors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\CitationSource[] $sources + * Output only. List of the sources being cited. + * @type \Google\Cloud\GeminiDataAnalytics\V1\CitationAnchor[] $anchors + * Output only. List of the anchors of the citations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * Output only. List of the sources being cited. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.CitationSource sources = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\CitationSource> + */ + public function getSources() + { + return $this->sources; + } + + /** + * Output only. List of the sources being cited. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.CitationSource sources = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\CitationSource[] $var + * @return $this + */ + public function setSources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\CitationSource::class); + $this->sources = $arr; + + return $this; + } + + /** + * Output only. List of the anchors of the citations. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.CitationAnchor anchors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\CitationAnchor> + */ + public function getAnchors() + { + return $this->anchors; + } + + /** + * Output only. List of the anchors of the citations. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.CitationAnchor anchors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\CitationAnchor[] $var + * @return $this + */ + public function setAnchors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\CitationAnchor::class); + $this->anchors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationAnchor.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationAnchor.php new file mode 100644 index 000000000000..b62b20cd7a39 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationAnchor.php @@ -0,0 +1,75 @@ +google.cloud.geminidataanalytics.v1.CitationAnchor + */ +class CitationAnchor extends \Google\Protobuf\Internal\Message +{ + protected $anchor_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\CitationAnchor\TextMessageCitationAnchor $text_message_anchor + * Output only. Only set if the citation is for a TextMessage. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Only set if the citation is for a TextMessage. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.CitationAnchor.TextMessageCitationAnchor text_message_anchor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\CitationAnchor\TextMessageCitationAnchor|null + */ + public function getTextMessageAnchor() + { + return $this->readOneof(1); + } + + public function hasTextMessageAnchor() + { + return $this->hasOneof(1); + } + + /** + * Output only. Only set if the citation is for a TextMessage. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.CitationAnchor.TextMessageCitationAnchor text_message_anchor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\CitationAnchor\TextMessageCitationAnchor $var + * @return $this + */ + public function setTextMessageAnchor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\CitationAnchor\TextMessageCitationAnchor::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getAnchorType() + { + return $this->whichOneof("anchor_type"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationAnchor/TextMessageCitationAnchor.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationAnchor/TextMessageCitationAnchor.php new file mode 100644 index 000000000000..b3b40a3b811d --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationAnchor/TextMessageCitationAnchor.php @@ -0,0 +1,197 @@ +google.cloud.geminidataanalytics.v1.CitationAnchor.TextMessageCitationAnchor + */ +class TextMessageCitationAnchor extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The 0-based index of the part within the TextMessage.parts + * field. + * + * Generated from protobuf field int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $part_index = 0; + /** + * Output only. The offset, measured in UTF-8 bytes, within the part string + * where the citation begins (inclusive). Example: For the text "Hello, + * world" where "world" is cited, the start offset bytes (inclusive) is 7 + * and the end offset bytes (exclusive) is 12. + * + * Generated from protobuf field int32 start_offset_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_offset_bytes = 0; + /** + * Output only. The offset, measured in UTF-8 bytes, within the part string + * where the citation ends (exclusive). Example: For the text "Hello, world" + * where "world" is cited, the start offset bytes (inclusive) is 7 and the + * end offset bytes (exclusive) is 12. + * + * Generated from protobuf field int32 end_offset_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_offset_bytes = 0; + /** + * Output only. The ids of the sources that are cited. + * + * Generated from protobuf field repeated string source_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $source_ids; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $part_index + * Output only. The 0-based index of the part within the TextMessage.parts + * field. + * @type int $start_offset_bytes + * Output only. The offset, measured in UTF-8 bytes, within the part string + * where the citation begins (inclusive). Example: For the text "Hello, + * world" where "world" is cited, the start offset bytes (inclusive) is 7 + * and the end offset bytes (exclusive) is 12. + * @type int $end_offset_bytes + * Output only. The offset, measured in UTF-8 bytes, within the part string + * where the citation ends (exclusive). Example: For the text "Hello, world" + * where "world" is cited, the start offset bytes (inclusive) is 7 and the + * end offset bytes (exclusive) is 12. + * @type string[] $source_ids + * Output only. The ids of the sources that are cited. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The 0-based index of the part within the TextMessage.parts + * field. + * + * Generated from protobuf field int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getPartIndex() + { + return $this->part_index; + } + + /** + * Output only. The 0-based index of the part within the TextMessage.parts + * field. + * + * Generated from protobuf field int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setPartIndex($var) + { + GPBUtil::checkInt32($var); + $this->part_index = $var; + + return $this; + } + + /** + * Output only. The offset, measured in UTF-8 bytes, within the part string + * where the citation begins (inclusive). Example: For the text "Hello, + * world" where "world" is cited, the start offset bytes (inclusive) is 7 + * and the end offset bytes (exclusive) is 12. + * + * Generated from protobuf field int32 start_offset_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStartOffsetBytes() + { + return $this->start_offset_bytes; + } + + /** + * Output only. The offset, measured in UTF-8 bytes, within the part string + * where the citation begins (inclusive). Example: For the text "Hello, + * world" where "world" is cited, the start offset bytes (inclusive) is 7 + * and the end offset bytes (exclusive) is 12. + * + * Generated from protobuf field int32 start_offset_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStartOffsetBytes($var) + { + GPBUtil::checkInt32($var); + $this->start_offset_bytes = $var; + + return $this; + } + + /** + * Output only. The offset, measured in UTF-8 bytes, within the part string + * where the citation ends (exclusive). Example: For the text "Hello, world" + * where "world" is cited, the start offset bytes (inclusive) is 7 and the + * end offset bytes (exclusive) is 12. + * + * Generated from protobuf field int32 end_offset_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getEndOffsetBytes() + { + return $this->end_offset_bytes; + } + + /** + * Output only. The offset, measured in UTF-8 bytes, within the part string + * where the citation ends (exclusive). Example: For the text "Hello, world" + * where "world" is cited, the start offset bytes (inclusive) is 7 and the + * end offset bytes (exclusive) is 12. + * + * Generated from protobuf field int32 end_offset_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setEndOffsetBytes($var) + { + GPBUtil::checkInt32($var); + $this->end_offset_bytes = $var; + + return $this; + } + + /** + * Output only. The ids of the sources that are cited. + * + * Generated from protobuf field repeated string source_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getSourceIds() + { + return $this->source_ids; + } + + /** + * Output only. The ids of the sources that are cited. + * + * Generated from protobuf field repeated string source_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string[] $var + * @return $this + */ + public function setSourceIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->source_ids = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationSource.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationSource.php new file mode 100644 index 000000000000..46196e350386 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationSource.php @@ -0,0 +1,213 @@ +google.cloud.geminidataanalytics.v1.CitationSource + */ +class CitationSource extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Unique identifier of the source. This ID is service-generated + * and is unique within the scope of a single `Citation` message. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $id = ''; + /** + * Output only. The title of the source. + * + * Generated from protobuf field string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $title = ''; + protected $source_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $uri + * Output only. The uri used as the source, such as a web grounding URL. + * @type \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery $example_query + * Output only. The example query used as the source. + * @type \Google\Cloud\GeminiDataAnalytics\V1\GlossaryTerm $glossary_term + * Output only. The glossary term used as the source. + * @type string $id + * Output only. Unique identifier of the source. This ID is service-generated + * and is unique within the scope of a single `Citation` message. + * @type string $title + * Output only. The title of the source. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The uri used as the source, such as a web grounding URL. + * + * Generated from protobuf field string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUri() + { + return $this->readOneof(3); + } + + public function hasUri() + { + return $this->hasOneof(3); + } + + /** + * Output only. The uri used as the source, such as a web grounding URL. + * + * Generated from protobuf field string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Output only. The example query used as the source. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery|null + */ + public function getExampleQuery() + { + return $this->readOneof(4); + } + + public function hasExampleQuery() + { + return $this->hasOneof(4); + } + + /** + * Output only. The example query used as the source. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery $var + * @return $this + */ + public function setExampleQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Output only. The glossary term used as the source. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_term = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\GlossaryTerm|null + */ + public function getGlossaryTerm() + { + return $this->readOneof(5); + } + + public function hasGlossaryTerm() + { + return $this->hasOneof(5); + } + + /** + * Output only. The glossary term used as the source. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_term = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\GlossaryTerm $var + * @return $this + */ + public function setGlossaryTerm($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\GlossaryTerm::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Output only. Unique identifier of the source. This ID is service-generated + * and is unique within the scope of a single `Citation` message. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Output only. Unique identifier of the source. This ID is service-generated + * and is unique within the scope of a single `Citation` message. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Output only. The title of the source. + * + * Generated from protobuf field string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * Output only. The title of the source. + * + * Generated from protobuf field string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTitle($var) + { + GPBUtil::checkString($var, True); + $this->title = $var; + + return $this; + } + + /** + * @return string + */ + public function getSourceType() + { + return $this->whichOneof("source_type"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ClientManagedResourceContext.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ClientManagedResourceContext.php new file mode 100644 index 000000000000..acc25464673c --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ClientManagedResourceContext.php @@ -0,0 +1,152 @@ +google.cloud.geminidataanalytics.v1.ClientManagedResourceContext + */ +class ClientManagedResourceContext extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Context for the chat request. Use this to chat without GDA API + * managed conversation and agent persistence by passing all context inline. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $inline_context = null; + /** + * Optional. The client managed conversation id. + * + * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $conversation_id = ''; + /** + * Optional. The client managed agent id. + * + * Generated from protobuf field string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $agent_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\Context $inline_context + * Required. Context for the chat request. Use this to chat without GDA API + * managed conversation and agent persistence by passing all context inline. + * @type string $conversation_id + * Optional. The client managed conversation id. + * @type string $agent_id + * Optional. The client managed agent id. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Context for the chat request. Use this to chat without GDA API + * managed conversation and agent persistence by passing all context inline. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\Context|null + */ + public function getInlineContext() + { + return $this->inline_context; + } + + public function hasInlineContext() + { + return isset($this->inline_context); + } + + public function clearInlineContext() + { + unset($this->inline_context); + } + + /** + * Required. Context for the chat request. Use this to chat without GDA API + * managed conversation and agent persistence by passing all context inline. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Context $var + * @return $this + */ + public function setInlineContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Context::class); + $this->inline_context = $var; + + return $this; + } + + /** + * Optional. The client managed conversation id. + * + * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getConversationId() + { + return $this->conversation_id; + } + + /** + * Optional. The client managed conversation id. + * + * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setConversationId($var) + { + GPBUtil::checkString($var, True); + $this->conversation_id = $var; + + return $this; + } + + /** + * Optional. The client managed agent id. + * + * Generated from protobuf field string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAgentId() + { + return $this->agent_id; + } + + /** + * Optional. The client managed agent id. + * + * Generated from protobuf field string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAgentId($var) + { + GPBUtil::checkString($var, True); + $this->agent_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context.php new file mode 100644 index 000000000000..a3c7300eadbc --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context.php @@ -0,0 +1,379 @@ +google.cloud.geminidataanalytics.v1.Context + */ +class Context extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The basic entry point for data owners creating domain knowledge + * for Agent. + * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age + * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) + * can help the model understand the business context around a user question. + * + * Generated from protobuf field string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $system_instruction = ''; + /** + * Required. Data sources that are available for answering the question. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $datasource_references = null; + /** + * Optional. Additional options for the conversation. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $options = null; + /** + * Optional. A list of example queries, providing examples of relevant and + * commonly used SQL queries and their corresponding natural language queries + * optionally present. Currently only used for BigQuery data sources and + * databases (alloydb, cloudsql, spanner) data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $example_queries; + /** + * Optional. A list of golden queries, providing examples of relevant and + * commonly used Looker queries and their corresponding natural language + * queries optionally present. Only supported for Looker data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.LookerGoldenQuery looker_golden_queries = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $looker_golden_queries; + /** + * Optional. Term definitions (currently, only user authored) + * Not supported for databases (alloydb, cloudsql, spanner) data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $glossary_terms; + /** + * Optional. Relationships between table schema, including referencing and + * referenced columns. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $schema_relationships; + /** + * Optional. A collection of user functions to be included in context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.UserFunctions user_functions = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $user_functions = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $system_instruction + * Optional. The basic entry point for data owners creating domain knowledge + * for Agent. + * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age + * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) + * can help the model understand the business context around a user question. + * @type \Google\Cloud\GeminiDataAnalytics\V1\DatasourceReferences $datasource_references + * Required. Data sources that are available for answering the question. + * @type \Google\Cloud\GeminiDataAnalytics\V1\ConversationOptions $options + * Optional. Additional options for the conversation. + * @type \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery[] $example_queries + * Optional. A list of example queries, providing examples of relevant and + * commonly used SQL queries and their corresponding natural language queries + * optionally present. Currently only used for BigQuery data sources and + * databases (alloydb, cloudsql, spanner) data sources. + * @type \Google\Cloud\GeminiDataAnalytics\V1\LookerGoldenQuery[] $looker_golden_queries + * Optional. A list of golden queries, providing examples of relevant and + * commonly used Looker queries and their corresponding natural language + * queries optionally present. Only supported for Looker data sources. + * @type \Google\Cloud\GeminiDataAnalytics\V1\GlossaryTerm[] $glossary_terms + * Optional. Term definitions (currently, only user authored) + * Not supported for databases (alloydb, cloudsql, spanner) data sources. + * @type \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship[] $schema_relationships + * Optional. Relationships between table schema, including referencing and + * referenced columns. + * @type \Google\Cloud\GeminiDataAnalytics\V1\UserFunctions $user_functions + * Optional. A collection of user functions to be included in context. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The basic entry point for data owners creating domain knowledge + * for Agent. + * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age + * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) + * can help the model understand the business context around a user question. + * + * Generated from protobuf field string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSystemInstruction() + { + return $this->system_instruction; + } + + /** + * Optional. The basic entry point for data owners creating domain knowledge + * for Agent. + * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age + * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) + * can help the model understand the business context around a user question. + * + * Generated from protobuf field string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSystemInstruction($var) + { + GPBUtil::checkString($var, True); + $this->system_instruction = $var; + + return $this; + } + + /** + * Required. Data sources that are available for answering the question. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\DatasourceReferences|null + */ + public function getDatasourceReferences() + { + return $this->datasource_references; + } + + public function hasDatasourceReferences() + { + return isset($this->datasource_references); + } + + public function clearDatasourceReferences() + { + unset($this->datasource_references); + } + + /** + * Required. Data sources that are available for answering the question. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\DatasourceReferences $var + * @return $this + */ + public function setDatasourceReferences($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DatasourceReferences::class); + $this->datasource_references = $var; + + return $this; + } + + /** + * Optional. Additional options for the conversation. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\ConversationOptions|null + */ + public function getOptions() + { + return $this->options; + } + + public function hasOptions() + { + return isset($this->options); + } + + public function clearOptions() + { + unset($this->options); + } + + /** + * Optional. Additional options for the conversation. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\ConversationOptions $var + * @return $this + */ + public function setOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ConversationOptions::class); + $this->options = $var; + + return $this; + } + + /** + * Optional. A list of example queries, providing examples of relevant and + * commonly used SQL queries and their corresponding natural language queries + * optionally present. Currently only used for BigQuery data sources and + * databases (alloydb, cloudsql, spanner) data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery> + */ + public function getExampleQueries() + { + return $this->example_queries; + } + + /** + * Optional. A list of example queries, providing examples of relevant and + * commonly used SQL queries and their corresponding natural language queries + * optionally present. Currently only used for BigQuery data sources and + * databases (alloydb, cloudsql, spanner) data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery[] $var + * @return $this + */ + public function setExampleQueries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery::class); + $this->example_queries = $arr; + + return $this; + } + + /** + * Optional. A list of golden queries, providing examples of relevant and + * commonly used Looker queries and their corresponding natural language + * queries optionally present. Only supported for Looker data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.LookerGoldenQuery looker_golden_queries = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\LookerGoldenQuery> + */ + public function getLookerGoldenQueries() + { + return $this->looker_golden_queries; + } + + /** + * Optional. A list of golden queries, providing examples of relevant and + * commonly used Looker queries and their corresponding natural language + * queries optionally present. Only supported for Looker data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.LookerGoldenQuery looker_golden_queries = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\LookerGoldenQuery[] $var + * @return $this + */ + public function setLookerGoldenQueries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\LookerGoldenQuery::class); + $this->looker_golden_queries = $arr; + + return $this; + } + + /** + * Optional. Term definitions (currently, only user authored) + * Not supported for databases (alloydb, cloudsql, spanner) data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\GlossaryTerm> + */ + public function getGlossaryTerms() + { + return $this->glossary_terms; + } + + /** + * Optional. Term definitions (currently, only user authored) + * Not supported for databases (alloydb, cloudsql, spanner) data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\GlossaryTerm[] $var + * @return $this + */ + public function setGlossaryTerms($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\GlossaryTerm::class); + $this->glossary_terms = $arr; + + return $this; + } + + /** + * Optional. Relationships between table schema, including referencing and + * referenced columns. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship> + */ + public function getSchemaRelationships() + { + return $this->schema_relationships; + } + + /** + * Optional. Relationships between table schema, including referencing and + * referenced columns. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship[] $var + * @return $this + */ + public function setSchemaRelationships($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship::class); + $this->schema_relationships = $arr; + + return $this; + } + + /** + * Optional. A collection of user functions to be included in context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.UserFunctions user_functions = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\UserFunctions|null + */ + public function getUserFunctions() + { + return $this->user_functions; + } + + public function hasUserFunctions() + { + return isset($this->user_functions); + } + + public function clearUserFunctions() + { + unset($this->user_functions); + } + + /** + * Optional. A collection of user functions to be included in context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.UserFunctions user_functions = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\UserFunctions $var + * @return $this + */ + public function setUserFunctions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\UserFunctions::class); + $this->user_functions = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship.php new file mode 100644 index 000000000000..22e212aad9a3 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship.php @@ -0,0 +1,219 @@ +google.cloud.geminidataanalytics.v1.Context.SchemaRelationship + */ +class SchemaRelationship extends \Google\Protobuf\Internal\Message +{ + /** + * An ordered list of fields for the join from the first table. + * The size of this list must be the same as `right_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `right_schema_paths` list. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + */ + protected $left_schema_paths = null; + /** + * An ordered list of fields for the join from the second table. + * The size of this list must be the same as `left_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `left_schema_paths` list. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + */ + protected $right_schema_paths = null; + /** + * Optional. Sources which generated the schema relation edge. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.Source sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $sources; + /** + * Optional. A confidence score for the suggested relationship. + * Manually added edges have the highest confidence score. + * + * Generated from protobuf field float confidence_score = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $confidence_score = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship\SchemaPaths $left_schema_paths + * An ordered list of fields for the join from the first table. + * The size of this list must be the same as `right_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `right_schema_paths` list. + * @type \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship\SchemaPaths $right_schema_paths + * An ordered list of fields for the join from the second table. + * The size of this list must be the same as `left_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `left_schema_paths` list. + * @type int[] $sources + * Optional. Sources which generated the schema relation edge. + * @type float $confidence_score + * Optional. A confidence score for the suggested relationship. + * Manually added edges have the highest confidence score. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * An ordered list of fields for the join from the first table. + * The size of this list must be the same as `right_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `right_schema_paths` list. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship\SchemaPaths|null + */ + public function getLeftSchemaPaths() + { + return $this->left_schema_paths; + } + + public function hasLeftSchemaPaths() + { + return isset($this->left_schema_paths); + } + + public function clearLeftSchemaPaths() + { + unset($this->left_schema_paths); + } + + /** + * An ordered list of fields for the join from the first table. + * The size of this list must be the same as `right_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `right_schema_paths` list. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship\SchemaPaths $var + * @return $this + */ + public function setLeftSchemaPaths($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship\SchemaPaths::class); + $this->left_schema_paths = $var; + + return $this; + } + + /** + * An ordered list of fields for the join from the second table. + * The size of this list must be the same as `left_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `left_schema_paths` list. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship\SchemaPaths|null + */ + public function getRightSchemaPaths() + { + return $this->right_schema_paths; + } + + public function hasRightSchemaPaths() + { + return isset($this->right_schema_paths); + } + + public function clearRightSchemaPaths() + { + unset($this->right_schema_paths); + } + + /** + * An ordered list of fields for the join from the second table. + * The size of this list must be the same as `left_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `left_schema_paths` list. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship\SchemaPaths $var + * @return $this + */ + public function setRightSchemaPaths($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship\SchemaPaths::class); + $this->right_schema_paths = $var; + + return $this; + } + + /** + * Optional. Sources which generated the schema relation edge. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.Source sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getSources() + { + return $this->sources; + } + + /** + * Optional. Sources which generated the schema relation edge. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.Source sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int[] $var + * @return $this + */ + public function setSources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship\Source::class); + $this->sources = $arr; + + return $this; + } + + /** + * Optional. A confidence score for the suggested relationship. + * Manually added edges have the highest confidence score. + * + * Generated from protobuf field float confidence_score = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getConfidenceScore() + { + return $this->confidence_score; + } + + /** + * Optional. A confidence score for the suggested relationship. + * Manually added edges have the highest confidence score. + * + * Generated from protobuf field float confidence_score = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setConfidenceScore($var) + { + GPBUtil::checkFloat($var); + $this->confidence_score = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship/SchemaPaths.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship/SchemaPaths.php new file mode 100644 index 000000000000..9132b7b7362c --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship/SchemaPaths.php @@ -0,0 +1,109 @@ +google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SchemaPaths + */ +class SchemaPaths extends \Google\Protobuf\Internal\Message +{ + /** + * The service-qualified full resource name of the table + * Ex: + * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * + * Generated from protobuf field string table_fqn = 1; + */ + protected $table_fqn = ''; + /** + * The ordered list of paths within the table schema. + * + * Generated from protobuf field repeated string paths = 2; + */ + private $paths; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $table_fqn + * The service-qualified full resource name of the table + * Ex: + * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * @type string[] $paths + * The ordered list of paths within the table schema. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * The service-qualified full resource name of the table + * Ex: + * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * + * Generated from protobuf field string table_fqn = 1; + * @return string + */ + public function getTableFqn() + { + return $this->table_fqn; + } + + /** + * The service-qualified full resource name of the table + * Ex: + * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * + * Generated from protobuf field string table_fqn = 1; + * @param string $var + * @return $this + */ + public function setTableFqn($var) + { + GPBUtil::checkString($var, True); + $this->table_fqn = $var; + + return $this; + } + + /** + * The ordered list of paths within the table schema. + * + * Generated from protobuf field repeated string paths = 2; + * @return RepeatedField + */ + public function getPaths() + { + return $this->paths; + } + + /** + * The ordered list of paths within the table schema. + * + * Generated from protobuf field repeated string paths = 2; + * @param string[] $var + * @return $this + */ + public function setPaths($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->paths = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship/Source.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship/Source.php new file mode 100644 index 000000000000..7005fc92287b --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship/Source.php @@ -0,0 +1,68 @@ +google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.Source + */ +class Source +{ + /** + * The source of the schema relationship is unspecified. + * + * Generated from protobuf enum SOURCE_UNSPECIFIED = 0; + */ + const SOURCE_UNSPECIFIED = 0; + /** + * The source of the schema relationship is BigQuery job history. + * + * Generated from protobuf enum BIGQUERY_JOB_HISTORY = 1; + */ + const BIGQUERY_JOB_HISTORY = 1; + /** + * The source of the schema relationship is LLM suggested. + * + * Generated from protobuf enum LLM_SUGGESTED = 2; + */ + const LLM_SUGGESTED = 2; + /** + * The source of the schema relationship is BigQuery table constraints. + * + * Generated from protobuf enum BIGQUERY_TABLE_CONSTRAINTS = 3; + */ + const BIGQUERY_TABLE_CONSTRAINTS = 3; + + private static $valueToName = [ + self::SOURCE_UNSPECIFIED => 'SOURCE_UNSPECIFIED', + self::BIGQUERY_JOB_HISTORY => 'BIGQUERY_JOB_HISTORY', + self::LLM_SUGGESTED => 'LLM_SUGGESTED', + self::BIGQUERY_TABLE_CONSTRAINTS => 'BIGQUERY_TABLE_CONSTRAINTS', + ]; + + 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Conversation.php new file mode 100644 index 000000000000..3c1e3c3d568a --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Conversation.php @@ -0,0 +1,383 @@ +google.cloud.geminidataanalytics.v1.Conversation + */ +class Conversation extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Identifier. The unique resource name of a conversation. Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * `{conversation_id}` is the resource id and should be 63 characters or less + * and must match the format described in + * https://google.aip.dev/122#resource-id-segments + * Example: + * `projects/1234567890/locations/global/conversations/my-conversation`. + * It is recommended to skip setting this field during conversation creation + * as it will be inferred automatically and overwritten with the + * {parent}/conversations/{conversation_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. Agent(s) in the conversation. + * Currently, only one agent is supported. This field is repeated to allow + * for future support of multiple agents in a conversation. + * Format: `projects/{project}/locations/{location}/dataAgents/{agent}` + * + * Generated from protobuf field repeated string agents = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $agents; + /** + * Output only. Creation timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp of the last used conversation. + * + * Generated from protobuf field .google.protobuf.Timestamp last_used_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_used_time = null; + /** + * Optional. Open-ended and user-defined labels that can be set by the client + * to tag a conversation (e.g. to filter conversations for specific + * surfaces/products). + * + * Generated from protobuf field map labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * Conversation resources. Encryption will happen at Titan layer, we will pass + * the KMS key to Titan. + * Format: + * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. + * + * Generated from protobuf field optional string kms_key = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $kms_key = null; + /** + * Optional. Whether memory is paused for this conversation. + * + * Generated from protobuf field optional bool memory_paused = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $memory_paused = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Optional. Identifier. The unique resource name of a conversation. Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * `{conversation_id}` is the resource id and should be 63 characters or less + * and must match the format described in + * https://google.aip.dev/122#resource-id-segments + * Example: + * `projects/1234567890/locations/global/conversations/my-conversation`. + * It is recommended to skip setting this field during conversation creation + * as it will be inferred automatically and overwritten with the + * {parent}/conversations/{conversation_id}. + * @type string[] $agents + * Required. Agent(s) in the conversation. + * Currently, only one agent is supported. This field is repeated to allow + * for future support of multiple agents in a conversation. + * Format: `projects/{project}/locations/{location}/dataAgents/{agent}` + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Creation timestamp. + * @type \Google\Protobuf\Timestamp $last_used_time + * Output only. Timestamp of the last used conversation. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. Open-ended and user-defined labels that can be set by the client + * to tag a conversation (e.g. to filter conversations for specific + * surfaces/products). + * @type string $kms_key + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * Conversation resources. Encryption will happen at Titan layer, we will pass + * the KMS key to Titan. + * Format: + * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. + * @type bool $memory_paused + * Optional. Whether memory is paused for this conversation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Conversation::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Identifier. The unique resource name of a conversation. Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * `{conversation_id}` is the resource id and should be 63 characters or less + * and must match the format described in + * https://google.aip.dev/122#resource-id-segments + * Example: + * `projects/1234567890/locations/global/conversations/my-conversation`. + * It is recommended to skip setting this field during conversation creation + * as it will be inferred automatically and overwritten with the + * {parent}/conversations/{conversation_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. Identifier. The unique resource name of a conversation. Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * `{conversation_id}` is the resource id and should be 63 characters or less + * and must match the format described in + * https://google.aip.dev/122#resource-id-segments + * Example: + * `projects/1234567890/locations/global/conversations/my-conversation`. + * It is recommended to skip setting this field during conversation creation + * as it will be inferred automatically and overwritten with the + * {parent}/conversations/{conversation_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Agent(s) in the conversation. + * Currently, only one agent is supported. This field is repeated to allow + * for future support of multiple agents in a conversation. + * Format: `projects/{project}/locations/{location}/dataAgents/{agent}` + * + * Generated from protobuf field repeated string agents = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField + */ + public function getAgents() + { + return $this->agents; + } + + /** + * Required. Agent(s) in the conversation. + * Currently, only one agent is supported. This field is repeated to allow + * for future support of multiple agents in a conversation. + * Format: `projects/{project}/locations/{location}/dataAgents/{agent}` + * + * Generated from protobuf field repeated string agents = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string[] $var + * @return $this + */ + public function setAgents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->agents = $arr; + + return $this; + } + + /** + * Output only. Creation timestamp. + * + * 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. Creation timestamp. + * + * 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 of the last used conversation. + * + * Generated from protobuf field .google.protobuf.Timestamp last_used_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastUsedTime() + { + return $this->last_used_time; + } + + public function hasLastUsedTime() + { + return isset($this->last_used_time); + } + + public function clearLastUsedTime() + { + unset($this->last_used_time); + } + + /** + * Output only. Timestamp of the last used conversation. + * + * Generated from protobuf field .google.protobuf.Timestamp last_used_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastUsedTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_used_time = $var; + + return $this; + } + + /** + * Optional. Open-ended and user-defined labels that can be set by the client + * to tag a conversation (e.g. to filter conversations for specific + * surfaces/products). + * + * Generated from protobuf field map labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. Open-ended and user-defined labels that can be set by the client + * to tag a conversation (e.g. to filter conversations for specific + * surfaces/products). + * + * Generated from protobuf field map labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * Conversation resources. Encryption will happen at Titan layer, we will pass + * the KMS key to Titan. + * Format: + * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. + * + * Generated from protobuf field optional string kms_key = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getKmsKey() + { + return isset($this->kms_key) ? $this->kms_key : ''; + } + + public function hasKmsKey() + { + return isset($this->kms_key); + } + + public function clearKmsKey() + { + unset($this->kms_key); + } + + /** + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * Conversation resources. Encryption will happen at Titan layer, we will pass + * the KMS key to Titan. + * Format: + * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. + * + * Generated from protobuf field optional string kms_key = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setKmsKey($var) + { + GPBUtil::checkString($var, True); + $this->kms_key = $var; + + return $this; + } + + /** + * Optional. Whether memory is paused for this conversation. + * + * Generated from protobuf field optional bool memory_paused = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getMemoryPaused() + { + return isset($this->memory_paused) ? $this->memory_paused : false; + } + + public function hasMemoryPaused() + { + return isset($this->memory_paused); + } + + public function clearMemoryPaused() + { + unset($this->memory_paused); + } + + /** + * Optional. Whether memory is paused for this conversation. + * + * Generated from protobuf field optional bool memory_paused = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setMemoryPaused($var) + { + GPBUtil::checkBool($var); + $this->memory_paused = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationOptions.php new file mode 100644 index 000000000000..96481a4a8a8e --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationOptions.php @@ -0,0 +1,165 @@ +google.cloud.geminidataanalytics.v1.ConversationOptions + */ +class ConversationOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Options for analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisOptions analysis = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $analysis = null; + /** + * Optional. Options for datasources. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $datasource = null; + /** + * Optional. The model to use for the agent loop. + * + * Generated from protobuf field optional .google.cloud.geminidataanalytics.v1.ConversationOptions.Model model = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $model = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\AnalysisOptions $analysis + * Optional. Options for analysis. + * @type \Google\Cloud\GeminiDataAnalytics\V1\DatasourceOptions $datasource + * Optional. Options for datasources. + * @type int $model + * Optional. The model to use for the agent loop. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Options for analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisOptions analysis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\AnalysisOptions|null + */ + public function getAnalysis() + { + return $this->analysis; + } + + public function hasAnalysis() + { + return isset($this->analysis); + } + + public function clearAnalysis() + { + unset($this->analysis); + } + + /** + * Optional. Options for analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisOptions analysis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\AnalysisOptions $var + * @return $this + */ + public function setAnalysis($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\AnalysisOptions::class); + $this->analysis = $var; + + return $this; + } + + /** + * Optional. Options for datasources. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\DatasourceOptions|null + */ + public function getDatasource() + { + return $this->datasource; + } + + public function hasDatasource() + { + return isset($this->datasource); + } + + public function clearDatasource() + { + unset($this->datasource); + } + + /** + * Optional. Options for datasources. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\DatasourceOptions $var + * @return $this + */ + public function setDatasource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DatasourceOptions::class); + $this->datasource = $var; + + return $this; + } + + /** + * Optional. The model to use for the agent loop. + * + * Generated from protobuf field optional .google.cloud.geminidataanalytics.v1.ConversationOptions.Model model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getModel() + { + return isset($this->model) ? $this->model : 0; + } + + public function hasModel() + { + return isset($this->model); + } + + public function clearModel() + { + unset($this->model); + } + + /** + * Optional. The model to use for the agent loop. + * + * Generated from protobuf field optional .google.cloud.geminidataanalytics.v1.ConversationOptions.Model model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setModel($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1\ConversationOptions\Model::class); + $this->model = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationOptions/Model.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationOptions/Model.php new file mode 100644 index 000000000000..91e23402bc7c --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationOptions/Model.php @@ -0,0 +1,59 @@ +google.cloud.geminidataanalytics.v1.ConversationOptions.Model + */ +class Model +{ + /** + * No model specified. The model may be set on the chat request, or the + * default model will be used. Currently, this is + * `gemini-3.0-flash-preview`. + * + * Generated from protobuf enum MODEL_UNSPECIFIED = 0; + */ + const MODEL_UNSPECIFIED = 0; + /** + * Use the most up-to-date non-preview model. Currently, this is + * `gemini-2.5-flash`. This constrains the request level settings. The + * default will change to `gemini-2.5-flash`, and setting `thinking_mode` + * will not be supported. + * + * Generated from protobuf enum LATEST_GA_MODEL = 1; + */ + const LATEST_GA_MODEL = 1; + + private static $valueToName = [ + self::MODEL_UNSPECIFIED => 'MODEL_UNSPECIFIED', + self::LATEST_GA_MODEL => 'LATEST_GA_MODEL', + ]; + + 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationReference.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationReference.php new file mode 100644 index 000000000000..822a53b62b3b --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationReference.php @@ -0,0 +1,119 @@ +google.cloud.geminidataanalytics.v1.ConversationReference + */ +class ConversationReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the conversation resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * + * Generated from protobuf field string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $conversation = ''; + /** + * Required. Context for the chat request using a data agent. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_agent_context = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $conversation + * Required. Name of the conversation resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * @type \Google\Cloud\GeminiDataAnalytics\V1\DataAgentContext $data_agent_context + * Required. Context for the chat request using a data agent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the conversation resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * + * Generated from protobuf field string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getConversation() + { + return $this->conversation; + } + + /** + * Required. Name of the conversation resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * + * Generated from protobuf field string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setConversation($var) + { + GPBUtil::checkString($var, True); + $this->conversation = $var; + + return $this; + } + + /** + * Required. Context for the chat request using a data agent. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\DataAgentContext|null + */ + public function getDataAgentContext() + { + return $this->data_agent_context; + } + + public function hasDataAgentContext() + { + return isset($this->data_agent_context); + } + + public function clearDataAgentContext() + { + unset($this->data_agent_context); + } + + /** + * Required. Context for the chat request using a data agent. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\DataAgentContext $var + * @return $this + */ + public function setDataAgentContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DataAgentContext::class); + $this->data_agent_context = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CreateConversationRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CreateConversationRequest.php new file mode 100644 index 000000000000..a015fe6944d3 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CreateConversationRequest.php @@ -0,0 +1,229 @@ +google.cloud.geminidataanalytics.v1.CreateConversationRequest + */ +class CreateConversationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent value for CreateConversationRequest. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The conversation id of the conversation to create. + * Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * + * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $conversation_id = ''; + /** + * Required. The conversation to create. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Conversation conversation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $conversation = null; + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $parent Required. Parent value for CreateConversationRequest. + * Format: `projects/{project}/locations/{location}` + * Please see {@see DataChatServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\GeminiDataAnalytics\V1\Conversation $conversation Required. The conversation to create. + * @param string $conversationId Optional. The conversation id of the conversation to create. + * Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1\CreateConversationRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\GeminiDataAnalytics\V1\Conversation $conversation, string $conversationId): self + { + return (new self()) + ->setParent($parent) + ->setConversation($conversation) + ->setConversationId($conversationId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent value for CreateConversationRequest. + * Format: `projects/{project}/locations/{location}` + * @type string $conversation_id + * Optional. The conversation id of the conversation to create. + * Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * @type \Google\Cloud\GeminiDataAnalytics\V1\Conversation $conversation + * Required. The conversation to create. + * @type string $request_id + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Conversation::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent value for CreateConversationRequest. + * Format: `projects/{project}/locations/{location}` + * + * 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. Parent value for CreateConversationRequest. + * Format: `projects/{project}/locations/{location}` + * + * 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 conversation id of the conversation to create. + * Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * + * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getConversationId() + { + return $this->conversation_id; + } + + /** + * Optional. The conversation id of the conversation to create. + * Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * + * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setConversationId($var) + { + GPBUtil::checkString($var, True); + $this->conversation_id = $var; + + return $this; + } + + /** + * Required. The conversation to create. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Conversation conversation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\Conversation|null + */ + public function getConversation() + { + return $this->conversation; + } + + public function hasConversation() + { + return isset($this->conversation); + } + + public function clearConversation() + { + unset($this->conversation); + } + + /** + * Required. The conversation to create. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Conversation conversation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Conversation $var + * @return $this + */ + public function setConversation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Conversation::class); + $this->conversation = $var; + + return $this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CreateDataAgentRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CreateDataAgentRequest.php new file mode 100644 index 000000000000..cfb9055a539c --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CreateDataAgentRequest.php @@ -0,0 +1,247 @@ +google.cloud.geminidataanalytics.v1.CreateDataAgentRequest + */ +class CreateDataAgentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Value for parent. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Id of the requesting object. Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * + * Generated from protobuf field string data_agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_agent_id = ''; + /** + * Required. The resource being created. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgent data_agent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_agent = null; + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $parent Required. Value for parent. Please see + * {@see DataAgentServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\GeminiDataAnalytics\V1\DataAgent $dataAgent Required. The resource being created. + * @param string $dataAgentId Optional. Id of the requesting object. Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1\CreateDataAgentRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\GeminiDataAnalytics\V1\DataAgent $dataAgent, string $dataAgentId): self + { + return (new self()) + ->setParent($parent) + ->setDataAgent($dataAgent) + ->setDataAgentId($dataAgentId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Value for parent. + * @type string $data_agent_id + * Optional. Id of the requesting object. Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * @type \Google\Cloud\GeminiDataAnalytics\V1\DataAgent $data_agent + * Required. The resource being created. + * @type string $request_id + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgentService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Value for parent. + * + * 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. Value for parent. + * + * 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. Id of the requesting object. Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * + * Generated from protobuf field string data_agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDataAgentId() + { + return $this->data_agent_id; + } + + /** + * Optional. Id of the requesting object. Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * + * Generated from protobuf field string data_agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDataAgentId($var) + { + GPBUtil::checkString($var, True); + $this->data_agent_id = $var; + + return $this; + } + + /** + * Required. The resource being created. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgent data_agent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\DataAgent|null + */ + public function getDataAgent() + { + return $this->data_agent; + } + + public function hasDataAgent() + { + return isset($this->data_agent); + } + + public function clearDataAgent() + { + unset($this->data_agent); + } + + /** + * Required. The resource being created. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgent data_agent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\DataAgent $var + * @return $this + */ + public function setDataAgent($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DataAgent::class); + $this->data_agent = $var; + + return $this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Credentials.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Credentials.php new file mode 100644 index 000000000000..549875ac3f47 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Credentials.php @@ -0,0 +1,75 @@ +google.cloud.geminidataanalytics.v1.Credentials + */ +class Credentials extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials $oauth + * OAuth credentials. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Credentials::initOnce(); + parent::__construct($data); + } + + /** + * OAuth credentials. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.OAuthCredentials oauth = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials|null + */ + public function getOauth() + { + return $this->readOneof(1); + } + + public function hasOauth() + { + return $this->hasOneof(1); + } + + /** + * OAuth credentials. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.OAuthCredentials oauth = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials $var + * @return $this + */ + public function setOauth($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgent.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgent.php new file mode 100644 index 000000000000..62e704033645 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgent.php @@ -0,0 +1,515 @@ +google.cloud.geminidataanalytics.v1.DataAgent + */ +class DataAgent extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Identifier. The unique resource name of a DataAgent. + * Format: + * `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` + * `{data_agent}` is the resource id and should be 63 characters or less and + * must match the format described in + * https://google.aip.dev/122#resource-id-segments + * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. + * It is recommended to skip setting this field during agent creation as it + * will be inferred automatically and overwritten with the + * {parent}/dataAgents/{data_agent_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. User friendly display name. + * * Must be between 1-256 characters. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. Description of the agent. + * * Must be between 1-1024 characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. Labels to help users filter related agents. + * For example, "sales", "business", "etl", and so on. + * Note labels are used only for filtering and not for policies. + * See the [labels + * documentation](https://cloud.google.com/resource-manager/docs/labels-overview) + * for more details on label usage. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Output only. The time when the data agent was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the data agent was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. [Output only] The time the data agent was soft deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $delete_time = null; + /** + * Output only. Timestamp in UTC of when this data agent is considered + * expired. This is *always* provided on output, regardless of what was sent + * on input. + * + * Generated from protobuf field .google.protobuf.Timestamp purge_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $purge_time = null; + /** + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location + * as the DataAgent. The expected format is + * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. + * + * Generated from protobuf field optional string kms_key = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $kms_key = null; + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\DataAnalyticsAgent $data_analytics_agent + * Data analytics agent. + * @type string $name + * Optional. Identifier. The unique resource name of a DataAgent. + * Format: + * `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` + * `{data_agent}` is the resource id and should be 63 characters or less and + * must match the format described in + * https://google.aip.dev/122#resource-id-segments + * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. + * It is recommended to skip setting this field during agent creation as it + * will be inferred automatically and overwritten with the + * {parent}/dataAgents/{data_agent_id}. + * @type string $display_name + * Optional. User friendly display name. + * * Must be between 1-256 characters. + * @type string $description + * Optional. Description of the agent. + * * Must be between 1-1024 characters. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. Labels to help users filter related agents. + * For example, "sales", "business", "etl", and so on. + * Note labels are used only for filtering and not for policies. + * See the [labels + * documentation](https://cloud.google.com/resource-manager/docs/labels-overview) + * for more details on label usage. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the data agent was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the data agent was last updated. + * @type \Google\Protobuf\Timestamp $delete_time + * Output only. [Output only] The time the data agent was soft deleted. + * @type \Google\Protobuf\Timestamp $purge_time + * Output only. Timestamp in UTC of when this data agent is considered + * expired. This is *always* provided on output, regardless of what was sent + * on input. + * @type string $kms_key + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location + * as the DataAgent. The expected format is + * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgent::initOnce(); + parent::__construct($data); + } + + /** + * Data analytics agent. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAnalyticsAgent data_analytics_agent = 101; + * @return \Google\Cloud\GeminiDataAnalytics\V1\DataAnalyticsAgent|null + */ + public function getDataAnalyticsAgent() + { + return $this->readOneof(101); + } + + public function hasDataAnalyticsAgent() + { + return $this->hasOneof(101); + } + + /** + * Data analytics agent. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAnalyticsAgent data_analytics_agent = 101; + * @param \Google\Cloud\GeminiDataAnalytics\V1\DataAnalyticsAgent $var + * @return $this + */ + public function setDataAnalyticsAgent($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DataAnalyticsAgent::class); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * Optional. Identifier. The unique resource name of a DataAgent. + * Format: + * `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` + * `{data_agent}` is the resource id and should be 63 characters or less and + * must match the format described in + * https://google.aip.dev/122#resource-id-segments + * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. + * It is recommended to skip setting this field during agent creation as it + * will be inferred automatically and overwritten with the + * {parent}/dataAgents/{data_agent_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. Identifier. The unique resource name of a DataAgent. + * Format: + * `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` + * `{data_agent}` is the resource id and should be 63 characters or less and + * must match the format described in + * https://google.aip.dev/122#resource-id-segments + * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. + * It is recommended to skip setting this field during agent creation as it + * will be inferred automatically and overwritten with the + * {parent}/dataAgents/{data_agent_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. User friendly display name. + * * Must be between 1-256 characters. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly display name. + * * Must be between 1-256 characters. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Description of the agent. + * * Must be between 1-1024 characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the agent. + * * Must be between 1-1024 characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. Labels to help users filter related agents. + * For example, "sales", "business", "etl", and so on. + * Note labels are used only for filtering and not for policies. + * See the [labels + * documentation](https://cloud.google.com/resource-manager/docs/labels-overview) + * for more details on label usage. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. Labels to help users filter related agents. + * For example, "sales", "business", "etl", and so on. + * Note labels are used only for filtering and not for policies. + * See the [labels + * documentation](https://cloud.google.com/resource-manager/docs/labels-overview) + * for more details on label usage. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. The time when the data agent was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.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 when the data agent was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.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 when the data agent was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.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 when the data agent was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.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. [Output only] The time the data agent was soft deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDeleteTime() + { + return $this->delete_time; + } + + public function hasDeleteTime() + { + return isset($this->delete_time); + } + + public function clearDeleteTime() + { + unset($this->delete_time); + } + + /** + * Output only. [Output only] The time the data agent was soft deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDeleteTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->delete_time = $var; + + return $this; + } + + /** + * Output only. Timestamp in UTC of when this data agent is considered + * expired. This is *always* provided on output, regardless of what was sent + * on input. + * + * Generated from protobuf field .google.protobuf.Timestamp purge_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getPurgeTime() + { + return $this->purge_time; + } + + public function hasPurgeTime() + { + return isset($this->purge_time); + } + + public function clearPurgeTime() + { + unset($this->purge_time); + } + + /** + * Output only. Timestamp in UTC of when this data agent is considered + * expired. This is *always* provided on output, regardless of what was sent + * on input. + * + * Generated from protobuf field .google.protobuf.Timestamp purge_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setPurgeTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->purge_time = $var; + + return $this; + } + + /** + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location + * as the DataAgent. The expected format is + * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. + * + * Generated from protobuf field optional string kms_key = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getKmsKey() + { + return isset($this->kms_key) ? $this->kms_key : ''; + } + + public function hasKmsKey() + { + return isset($this->kms_key); + } + + public function clearKmsKey() + { + unset($this->kms_key); + } + + /** + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location + * as the DataAgent. The expected format is + * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. + * + * Generated from protobuf field optional string kms_key = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setKmsKey($var) + { + GPBUtil::checkString($var, True); + $this->kms_key = $var; + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgentContext.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgentContext.php new file mode 100644 index 000000000000..f625369ef10f --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgentContext.php @@ -0,0 +1,101 @@ +google.cloud.geminidataanalytics.v1.DataAgentContext + */ +class DataAgentContext extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the data agent resource. + * + * Generated from protobuf field string data_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $data_agent = ''; + /** + * Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED) + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $context_version = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $data_agent + * Required. The name of the data agent resource. + * @type int $context_version + * Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the data agent resource. + * + * Generated from protobuf field string data_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getDataAgent() + { + return $this->data_agent; + } + + /** + * Required. The name of the data agent resource. + * + * Generated from protobuf field string data_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDataAgent($var) + { + GPBUtil::checkString($var, True); + $this->data_agent = $var; + + return $this; + } + + /** + * Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED) + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getContextVersion() + { + return $this->context_version; + } + + /** + * Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED) + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setContextVersion($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1\DataAgentContext\ContextVersion::class); + $this->context_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgentContext/ContextVersion.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgentContext/ContextVersion.php new file mode 100644 index 000000000000..06792af16f83 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgentContext/ContextVersion.php @@ -0,0 +1,65 @@ +google.cloud.geminidataanalytics.v1.DataAgentContext.ContextVersion + */ +class ContextVersion +{ + /** + * Unspecified or unrecognized. + * + * Generated from protobuf enum CONTEXT_VERSION_UNSPECIFIED = 0; + */ + const CONTEXT_VERSION_UNSPECIFIED = 0; + /** + * Using this version, DCS will use the latest staging context for the + * data agent. + * + * Generated from protobuf enum STAGING = 1; + */ + const STAGING = 1; + /** + * Using this version, DCS will use the latest published context for the + * data agent. + * + * Generated from protobuf enum PUBLISHED = 2; + */ + const PUBLISHED = 2; + + private static $valueToName = [ + self::CONTEXT_VERSION_UNSPECIFIED => 'CONTEXT_VERSION_UNSPECIFIED', + self::STAGING => 'STAGING', + self::PUBLISHED => 'PUBLISHED', + ]; + + 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAnalyticsAgent.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAnalyticsAgent.php new file mode 100644 index 000000000000..cd2e29130aab --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAnalyticsAgent.php @@ -0,0 +1,185 @@ +google.cloud.geminidataanalytics.v1.DataAnalyticsAgent + */ +class DataAnalyticsAgent extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The staging context for the agent. + * This context is used to test and validate changes before publishing. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context staging_context = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $staging_context = null; + /** + * Optional. The published context for the agent. + * This context is used by the Chat API in production. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context published_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $published_context = null; + /** + * Output only. The last published context for the agent. + * This is an output-only field populated by the system when the + * published context is updated. It is used to restore the agent to a + * previous state. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context last_published_context = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_published_context = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\Context $staging_context + * Optional. The staging context for the agent. + * This context is used to test and validate changes before publishing. + * @type \Google\Cloud\GeminiDataAnalytics\V1\Context $published_context + * Optional. The published context for the agent. + * This context is used by the Chat API in production. + * @type \Google\Cloud\GeminiDataAnalytics\V1\Context $last_published_context + * Output only. The last published context for the agent. + * This is an output-only field populated by the system when the + * published context is updated. It is used to restore the agent to a + * previous state. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAnalyticsAgent::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The staging context for the agent. + * This context is used to test and validate changes before publishing. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context staging_context = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\Context|null + */ + public function getStagingContext() + { + return $this->staging_context; + } + + public function hasStagingContext() + { + return isset($this->staging_context); + } + + public function clearStagingContext() + { + unset($this->staging_context); + } + + /** + * Optional. The staging context for the agent. + * This context is used to test and validate changes before publishing. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context staging_context = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Context $var + * @return $this + */ + public function setStagingContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Context::class); + $this->staging_context = $var; + + return $this; + } + + /** + * Optional. The published context for the agent. + * This context is used by the Chat API in production. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context published_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\Context|null + */ + public function getPublishedContext() + { + return $this->published_context; + } + + public function hasPublishedContext() + { + return isset($this->published_context); + } + + public function clearPublishedContext() + { + unset($this->published_context); + } + + /** + * Optional. The published context for the agent. + * This context is used by the Chat API in production. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context published_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Context $var + * @return $this + */ + public function setPublishedContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Context::class); + $this->published_context = $var; + + return $this; + } + + /** + * Output only. The last published context for the agent. + * This is an output-only field populated by the system when the + * published context is updated. It is used to restore the agent to a + * previous state. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context last_published_context = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\Context|null + */ + public function getLastPublishedContext() + { + return $this->last_published_context; + } + + public function hasLastPublishedContext() + { + return isset($this->last_published_context); + } + + public function clearLastPublishedContext() + { + unset($this->last_published_context); + } + + /** + * Output only. The last published context for the agent. + * This is an output-only field populated by the system when the + * published context is updated. It is used to restore the agent to a + * previous state. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context last_published_context = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Context $var + * @return $this + */ + public function setLastPublishedContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Context::class); + $this->last_published_context = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataFilter.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataFilter.php new file mode 100644 index 000000000000..5289e914b19c --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataFilter.php @@ -0,0 +1,148 @@ +google.cloud.geminidataanalytics.v1.DataFilter + */ +class DataFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The field to filter on. For example: ["event_date", + * "customer_id", "product_category"] + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $field = ''; + /** + * Optional. The default value used for this filter if the filter is not + * overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"] + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $value = ''; + /** + * Optional. The type of filter present on a datasource, such as + * ALWAYS_FILTER. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field + * Optional. The field to filter on. For example: ["event_date", + * "customer_id", "product_category"] + * @type string $value + * Optional. The default value used for this filter if the filter is not + * overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"] + * @type int $type + * Optional. The type of filter present on a datasource, such as + * ALWAYS_FILTER. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The field to filter on. For example: ["event_date", + * "customer_id", "product_category"] + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getField() + { + return $this->field; + } + + /** + * Optional. The field to filter on. For example: ["event_date", + * "customer_id", "product_category"] + * + * 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. The default value used for this filter if the filter is not + * overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"] + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Optional. The default value used for this filter if the filter is not + * overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"] + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * Optional. The type of filter present on a datasource, such as + * ALWAYS_FILTER. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Optional. The type of filter present on a datasource, such as + * ALWAYS_FILTER. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1\DataFilterType::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataFilterType.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataFilterType.php new file mode 100644 index 000000000000..11b5ce12beb4 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataFilterType.php @@ -0,0 +1,56 @@ +google.cloud.geminidataanalytics.v1.DataFilterType + */ +class DataFilterType +{ + /** + * The filter type was not specified. + * + * Generated from protobuf enum DATA_FILTER_TYPE_UNSPECIFIED = 0; + */ + const DATA_FILTER_TYPE_UNSPECIFIED = 0; + /** + * A filter that the user configures, and any queries to the Explore will + * always apply this filter by default. Currently only used for Looker data + * sources. + * + * Generated from protobuf enum ALWAYS_FILTER = 1; + */ + const ALWAYS_FILTER = 1; + + private static $valueToName = [ + self::DATA_FILTER_TYPE_UNSPECIFIED => 'DATA_FILTER_TYPE_UNSPECIFIED', + self::ALWAYS_FILTER => 'ALWAYS_FILTER', + ]; + + 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataMessage.php new file mode 100644 index 000000000000..2b69ba1e9dc1 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataMessage.php @@ -0,0 +1,207 @@ +google.cloud.geminidataanalytics.v1.DataMessage + */ +class DataMessage extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\DataQuery $query + * A data retrieval query. + * @type string $generated_sql + * SQL generated by the system to retrieve data. + * @type \Google\Cloud\GeminiDataAnalytics\V1\DataResult $result + * Retrieved data. + * @type \Google\Cloud\GeminiDataAnalytics\V1\BigQueryJob $big_query_job + * A BigQuery job executed by the system to retrieve data. + * @type \Google\Cloud\GeminiDataAnalytics\V1\MatchedQuery $matched_query + * A pre-existing query that was matched to retrieve data. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * A data retrieval query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataQuery query = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1\DataQuery|null + */ + public function getQuery() + { + return $this->readOneof(1); + } + + public function hasQuery() + { + return $this->hasOneof(1); + } + + /** + * A data retrieval query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataQuery query = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1\DataQuery $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DataQuery::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * SQL generated by the system to retrieve data. + * + * Generated from protobuf field string generated_sql = 2; + * @return string + */ + public function getGeneratedSql() + { + return $this->readOneof(2); + } + + public function hasGeneratedSql() + { + return $this->hasOneof(2); + } + + /** + * SQL generated by the system to retrieve data. + * + * Generated from protobuf field string generated_sql = 2; + * @param string $var + * @return $this + */ + public function setGeneratedSql($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Retrieved data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataResult result = 3; + * @return \Google\Cloud\GeminiDataAnalytics\V1\DataResult|null + */ + public function getResult() + { + return $this->readOneof(3); + } + + public function hasResult() + { + return $this->hasOneof(3); + } + + /** + * Retrieved data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataResult result = 3; + * @param \Google\Cloud\GeminiDataAnalytics\V1\DataResult $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DataResult::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * A BigQuery job executed by the system to retrieve data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryJob big_query_job = 5; + * @return \Google\Cloud\GeminiDataAnalytics\V1\BigQueryJob|null + */ + public function getBigQueryJob() + { + return $this->readOneof(5); + } + + public function hasBigQueryJob() + { + return $this->hasOneof(5); + } + + /** + * A BigQuery job executed by the system to retrieve data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryJob big_query_job = 5; + * @param \Google\Cloud\GeminiDataAnalytics\V1\BigQueryJob $var + * @return $this + */ + public function setBigQueryJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\BigQueryJob::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * A pre-existing query that was matched to retrieve data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.MatchedQuery matched_query = 6; + * @return \Google\Cloud\GeminiDataAnalytics\V1\MatchedQuery|null + */ + public function getMatchedQuery() + { + return $this->readOneof(6); + } + + public function hasMatchedQuery() + { + return $this->hasOneof(6); + } + + /** + * A pre-existing query that was matched to retrieve data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.MatchedQuery matched_query = 6; + * @param \Google\Cloud\GeminiDataAnalytics\V1\MatchedQuery $var + * @return $this + */ + public function setMatchedQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\MatchedQuery::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataQuery.php new file mode 100644 index 000000000000..84e9abf81ac7 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataQuery.php @@ -0,0 +1,193 @@ +google.cloud.geminidataanalytics.v1.DataQuery + */ +class DataQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A natural language question to answer. + * + * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $question = ''; + /** + * Optional. A snake-case name for the query that reflects its intent. It is + * used to name the corresponding data result, so that it can be referenced in + * later steps. + * * Example: "total_sales_by_product" + * * Example: "sales_for_product_12345" + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $name = ''; + /** + * Optional. The datasources available to answer the question. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $datasources; + protected $query_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery $looker + * Optional. A query for retrieving data from a Looker explore. + * @type string $question + * Optional. A natural language question to answer. + * @type string $name + * Optional. A snake-case name for the query that reflects its intent. It is + * used to name the corresponding data result, so that it can be referenced in + * later steps. + * * Example: "total_sales_by_product" + * * Example: "sales_for_product_12345" + * @type \Google\Cloud\GeminiDataAnalytics\V1\Datasource[] $datasources + * Optional. The datasources available to answer the question. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A query for retrieving data from a Looker explore. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery|null + */ + public function getLooker() + { + return $this->readOneof(4); + } + + public function hasLooker() + { + return $this->hasOneof(4); + } + + /** + * Optional. A query for retrieving data from a Looker explore. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery $var + * @return $this + */ + public function setLooker($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Optional. A natural language question to answer. + * + * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getQuestion() + { + return $this->question; + } + + /** + * Optional. A natural language question to answer. + * + * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setQuestion($var) + { + GPBUtil::checkString($var, True); + $this->question = $var; + + return $this; + } + + /** + * Optional. A snake-case name for the query that reflects its intent. It is + * used to name the corresponding data result, so that it can be referenced in + * later steps. + * * Example: "total_sales_by_product" + * * Example: "sales_for_product_12345" + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. A snake-case name for the query that reflects its intent. It is + * used to name the corresponding data result, so that it can be referenced in + * later steps. + * * Example: "total_sales_by_product" + * * Example: "sales_for_product_12345" + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The datasources available to answer the question. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\Datasource> + */ + public function getDatasources() + { + return $this->datasources; + } + + /** + * Optional. The datasources available to answer the question. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Datasource[] $var + * @return $this + */ + public function setDatasources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\Datasource::class); + $this->datasources = $arr; + + return $this; + } + + /** + * @return string + */ + public function getQueryType() + { + return $this->whichOneof("query_type"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataResult.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataResult.php new file mode 100644 index 000000000000..f3f946795f8d --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataResult.php @@ -0,0 +1,227 @@ +google.cloud.geminidataanalytics.v1.DataResult + */ +class DataResult extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A snake-case name for the data result that reflects its contents. + * The name is used to pass the result around by reference, and serves as a + * signal about its meaning. + * * Example: "total_sales_by_product" + * * Example: "sales_for_product_12345" + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $name = ''; + /** + * Optional. The schema of the data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $schema = null; + /** + * Optional. The content of the data. Each row is a struct that matches the + * schema. Simple values are represented as strings, while nested structures + * are represented as lists or structs. + * + * Generated from protobuf field repeated .google.protobuf.Struct data = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $data; + /** + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + * + * Generated from protobuf field repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $formatted_data; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Optional. A snake-case name for the data result that reflects its contents. + * The name is used to pass the result around by reference, and serves as a + * signal about its meaning. + * * Example: "total_sales_by_product" + * * Example: "sales_for_product_12345" + * @type \Google\Cloud\GeminiDataAnalytics\V1\Schema $schema + * Optional. The schema of the data. + * @type \Google\Protobuf\Struct[] $data + * Optional. The content of the data. Each row is a struct that matches the + * schema. Simple values are represented as strings, while nested structures + * are represented as lists or structs. + * @type \Google\Protobuf\Struct[] $formatted_data + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A snake-case name for the data result that reflects its contents. + * The name is used to pass the result around by reference, and serves as a + * signal about its meaning. + * * Example: "total_sales_by_product" + * * Example: "sales_for_product_12345" + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. A snake-case name for the data result that reflects its contents. + * The name is used to pass the result around by reference, and serves as a + * signal about its meaning. + * * Example: "total_sales_by_product" + * * Example: "sales_for_product_12345" + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The schema of the data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\Schema|null + */ + public function getSchema() + { + return $this->schema; + } + + public function hasSchema() + { + return isset($this->schema); + } + + public function clearSchema() + { + unset($this->schema); + } + + /** + * Optional. The schema of the data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Schema $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Schema::class); + $this->schema = $var; + + return $this; + } + + /** + * Optional. The content of the data. Each row is a struct that matches the + * schema. Simple values are represented as strings, while nested structures + * are represented as lists or structs. + * + * Generated from protobuf field repeated .google.protobuf.Struct data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Protobuf\Struct> + */ + public function getData() + { + return $this->data; + } + + /** + * Optional. The content of the data. Each row is a struct that matches the + * schema. Simple values are represented as strings, while nested structures + * are represented as lists or structs. + * + * Generated from protobuf field repeated .google.protobuf.Struct data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Struct[] $var + * @return $this + */ + public function setData($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Struct::class); + $this->data = $arr; + + return $this; + } + + /** + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + * + * Generated from protobuf field repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Protobuf\Struct> + */ + public function getFormattedData() + { + return $this->formatted_data; + } + + /** + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + * + * Generated from protobuf field repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Struct[] $var + * @return $this + */ + public function setFormattedData($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Struct::class); + $this->formatted_data = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Datasource.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Datasource.php new file mode 100644 index 000000000000..10c910923ebe --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Datasource.php @@ -0,0 +1,278 @@ +google.cloud.geminidataanalytics.v1.Datasource + */ +class Datasource extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The schema of the datasource. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $schema = null; + /** + * Optional. A struct representation of the schema. + * This is populated for datasources with schemas that cannot be + * fully represented by the strongly-typed `schema` field. + * For Looker datasources, this maps to the LookmlModelExplore type: + * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore + * + * Generated from protobuf field .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $struct_schema = null; + protected $reference; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference $bigquery_table_reference + * A reference to a BigQuery table. + * @type string $studio_datasource_id + * A reference to a Looker Studio datasource. + * @type \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReference $looker_explore_reference + * A reference to a Looker explore. + * @type \Google\Cloud\GeminiDataAnalytics\V1\BigQueryPropertyGraphReference $bigquery_property_graph_reference + * A reference to a BigQuery property graph. + * @type \Google\Cloud\GeminiDataAnalytics\V1\Schema $schema + * Optional. The schema of the datasource. + * @type \Google\Protobuf\Struct $struct_schema + * Optional. A struct representation of the schema. + * This is populated for datasources with schemas that cannot be + * fully represented by the strongly-typed `schema` field. + * For Looker datasources, this maps to the LookmlModelExplore type: + * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * A reference to a BigQuery table. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryTableReference bigquery_table_reference = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference|null + */ + public function getBigqueryTableReference() + { + return $this->readOneof(1); + } + + public function hasBigqueryTableReference() + { + return $this->hasOneof(1); + } + + /** + * A reference to a BigQuery table. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryTableReference bigquery_table_reference = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference $var + * @return $this + */ + public function setBigqueryTableReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A reference to a Looker Studio datasource. + * + * Generated from protobuf field string studio_datasource_id = 2; + * @return string + */ + public function getStudioDatasourceId() + { + return $this->readOneof(2); + } + + public function hasStudioDatasourceId() + { + return $this->hasOneof(2); + } + + /** + * A reference to a Looker Studio datasource. + * + * Generated from protobuf field string studio_datasource_id = 2; + * @param string $var + * @return $this + */ + public function setStudioDatasourceId($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A reference to a Looker explore. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerExploreReference looker_explore_reference = 4; + * @return \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReference|null + */ + public function getLookerExploreReference() + { + return $this->readOneof(4); + } + + public function hasLookerExploreReference() + { + return $this->hasOneof(4); + } + + /** + * A reference to a Looker explore. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerExploreReference looker_explore_reference = 4; + * @param \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReference $var + * @return $this + */ + public function setLookerExploreReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReference::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * A reference to a BigQuery property graph. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReference bigquery_property_graph_reference = 16; + * @return \Google\Cloud\GeminiDataAnalytics\V1\BigQueryPropertyGraphReference|null + */ + public function getBigqueryPropertyGraphReference() + { + return $this->readOneof(16); + } + + public function hasBigqueryPropertyGraphReference() + { + return $this->hasOneof(16); + } + + /** + * A reference to a BigQuery property graph. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReference bigquery_property_graph_reference = 16; + * @param \Google\Cloud\GeminiDataAnalytics\V1\BigQueryPropertyGraphReference $var + * @return $this + */ + public function setBigqueryPropertyGraphReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\BigQueryPropertyGraphReference::class); + $this->writeOneof(16, $var); + + return $this; + } + + /** + * Optional. The schema of the datasource. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\Schema|null + */ + public function getSchema() + { + return $this->schema; + } + + public function hasSchema() + { + return isset($this->schema); + } + + public function clearSchema() + { + unset($this->schema); + } + + /** + * Optional. The schema of the datasource. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Schema $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Schema::class); + $this->schema = $var; + + return $this; + } + + /** + * Optional. A struct representation of the schema. + * This is populated for datasources with schemas that cannot be + * fully represented by the strongly-typed `schema` field. + * For Looker datasources, this maps to the LookmlModelExplore type: + * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore + * + * Generated from protobuf field .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Struct|null + */ + public function getStructSchema() + { + return $this->struct_schema; + } + + public function hasStructSchema() + { + return isset($this->struct_schema); + } + + public function clearStructSchema() + { + unset($this->struct_schema); + } + + /** + * Optional. A struct representation of the schema. + * This is populated for datasources with schemas that cannot be + * fully represented by the strongly-typed `schema` field. + * For Looker datasources, this maps to the LookmlModelExplore type: + * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore + * + * Generated from protobuf field .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setStructSchema($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->struct_schema = $var; + + return $this; + } + + /** + * @return string + */ + public function getReference() + { + return $this->whichOneof("reference"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DatasourceOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DatasourceOptions.php new file mode 100644 index 000000000000..9b7dd51c02a0 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DatasourceOptions.php @@ -0,0 +1,122 @@ +google.cloud.geminidataanalytics.v1.DatasourceOptions + */ +class DatasourceOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. This option applies to datasources that require BigQuery queries + * only. Limits the bytes billed for each BQ query job. Queries that will have + * bytes billed beyond this limit will fail (without incurring a charge). + * If unspecified, no limit will be applied. + * + * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $big_query_max_billed_bytes = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Int64Value $big_query_max_billed_bytes + * Optional. This option applies to datasources that require BigQuery queries + * only. Limits the bytes billed for each BQ query job. Queries that will have + * bytes billed beyond this limit will fail (without incurring a charge). + * If unspecified, no limit will be applied. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * Optional. This option applies to datasources that require BigQuery queries + * only. Limits the bytes billed for each BQ query job. Queries that will have + * bytes billed beyond this limit will fail (without incurring a charge). + * If unspecified, no limit will be applied. + * + * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Int64Value|null + */ + public function getBigQueryMaxBilledBytes() + { + return $this->big_query_max_billed_bytes; + } + + public function hasBigQueryMaxBilledBytes() + { + return isset($this->big_query_max_billed_bytes); + } + + public function clearBigQueryMaxBilledBytes() + { + unset($this->big_query_max_billed_bytes); + } + + /** + * Returns the unboxed value from getBigQueryMaxBilledBytes() + + * Optional. This option applies to datasources that require BigQuery queries + * only. Limits the bytes billed for each BQ query job. Queries that will have + * bytes billed beyond this limit will fail (without incurring a charge). + * If unspecified, no limit will be applied. + * + * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string|null + */ + public function getBigQueryMaxBilledBytesUnwrapped() + { + return $this->readWrapperValue("big_query_max_billed_bytes"); + } + + /** + * Optional. This option applies to datasources that require BigQuery queries + * only. Limits the bytes billed for each BQ query job. Queries that will have + * bytes billed beyond this limit will fail (without incurring a charge). + * If unspecified, no limit will be applied. + * + * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Int64Value $var + * @return $this + */ + public function setBigQueryMaxBilledBytes($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int64Value::class); + $this->big_query_max_billed_bytes = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object. + + * Optional. This option applies to datasources that require BigQuery queries + * only. Limits the bytes billed for each BQ query job. Queries that will have + * bytes billed beyond this limit will fail (without incurring a charge). + * If unspecified, no limit will be applied. + * + * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string|null $var + * @return $this + */ + public function setBigQueryMaxBilledBytesUnwrapped($var) + { + $this->writeWrapperValue("big_query_max_billed_bytes", $var); + return $this;} + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DatasourceReferences.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DatasourceReferences.php new file mode 100644 index 000000000000..f38588e2fa7a --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DatasourceReferences.php @@ -0,0 +1,141 @@ +google.cloud.geminidataanalytics.v1.DatasourceReferences + */ +class DatasourceReferences extends \Google\Protobuf\Internal\Message +{ + protected $references; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReferences $bq + * References to BigQuery tables. + * @type \Google\Cloud\GeminiDataAnalytics\V1\StudioDatasourceReferences $studio + * References to Looker Studio datasources. + * @type \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReferences $looker + * References to Looker Explores. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * References to BigQuery tables. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryTableReferences bq = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReferences|null + */ + public function getBq() + { + return $this->readOneof(1); + } + + public function hasBq() + { + return $this->hasOneof(1); + } + + /** + * References to BigQuery tables. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryTableReferences bq = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReferences $var + * @return $this + */ + public function setBq($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReferences::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * References to Looker Studio datasources. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.StudioDatasourceReferences studio = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1\StudioDatasourceReferences|null + */ + public function getStudio() + { + return $this->readOneof(2); + } + + public function hasStudio() + { + return $this->hasOneof(2); + } + + /** + * References to Looker Studio datasources. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.StudioDatasourceReferences studio = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1\StudioDatasourceReferences $var + * @return $this + */ + public function setStudio($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\StudioDatasourceReferences::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * References to Looker Explores. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerExploreReferences looker = 3; + * @return \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReferences|null + */ + public function getLooker() + { + return $this->readOneof(3); + } + + public function hasLooker() + { + return $this->hasOneof(3); + } + + /** + * References to Looker Explores. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerExploreReferences looker = 3; + * @param \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReferences $var + * @return $this + */ + public function setLooker($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReferences::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getReferences() + { + return $this->whichOneof("references"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DeleteConversationRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DeleteConversationRequest.php new file mode 100644 index 000000000000..1c406e02c77c --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DeleteConversationRequest.php @@ -0,0 +1,91 @@ +google.cloud.geminidataanalytics.v1.DeleteConversationRequest + */ +class DeleteConversationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * Please see {@see DataChatServiceClient::conversationName()} for help formatting this field. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1\DeleteConversationRequest + * + * @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. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Conversation::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * + * 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. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * + * 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DeleteDataAgentRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DeleteDataAgentRequest.php new file mode 100644 index 000000000000..334b89a36a24 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DeleteDataAgentRequest.php @@ -0,0 +1,155 @@ +google.cloud.geminidataanalytics.v1.DeleteDataAgentRequest + */ +class DeleteDataAgentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $name Required. Name of the resource. Please see + * {@see DataAgentServiceClient::dataAgentName()} for help formatting this field. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1\DeleteDataAgentRequest + * + * @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. Name of the resource. + * @type string $request_id + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgentService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the resource. + * + * 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. Name of the resource. + * + * 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. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ErrorMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ErrorMessage.php new file mode 100644 index 000000000000..165ac989294d --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ErrorMessage.php @@ -0,0 +1,78 @@ +google.cloud.geminidataanalytics.v1.ErrorMessage + */ +class ErrorMessage extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The text of the error. + * + * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $text = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $text + * Output only. The text of the error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The text of the error. + * + * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * Output only. The text of the error. + * + * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->text = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ExampleQueries.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ExampleQueries.php new file mode 100644 index 000000000000..3cb18d93eb97 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ExampleQueries.php @@ -0,0 +1,79 @@ +google.cloud.geminidataanalytics.v1.ExampleQueries + */ +class ExampleQueries extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A list of derived and authored example queries, providing + * examples of relevant and commonly used SQL queries and their corresponding + * natural language queries optionally present. Currently only used for + * BigQuery data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $example_queries; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery[] $example_queries + * Optional. A list of derived and authored example queries, providing + * examples of relevant and commonly used SQL queries and their corresponding + * natural language queries optionally present. Currently only used for + * BigQuery data sources. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A list of derived and authored example queries, providing + * examples of relevant and commonly used SQL queries and their corresponding + * natural language queries optionally present. Currently only used for + * BigQuery data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery> + */ + public function getExampleQueries() + { + return $this->example_queries; + } + + /** + * Optional. A list of derived and authored example queries, providing + * examples of relevant and commonly used SQL queries and their corresponding + * natural language queries optionally present. Currently only used for + * BigQuery data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery[] $var + * @return $this + */ + public function setExampleQueries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery::class); + $this->example_queries = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ExampleQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ExampleQuery.php new file mode 100644 index 000000000000..3e6d8adfa09f --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ExampleQuery.php @@ -0,0 +1,167 @@ +google.cloud.geminidataanalytics.v1.ExampleQuery + */ +class ExampleQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A natural language question that a user might ask. + * For example: "How many orders were placed last month?" + * + * Generated from protobuf field string natural_language_question = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $natural_language_question = ''; + /** + * Optional. The list of query parameters. + * Example: The parameterized SQL query + * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of + * id. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.QueryParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $parameters; + protected $query; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $sql_query + * Optional. The SQL query that should be generated to answer the natural + * language question. For example: "SELECT COUNT(*) FROM orders WHERE + * order_date BETWEEN '2024-01-01' AND '2024-01-31'" + * @type string $natural_language_question + * Optional. A natural language question that a user might ask. + * For example: "How many orders were placed last month?" + * @type \Google\Cloud\GeminiDataAnalytics\V1\QueryParameter[] $parameters + * Optional. The list of query parameters. + * Example: The parameterized SQL query + * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of + * id. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The SQL query that should be generated to answer the natural + * language question. For example: "SELECT COUNT(*) FROM orders WHERE + * order_date BETWEEN '2024-01-01' AND '2024-01-31'" + * + * Generated from protobuf field string sql_query = 101 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSqlQuery() + { + return $this->readOneof(101); + } + + public function hasSqlQuery() + { + return $this->hasOneof(101); + } + + /** + * Optional. The SQL query that should be generated to answer the natural + * language question. For example: "SELECT COUNT(*) FROM orders WHERE + * order_date BETWEEN '2024-01-01' AND '2024-01-31'" + * + * Generated from protobuf field string sql_query = 101 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSqlQuery($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * Optional. A natural language question that a user might ask. + * For example: "How many orders were placed last month?" + * + * Generated from protobuf field string natural_language_question = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getNaturalLanguageQuestion() + { + return $this->natural_language_question; + } + + /** + * Optional. A natural language question that a user might ask. + * For example: "How many orders were placed last month?" + * + * Generated from protobuf field string natural_language_question = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setNaturalLanguageQuestion($var) + { + GPBUtil::checkString($var, True); + $this->natural_language_question = $var; + + return $this; + } + + /** + * Optional. The list of query parameters. + * Example: The parameterized SQL query + * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of + * id. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.QueryParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\QueryParameter> + */ + public function getParameters() + { + return $this->parameters; + } + + /** + * Optional. The list of query parameters. + * Example: The parameterized SQL query + * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of + * id. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.QueryParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\QueryParameter[] $var + * @return $this + */ + public function setParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\QueryParameter::class); + $this->parameters = $arr; + + return $this; + } + + /** + * @return string + */ + public function getQuery() + { + return $this->whichOneof("query"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Field.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Field.php new file mode 100644 index 000000000000..eff8871bb59a --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Field.php @@ -0,0 +1,397 @@ +google.cloud.geminidataanalytics.v1.Field + */ +class Field extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The name of the field. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $name = ''; + /** + * Optional. The type of the field. + * + * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $type = ''; + /** + * Optional. A brief description of the field. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. The mode of the field (e.g., NULLABLE, REPEATED). + * + * Generated from protobuf field string mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $mode = ''; + /** + * Optional. A list of alternative names or synonyms that can be used to refer + * to this field. For example: ["id", "customerid", "cust_id"]. Currently only + * used for BigQuery data sources. + * + * Generated from protobuf field repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $synonyms; + /** + * Optional. A list of tags or keywords associated with the field, used for + * categorization. For example: ["identifier", "customer", "pii"]. Currently + * only used for BigQuery data sources. + * + * Generated from protobuf field repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $tags; + /** + * Optional. Field display_name (same as label in + * + * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. Recursive property for nested schema structures. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Field subfields = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $subfields; + /** + * Optional. Field category, not required, currently only useful for Looker. + * + * Generated from protobuf field string category = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $category = ''; + /** + * Optional. Looker only. Value format of the field. + * Ref: + * https://cloud.google.com/looker/docs/reference/param-field-value-format + * + * Generated from protobuf field string value_format = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $value_format = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Optional. The name of the field. + * @type string $type + * Optional. The type of the field. + * @type string $description + * Optional. A brief description of the field. + * @type string $mode + * Optional. The mode of the field (e.g., NULLABLE, REPEATED). + * @type string[] $synonyms + * Optional. A list of alternative names or synonyms that can be used to refer + * to this field. For example: ["id", "customerid", "cust_id"]. Currently only + * used for BigQuery data sources. + * @type string[] $tags + * Optional. A list of tags or keywords associated with the field, used for + * categorization. For example: ["identifier", "customer", "pii"]. Currently + * only used for BigQuery data sources. + * @type string $display_name + * Optional. Field display_name (same as label in + * @type \Google\Cloud\GeminiDataAnalytics\V1\Field[] $subfields + * Optional. Recursive property for nested schema structures. + * @type string $category + * Optional. Field category, not required, currently only useful for Looker. + * @type string $value_format + * Optional. Looker only. Value format of the field. + * Ref: + * https://cloud.google.com/looker/docs/reference/param-field-value-format + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The name of the field. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. The name of the field. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The type of the field. + * + * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Optional. The type of the field. + * + * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Optional. A brief description of the field. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A brief description of the field. + * + * 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. The mode of the field (e.g., NULLABLE, REPEATED). + * + * Generated from protobuf field string mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMode() + { + return $this->mode; + } + + /** + * Optional. The mode of the field (e.g., NULLABLE, REPEATED). + * + * Generated from protobuf field string mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMode($var) + { + GPBUtil::checkString($var, True); + $this->mode = $var; + + return $this; + } + + /** + * Optional. A list of alternative names or synonyms that can be used to refer + * to this field. For example: ["id", "customerid", "cust_id"]. Currently only + * used for BigQuery data sources. + * + * Generated from protobuf field repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getSynonyms() + { + return $this->synonyms; + } + + /** + * Optional. A list of alternative names or synonyms that can be used to refer + * to this field. For example: ["id", "customerid", "cust_id"]. Currently only + * used for BigQuery data sources. + * + * Generated from protobuf field repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setSynonyms($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->synonyms = $arr; + + return $this; + } + + /** + * Optional. A list of tags or keywords associated with the field, used for + * categorization. For example: ["identifier", "customer", "pii"]. Currently + * only used for BigQuery data sources. + * + * Generated from protobuf field repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Optional. A list of tags or keywords associated with the field, used for + * categorization. For example: ["identifier", "customer", "pii"]. Currently + * only used for BigQuery data sources. + * + * Generated from protobuf field repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * Optional. Field display_name (same as label in + * + * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. Field display_name (same as label in + * + * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Recursive property for nested schema structures. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Field subfields = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\Field> + */ + public function getSubfields() + { + return $this->subfields; + } + + /** + * Optional. Recursive property for nested schema structures. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Field subfields = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Field[] $var + * @return $this + */ + public function setSubfields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\Field::class); + $this->subfields = $arr; + + return $this; + } + + /** + * Optional. Field category, not required, currently only useful for Looker. + * + * Generated from protobuf field string category = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCategory() + { + return $this->category; + } + + /** + * Optional. Field category, not required, currently only useful for Looker. + * + * Generated from protobuf field string category = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCategory($var) + { + GPBUtil::checkString($var, True); + $this->category = $var; + + return $this; + } + + /** + * Optional. Looker only. Value format of the field. + * Ref: + * https://cloud.google.com/looker/docs/reference/param-field-value-format + * + * Generated from protobuf field string value_format = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getValueFormat() + { + return $this->value_format; + } + + /** + * Optional. Looker only. Value format of the field. + * Ref: + * https://cloud.google.com/looker/docs/reference/param-field-value-format + * + * Generated from protobuf field string value_format = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setValueFormat($var) + { + GPBUtil::checkString($var, True); + $this->value_format = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GetConversationRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GetConversationRequest.php new file mode 100644 index 000000000000..cbd890066913 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GetConversationRequest.php @@ -0,0 +1,91 @@ +google.cloud.geminidataanalytics.v1.GetConversationRequest + */ +class GetConversationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * Please see {@see DataChatServiceClient::conversationName()} for help formatting this field. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1\GetConversationRequest + * + * @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. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Conversation::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * + * 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. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * + * 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GetDataAgentRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GetDataAgentRequest.php new file mode 100644 index 000000000000..655764a1fbed --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GetDataAgentRequest.php @@ -0,0 +1,81 @@ +google.cloud.geminidataanalytics.v1.GetDataAgentRequest + */ +class GetDataAgentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the resource. Please see + * {@see DataAgentServiceClient::dataAgentName()} for help formatting this field. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1\GetDataAgentRequest + * + * @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. Name of the resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgentService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the resource. + * + * 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. Name of the resource. + * + * 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GlossaryTerm.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GlossaryTerm.php new file mode 100644 index 000000000000..0709a4848703 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GlossaryTerm.php @@ -0,0 +1,151 @@ +google.cloud.geminidataanalytics.v1.GlossaryTerm + */ +class GlossaryTerm extends \Google\Protobuf\Internal\Message +{ + /** + * Required. User friendly display name of the glossary term being defined. + * For example: "CTR", "conversion rate", "pending" + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Required. The description or meaning of the term. + * For example: "Click-through rate", "The percentage of users who complete a + * desired action", "An order that is waiting to be processed." + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $description = ''; + /** + * Optional. A list of general purpose labels associated to this term. + * For example: ["click rate", "clickthrough", "waiting"] + * + * Generated from protobuf field repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Required. User friendly display name of the glossary term being defined. + * For example: "CTR", "conversion rate", "pending" + * @type string $description + * Required. The description or meaning of the term. + * For example: "Click-through rate", "The percentage of users who complete a + * desired action", "An order that is waiting to be processed." + * @type string[] $labels + * Optional. A list of general purpose labels associated to this term. + * For example: ["click rate", "clickthrough", "waiting"] + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * Required. User friendly display name of the glossary term being defined. + * For example: "CTR", "conversion rate", "pending" + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. User friendly display name of the glossary term being defined. + * For example: "CTR", "conversion rate", "pending" + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. The description or meaning of the term. + * For example: "Click-through rate", "The percentage of users who complete a + * desired action", "An order that is waiting to be processed." + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Required. The description or meaning of the term. + * For example: "Click-through rate", "The percentage of users who complete a + * desired action", "An order that is waiting to be processed." + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. A list of general purpose labels associated to this term. + * For example: ["click rate", "clickthrough", "waiting"] + * + * Generated from protobuf field repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. A list of general purpose labels associated to this term. + * For example: ["click rate", "clickthrough", "waiting"] + * + * Generated from protobuf field repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsRequest.php new file mode 100644 index 000000000000..5774e176ea65 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsRequest.php @@ -0,0 +1,313 @@ +google.cloud.geminidataanalytics.v1.ListAccessibleDataAgentsRequest + */ +class ListAccessibleDataAgentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent value for ListAccessibleDataAgentsRequest. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Server may return fewer items than requested. + * If unspecified, server will pick an appropriate default. + * + * 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 `ListAccessibleDataAgents` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListAccessibleDataAgents` must match the call that provided the page + * token. The service may return fewer than this value. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. User specification for how to order the results. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. If true, the list results will include soft-deleted DataAgents. + * Defaults to false. + * + * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $show_deleted = false; + /** + * Optional. Filter for the creator of the agent. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ListAccessibleDataAgentsRequest.CreatorFilter creator_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $creator_filter = 0; + + /** + * @param string $parent Required. Parent value for ListAccessibleDataAgentsRequest. Please see + * {@see DataAgentServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1\ListAccessibleDataAgentsRequest + * + * @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. Parent value for ListAccessibleDataAgentsRequest. + * @type int $page_size + * Optional. Server may return fewer items than requested. + * If unspecified, server will pick an appropriate default. + * @type string $page_token + * Optional. A page token, received from a previous `ListAccessibleDataAgents` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListAccessibleDataAgents` must match the call that provided the page + * token. The service may return fewer than this value. + * @type string $filter + * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * @type string $order_by + * Optional. User specification for how to order the results. + * @type bool $show_deleted + * Optional. If true, the list results will include soft-deleted DataAgents. + * Defaults to false. + * @type int $creator_filter + * Optional. Filter for the creator of the agent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgentService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent value for ListAccessibleDataAgentsRequest. + * + * 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. Parent value for ListAccessibleDataAgentsRequest. + * + * 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. Server may return fewer items than requested. + * If unspecified, server will pick an appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Server may return fewer items than requested. + * If unspecified, server will pick an appropriate default. + * + * 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 `ListAccessibleDataAgents` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListAccessibleDataAgents` must match the call that provided the page + * token. The service may return fewer than this value. + * + * 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 `ListAccessibleDataAgents` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListAccessibleDataAgents` must match the call that provided the page + * token. The service may return fewer than this value. + * + * 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. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * + * 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; + } + + /** + * Optional. User specification for how to order the results. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. User specification for how to order the results. + * + * Generated from protobuf field string order_by = 5 [(.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. If true, the list results will include soft-deleted DataAgents. + * Defaults to false. + * + * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getShowDeleted() + { + return $this->show_deleted; + } + + /** + * Optional. If true, the list results will include soft-deleted DataAgents. + * Defaults to false. + * + * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setShowDeleted($var) + { + GPBUtil::checkBool($var); + $this->show_deleted = $var; + + return $this; + } + + /** + * Optional. Filter for the creator of the agent. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ListAccessibleDataAgentsRequest.CreatorFilter creator_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getCreatorFilter() + { + return $this->creator_filter; + } + + /** + * Optional. Filter for the creator of the agent. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ListAccessibleDataAgentsRequest.CreatorFilter creator_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setCreatorFilter($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1\ListAccessibleDataAgentsRequest\CreatorFilter::class); + $this->creator_filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsRequest/CreatorFilter.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsRequest/CreatorFilter.php new file mode 100644 index 000000000000..12cb4152785e --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsRequest/CreatorFilter.php @@ -0,0 +1,68 @@ +google.cloud.geminidataanalytics.v1.ListAccessibleDataAgentsRequest.CreatorFilter + */ +class CreatorFilter +{ + /** + * Default value. + * + * Generated from protobuf enum CREATOR_FILTER_UNSPECIFIED = 0; + */ + const CREATOR_FILTER_UNSPECIFIED = 0; + /** + * No creator-specific filter will be applied. All agents will be returned. + * + * Generated from protobuf enum NONE = 1; + */ + const NONE = 1; + /** + * Only agents created by the user calling the API will be returned. + * + * Generated from protobuf enum CREATOR_ONLY = 2; + */ + const CREATOR_ONLY = 2; + /** + * Only agents not created by the user calling the API will be returned. + * + * Generated from protobuf enum NOT_CREATOR_ONLY = 3; + */ + const NOT_CREATOR_ONLY = 3; + + private static $valueToName = [ + self::CREATOR_FILTER_UNSPECIFIED => 'CREATOR_FILTER_UNSPECIFIED', + self::NONE => 'NONE', + self::CREATOR_ONLY => 'CREATOR_ONLY', + self::NOT_CREATOR_ONLY => 'NOT_CREATOR_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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsResponse.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsResponse.php new file mode 100644 index 000000000000..1830cc47583f --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsResponse.php @@ -0,0 +1,135 @@ +google.cloud.geminidataanalytics.v1.ListAccessibleDataAgentsResponse + */ +class ListAccessibleDataAgentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of accessible DataAgent. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.DataAgent data_agents = 1; + */ + private $data_agents; + /** + * The next page token or empty if none. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Unordered list. Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\DataAgent[] $data_agents + * The list of accessible DataAgent. + * @type string $next_page_token + * The next page token or empty if none. + * @type string[] $unreachable + * Unordered list. Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgentService::initOnce(); + parent::__construct($data); + } + + /** + * The list of accessible DataAgent. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.DataAgent data_agents = 1; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\DataAgent> + */ + public function getDataAgents() + { + return $this->data_agents; + } + + /** + * The list of accessible DataAgent. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.DataAgent data_agents = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1\DataAgent[] $var + * @return $this + */ + public function setDataAgents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\DataAgent::class); + $this->data_agents = $arr; + + return $this; + } + + /** + * The next page token or empty if none. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * The next page token or empty if none. + * + * 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; + } + + /** + * Unordered list. Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListConversationsRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListConversationsRequest.php new file mode 100644 index 000000000000..4377a380d4a3 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListConversationsRequest.php @@ -0,0 +1,212 @@ +google.cloud.geminidataanalytics.v1.ListConversationsRequest + */ +class ListConversationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent value for ListConversationsRequest. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Requested page size. Server may return fewer items than + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Returned conversations will match criteria specified within the + * filter. ListConversations allows filtering by: + * * agents + * * labels + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. Parent value for ListConversationsRequest. + * Format: `projects/{project}/locations/{location}` + * Please see {@see DataChatServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1\ListConversationsRequest + * + * @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. Parent value for ListConversationsRequest. + * Format: `projects/{project}/locations/{location}` + * @type int $page_size + * Optional. Requested page size. Server may return fewer items than + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. + * @type string $page_token + * Optional. A token identifying a page of results the server should return. + * @type string $filter + * Optional. Returned conversations will match criteria specified within the + * filter. ListConversations allows filtering by: + * * agents + * * labels + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Conversation::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent value for ListConversationsRequest. + * Format: `projects/{project}/locations/{location}` + * + * 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. Parent value for ListConversationsRequest. + * Format: `projects/{project}/locations/{location}` + * + * 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. Requested page size. Server may return fewer items than + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Requested page size. Server may return fewer items than + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. + * + * 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 token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * 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. Returned conversations will match criteria specified within the + * filter. ListConversations allows filtering by: + * * agents + * * labels + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Returned conversations will match criteria specified within the + * filter. ListConversations allows filtering by: + * * agents + * * labels + * + * 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListConversationsResponse.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListConversationsResponse.php new file mode 100644 index 000000000000..9f6c0b6b7898 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListConversationsResponse.php @@ -0,0 +1,101 @@ +google.cloud.geminidataanalytics.v1.ListConversationsResponse + */ +class ListConversationsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of conversations. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Conversation conversations = 1; + */ + private $conversations; + /** + * A token identifying a page of results the server should return. + * + * 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\GeminiDataAnalytics\V1\Conversation[] $conversations + * The list of conversations. + * @type string $next_page_token + * A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Conversation::initOnce(); + parent::__construct($data); + } + + /** + * The list of conversations. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Conversation conversations = 1; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\Conversation> + */ + public function getConversations() + { + return $this->conversations; + } + + /** + * The list of conversations. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Conversation conversations = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Conversation[] $var + * @return $this + */ + public function setConversations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\Conversation::class); + $this->conversations = $arr; + + return $this; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token identifying a page of results the server should return. + * + * 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListDataAgentsRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListDataAgentsRequest.php new file mode 100644 index 000000000000..452fd81aac0f --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListDataAgentsRequest.php @@ -0,0 +1,279 @@ +google.cloud.geminidataanalytics.v1.ListDataAgentsRequest + */ +class ListDataAgentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent value for ListDataAgentsRequest. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Server may return fewer items than requested. + * If unspecified, server will pick an appropriate default. + * + * 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 `ListDataAgents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataAgents` must + * match the call that provided the page token. The service may return fewer + * than this value. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. User specification for how to order the results. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. If true, the list results will include soft-deleted DataAgents. + * Defaults to false. + * + * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $show_deleted = false; + + /** + * @param string $parent Required. Parent value for ListDataAgentsRequest. Please see + * {@see DataAgentServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1\ListDataAgentsRequest + * + * @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. Parent value for ListDataAgentsRequest. + * @type int $page_size + * Optional. Server may return fewer items than requested. + * If unspecified, server will pick an appropriate default. + * @type string $page_token + * Optional. A page token, received from a previous `ListDataAgents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataAgents` must + * match the call that provided the page token. The service may return fewer + * than this value. + * @type string $filter + * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * @type string $order_by + * Optional. User specification for how to order the results. + * @type bool $show_deleted + * Optional. If true, the list results will include soft-deleted DataAgents. + * Defaults to false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgentService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent value for ListDataAgentsRequest. + * + * 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. Parent value for ListDataAgentsRequest. + * + * 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. Server may return fewer items than requested. + * If unspecified, server will pick an appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Server may return fewer items than requested. + * If unspecified, server will pick an appropriate default. + * + * 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 `ListDataAgents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataAgents` must + * match the call that provided the page token. The service may return fewer + * than this value. + * + * 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 `ListDataAgents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataAgents` must + * match the call that provided the page token. The service may return fewer + * than this value. + * + * 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. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * + * 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; + } + + /** + * Optional. User specification for how to order the results. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. User specification for how to order the results. + * + * Generated from protobuf field string order_by = 5 [(.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. If true, the list results will include soft-deleted DataAgents. + * Defaults to false. + * + * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getShowDeleted() + { + return $this->show_deleted; + } + + /** + * Optional. If true, the list results will include soft-deleted DataAgents. + * Defaults to false. + * + * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setShowDeleted($var) + { + GPBUtil::checkBool($var); + $this->show_deleted = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListDataAgentsResponse.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListDataAgentsResponse.php new file mode 100644 index 000000000000..cefb33b09203 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListDataAgentsResponse.php @@ -0,0 +1,135 @@ +google.cloud.geminidataanalytics.v1.ListDataAgentsResponse + */ +class ListDataAgentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of DataAgent. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.DataAgent data_agents = 1; + */ + private $data_agents; + /** + * The next page token or empty if none. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Unordered list. Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\DataAgent[] $data_agents + * The list of DataAgent. + * @type string $next_page_token + * The next page token or empty if none. + * @type string[] $unreachable + * Unordered list. Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgentService::initOnce(); + parent::__construct($data); + } + + /** + * The list of DataAgent. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.DataAgent data_agents = 1; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\DataAgent> + */ + public function getDataAgents() + { + return $this->data_agents; + } + + /** + * The list of DataAgent. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.DataAgent data_agents = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1\DataAgent[] $var + * @return $this + */ + public function setDataAgents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\DataAgent::class); + $this->data_agents = $arr; + + return $this; + } + + /** + * The next page token or empty if none. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * The next page token or empty if none. + * + * 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; + } + + /** + * Unordered list. Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListMessagesRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListMessagesRequest.php new file mode 100644 index 000000000000..7bbeb60bc032 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListMessagesRequest.php @@ -0,0 +1,221 @@ +google.cloud.geminidataanalytics.v1.ListMessagesRequest + */ +class ListMessagesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The conversation to list messages under. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Requested page size. Server may return fewer items than + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * ListMessages allows filtering by: + * * create_time (e.g., `createTime > "2025-01-28T06:51:56-08:00"`) + * * update_time + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The conversation to list messages under. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * Please see {@see DataChatServiceClient::conversationName()} for help formatting this field. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1\ListMessagesRequest + * + * @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 conversation to list messages under. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * @type int $page_size + * Optional. Requested page size. Server may return fewer items than + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. + * @type string $page_token + * Optional. A token identifying a page of results the server should return. + * @type string $filter + * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * ListMessages allows filtering by: + * * create_time (e.g., `createTime > "2025-01-28T06:51:56-08:00"`) + * * update_time + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The conversation to list messages under. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * + * 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 conversation to list messages under. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * + * 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. Requested page size. Server may return fewer items than + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Requested page size. Server may return fewer items than + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 3 [(.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 token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 4 [(.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. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * ListMessages allows filtering by: + * * create_time (e.g., `createTime > "2025-01-28T06:51:56-08:00"`) + * * update_time + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * ListMessages allows filtering by: + * * create_time (e.g., `createTime > "2025-01-28T06:51:56-08:00"`) + * * update_time + * + * 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListMessagesResponse.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListMessagesResponse.php new file mode 100644 index 000000000000..f5069ff95ffd --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListMessagesResponse.php @@ -0,0 +1,101 @@ +google.cloud.geminidataanalytics.v1.ListMessagesResponse + */ +class ListMessagesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of chat messages. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.StorageMessage messages = 1; + */ + private $messages; + /** + * A token identifying a page of results the server should return. + * + * 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\GeminiDataAnalytics\V1\StorageMessage[] $messages + * The list of chat messages. + * @type string $next_page_token + * A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * The list of chat messages. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.StorageMessage messages = 1; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\StorageMessage> + */ + public function getMessages() + { + return $this->messages; + } + + /** + * The list of chat messages. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.StorageMessage messages = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1\StorageMessage[] $var + * @return $this + */ + public function setMessages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\StorageMessage::class); + $this->messages = $arr; + + return $this; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token identifying a page of results the server should return. + * + * 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerExploreReference.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerExploreReference.php new file mode 100644 index 000000000000..1a282608232e --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerExploreReference.php @@ -0,0 +1,244 @@ +google.cloud.geminidataanalytics.v1.LookerExploreReference + */ +class LookerExploreReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Looker model, as outlined in + * [Major LookML + * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). + * Name of the LookML model. + * + * Generated from protobuf field string lookml_model = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $lookml_model = ''; + /** + * Required. Looker Explore, as outlined in + * [Major LookML + * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). + * Name of the LookML Explore. + * + * Generated from protobuf field string explore = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $explore = ''; + /** + * Optional. The schema of the datasource. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $schema = null; + protected $instance; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $looker_instance_uri + * Required. The base url of the Looker instance. + * @type \Google\Cloud\GeminiDataAnalytics\V1\PrivateLookerInstanceInfo $private_looker_instance_info + * Private Looker instance info. + * @type string $lookml_model + * Required. Looker model, as outlined in + * [Major LookML + * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). + * Name of the LookML model. + * @type string $explore + * Required. Looker Explore, as outlined in + * [Major LookML + * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). + * Name of the LookML Explore. + * @type \Google\Cloud\GeminiDataAnalytics\V1\Schema $schema + * Optional. The schema of the datasource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Required. The base url of the Looker instance. + * + * Generated from protobuf field string looker_instance_uri = 9; + * @return string + */ + public function getLookerInstanceUri() + { + return $this->readOneof(9); + } + + public function hasLookerInstanceUri() + { + return $this->hasOneof(9); + } + + /** + * Required. The base url of the Looker instance. + * + * Generated from protobuf field string looker_instance_uri = 9; + * @param string $var + * @return $this + */ + public function setLookerInstanceUri($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Private Looker instance info. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.PrivateLookerInstanceInfo private_looker_instance_info = 10; + * @return \Google\Cloud\GeminiDataAnalytics\V1\PrivateLookerInstanceInfo|null + */ + public function getPrivateLookerInstanceInfo() + { + return $this->readOneof(10); + } + + public function hasPrivateLookerInstanceInfo() + { + return $this->hasOneof(10); + } + + /** + * Private Looker instance info. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.PrivateLookerInstanceInfo private_looker_instance_info = 10; + * @param \Google\Cloud\GeminiDataAnalytics\V1\PrivateLookerInstanceInfo $var + * @return $this + */ + public function setPrivateLookerInstanceInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\PrivateLookerInstanceInfo::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Required. Looker model, as outlined in + * [Major LookML + * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). + * Name of the LookML model. + * + * Generated from protobuf field string lookml_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getLookmlModel() + { + return $this->lookml_model; + } + + /** + * Required. Looker model, as outlined in + * [Major LookML + * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). + * Name of the LookML model. + * + * Generated from protobuf field string lookml_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setLookmlModel($var) + { + GPBUtil::checkString($var, True); + $this->lookml_model = $var; + + return $this; + } + + /** + * Required. Looker Explore, as outlined in + * [Major LookML + * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). + * Name of the LookML Explore. + * + * Generated from protobuf field string explore = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getExplore() + { + return $this->explore; + } + + /** + * Required. Looker Explore, as outlined in + * [Major LookML + * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). + * Name of the LookML Explore. + * + * Generated from protobuf field string explore = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setExplore($var) + { + GPBUtil::checkString($var, True); + $this->explore = $var; + + return $this; + } + + /** + * Optional. The schema of the datasource. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\Schema|null + */ + public function getSchema() + { + return $this->schema; + } + + public function hasSchema() + { + return isset($this->schema); + } + + public function clearSchema() + { + unset($this->schema); + } + + /** + * Optional. The schema of the datasource. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Schema $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Schema::class); + $this->schema = $var; + + return $this; + } + + /** + * @return string + */ + public function getInstance() + { + return $this->whichOneof("instance"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerExploreReferences.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerExploreReferences.php new file mode 100644 index 000000000000..175ab25850d7 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerExploreReferences.php @@ -0,0 +1,67 @@ +google.cloud.geminidataanalytics.v1.LookerExploreReferences + */ +class LookerExploreReferences extends \Google\Protobuf\Internal\Message +{ + /** + * Required. References to Looker explores. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.LookerExploreReference explore_references = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $explore_references; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReference[] $explore_references + * Required. References to Looker explores. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Required. References to Looker explores. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.LookerExploreReference explore_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReference> + */ + public function getExploreReferences() + { + return $this->explore_references; + } + + /** + * Required. References to Looker explores. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.LookerExploreReference explore_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReference[] $var + * @return $this + */ + public function setExploreReferences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReference::class); + $this->explore_references = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerGoldenQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerGoldenQuery.php new file mode 100644 index 000000000000..a42984aa7e19 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerGoldenQuery.php @@ -0,0 +1,116 @@ +google.cloud.geminidataanalytics.v1.LookerGoldenQuery + */ +class LookerGoldenQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Natural language questions that a user might ask. + * For example: "How many orders were placed last month?" + * + * Generated from protobuf field repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $natural_language_questions; + /** + * Optional. The Looker Query corresponding to the natural language questions. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $looker_query = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $natural_language_questions + * Optional. Natural language questions that a user might ask. + * For example: "How many orders were placed last month?" + * @type \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery $looker_query + * Optional. The Looker Query corresponding to the natural language questions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Natural language questions that a user might ask. + * For example: "How many orders were placed last month?" + * + * Generated from protobuf field repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getNaturalLanguageQuestions() + { + return $this->natural_language_questions; + } + + /** + * Optional. Natural language questions that a user might ask. + * For example: "How many orders were placed last month?" + * + * Generated from protobuf field repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setNaturalLanguageQuestions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->natural_language_questions = $arr; + + return $this; + } + + /** + * Optional. The Looker Query corresponding to the natural language questions. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery|null + */ + public function getLookerQuery() + { + return $this->looker_query; + } + + public function hasLookerQuery() + { + return isset($this->looker_query); + } + + public function clearLookerQuery() + { + unset($this->looker_query); + } + + /** + * Optional. The Looker Query corresponding to the natural language questions. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery $var + * @return $this + */ + public function setLookerQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery::class); + $this->looker_query = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerQuery.php new file mode 100644 index 000000000000..50d92db6a6f0 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerQuery.php @@ -0,0 +1,353 @@ +google.cloud.geminidataanalytics.v1.LookerQuery + */ +class LookerQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The LookML model used to generate the query. + * + * Generated from protobuf field string model = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $model = ''; + /** + * Required. The LookML explore used to generate the query. + * + * Generated from protobuf field string explore = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $explore = ''; + /** + * Optional. The fields to retrieve from the explore. + * + * Generated from protobuf field repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $fields; + /** + * Optional. The filters to apply to the explore. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $filters; + /** + * Optional. The sorts to apply to the explore. + * + * Generated from protobuf field repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $sorts; + /** + * Optional. Limit in the query. + * + * Generated from protobuf field optional string limit = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $limit = null; + /** + * Optional. The primary identifier for the query resource in Looker, used for + * API operations. Maps to `id` (or `slug`) in the Looker API `Query` + * resource. + * + * Generated from protobuf field optional string query_id = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $query_id = null; + /** + * Optional. The short alphanumeric identifier for the query, used for share + * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` + * in the Looker API `Query` resource. + * + * Generated from protobuf field optional string client_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $client_id = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $model + * Required. The LookML model used to generate the query. + * @type string $explore + * Required. The LookML explore used to generate the query. + * @type string[] $fields + * Optional. The fields to retrieve from the explore. + * @type \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery\Filter[] $filters + * Optional. The filters to apply to the explore. + * @type string[] $sorts + * Optional. The sorts to apply to the explore. + * @type string $limit + * Optional. Limit in the query. + * @type string $query_id + * Optional. The primary identifier for the query resource in Looker, used for + * API operations. Maps to `id` (or `slug`) in the Looker API `Query` + * resource. + * @type string $client_id + * Optional. The short alphanumeric identifier for the query, used for share + * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` + * in the Looker API `Query` resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * Required. The LookML model used to generate the query. + * + * Generated from protobuf field string model = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getModel() + { + return $this->model; + } + + /** + * Required. The LookML model used to generate the query. + * + * Generated from protobuf field string model = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setModel($var) + { + GPBUtil::checkString($var, True); + $this->model = $var; + + return $this; + } + + /** + * Required. The LookML explore used to generate the query. + * + * Generated from protobuf field string explore = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getExplore() + { + return $this->explore; + } + + /** + * Required. The LookML explore used to generate the query. + * + * Generated from protobuf field string explore = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setExplore($var) + { + GPBUtil::checkString($var, True); + $this->explore = $var; + + return $this; + } + + /** + * Optional. The fields to retrieve from the explore. + * + * Generated from protobuf field repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getFields() + { + return $this->fields; + } + + /** + * Optional. The fields to retrieve from the explore. + * + * Generated from protobuf field repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->fields = $arr; + + return $this; + } + + /** + * Optional. The filters to apply to the explore. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\LookerQuery\Filter> + */ + public function getFilters() + { + return $this->filters; + } + + /** + * Optional. The filters to apply to the explore. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery\Filter[] $var + * @return $this + */ + public function setFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery\Filter::class); + $this->filters = $arr; + + return $this; + } + + /** + * Optional. The sorts to apply to the explore. + * + * Generated from protobuf field repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getSorts() + { + return $this->sorts; + } + + /** + * Optional. The sorts to apply to the explore. + * + * Generated from protobuf field repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setSorts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->sorts = $arr; + + return $this; + } + + /** + * Optional. Limit in the query. + * + * Generated from protobuf field optional string limit = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLimit() + { + return isset($this->limit) ? $this->limit : ''; + } + + public function hasLimit() + { + return isset($this->limit); + } + + public function clearLimit() + { + unset($this->limit); + } + + /** + * Optional. Limit in the query. + * + * Generated from protobuf field optional string limit = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLimit($var) + { + GPBUtil::checkString($var, True); + $this->limit = $var; + + return $this; + } + + /** + * Optional. The primary identifier for the query resource in Looker, used for + * API operations. Maps to `id` (or `slug`) in the Looker API `Query` + * resource. + * + * Generated from protobuf field optional string query_id = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getQueryId() + { + return isset($this->query_id) ? $this->query_id : ''; + } + + public function hasQueryId() + { + return isset($this->query_id); + } + + public function clearQueryId() + { + unset($this->query_id); + } + + /** + * Optional. The primary identifier for the query resource in Looker, used for + * API operations. Maps to `id` (or `slug`) in the Looker API `Query` + * resource. + * + * Generated from protobuf field optional string query_id = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setQueryId($var) + { + GPBUtil::checkString($var, True); + $this->query_id = $var; + + return $this; + } + + /** + * Optional. The short alphanumeric identifier for the query, used for share + * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` + * in the Looker API `Query` resource. + * + * Generated from protobuf field optional string client_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getClientId() + { + return isset($this->client_id) ? $this->client_id : ''; + } + + public function hasClientId() + { + return isset($this->client_id); + } + + public function clearClientId() + { + unset($this->client_id); + } + + /** + * Optional. The short alphanumeric identifier for the query, used for share + * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` + * in the Looker API `Query` resource. + * + * Generated from protobuf field optional string client_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setClientId($var) + { + GPBUtil::checkString($var, True); + $this->client_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerQuery/Filter.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerQuery/Filter.php new file mode 100644 index 000000000000..f1a1cf811fa3 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerQuery/Filter.php @@ -0,0 +1,119 @@ +google.cloud.geminidataanalytics.v1.LookerQuery.Filter + */ +class Filter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The field to filter on. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $field = ''; + /** + * Optional. The value for the field to filter on. + * Optional so we can preserve the default value as an empty + * string, important to get a valid and working Looker Explore url. + * + * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field + * Required. The field to filter on. + * @type string $value + * Optional. The value for the field to filter on. + * Optional so we can preserve the default value as an empty + * string, important to get a valid and working Looker Explore url. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * Required. The field to filter on. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getField() + { + return $this->field; + } + + /** + * Required. The field to filter on. + * + * 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. The value for the field to filter on. + * Optional so we can preserve the default value as an empty + * string, important to get a valid and working Looker Explore url. + * + * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getValue() + { + return isset($this->value) ? $this->value : ''; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); + } + + /** + * Optional. The value for the field to filter on. + * Optional so we can preserve the default value as an empty + * string, important to get a valid and working Looker Explore url. + * + * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerSettings.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerSettings.php new file mode 100644 index 000000000000..1298655f35fd --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerSettings.php @@ -0,0 +1,87 @@ +google.cloud.geminidataanalytics.v1.LookerSettings + */ +class LookerSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether to operate in Looker's Development Mode. + * If true, the API session will be switched to the "dev" workspace, + * allowing interaction with LookML changes in the user's development branch. + * If false or unset, the session remains in the default state (Production + * Mode). + * See https://cloud.google.com/looker/docs/dev-mode-prod-mode. + * + * Generated from protobuf field bool enable_dev_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $enable_dev_mode = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enable_dev_mode + * Optional. Whether to operate in Looker's Development Mode. + * If true, the API session will be switched to the "dev" workspace, + * allowing interaction with LookML changes in the user's development branch. + * If false or unset, the session remains in the default state (Production + * Mode). + * See https://cloud.google.com/looker/docs/dev-mode-prod-mode. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether to operate in Looker's Development Mode. + * If true, the API session will be switched to the "dev" workspace, + * allowing interaction with LookML changes in the user's development branch. + * If false or unset, the session remains in the default state (Production + * Mode). + * See https://cloud.google.com/looker/docs/dev-mode-prod-mode. + * + * Generated from protobuf field bool enable_dev_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnableDevMode() + { + return $this->enable_dev_mode; + } + + /** + * Optional. Whether to operate in Looker's Development Mode. + * If true, the API session will be switched to the "dev" workspace, + * allowing interaction with LookML changes in the user's development branch. + * If false or unset, the session remains in the default state (Production + * Mode). + * See https://cloud.google.com/looker/docs/dev-mode-prod-mode. + * + * Generated from protobuf field bool enable_dev_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnableDevMode($var) + { + GPBUtil::checkBool($var); + $this->enable_dev_mode = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/MatchedQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/MatchedQuery.php new file mode 100644 index 000000000000..efb7fa5162e0 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/MatchedQuery.php @@ -0,0 +1,113 @@ +google.cloud.geminidataanalytics.v1.MatchedQuery + */ +class MatchedQuery extends \Google\Protobuf\Internal\Message +{ + /** + * The query that was matched based on an example query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 1; + */ + protected $example_query = null; + /** + * The extracted values for the query parameters. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.QueryParameterValues query_parameter_values = 2; + */ + private $query_parameter_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery $example_query + * The query that was matched based on an example query. + * @type \Google\Cloud\GeminiDataAnalytics\V1\QueryParameterValues[] $query_parameter_values + * The extracted values for the query parameters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * The query that was matched based on an example query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery|null + */ + public function getExampleQuery() + { + return $this->example_query; + } + + public function hasExampleQuery() + { + return isset($this->example_query); + } + + public function clearExampleQuery() + { + unset($this->example_query); + } + + /** + * The query that was matched based on an example query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery $var + * @return $this + */ + public function setExampleQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery::class); + $this->example_query = $var; + + return $this; + } + + /** + * The extracted values for the query parameters. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.QueryParameterValues query_parameter_values = 2; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\QueryParameterValues> + */ + public function getQueryParameterValues() + { + return $this->query_parameter_values; + } + + /** + * The extracted values for the query parameters. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.QueryParameterValues query_parameter_values = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1\QueryParameterValues[] $var + * @return $this + */ + public function setQueryParameterValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\QueryParameterValues::class); + $this->query_parameter_values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Message.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Message.php new file mode 100644 index 000000000000..e388f346db19 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Message.php @@ -0,0 +1,194 @@ +google.cloud.geminidataanalytics.v1.Message + */ +class Message extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. For user messages, this is the time at which the system + * received the message. For system messages, this is the time at which the + * system generated the message. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $timestamp = null; + /** + * Optional. unique id of the message in the conversation for persistence. + * + * Generated from protobuf field string message_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $message_id = ''; + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\UserMessage $user_message + * A message from the user that is interacting with the system. + * @type \Google\Cloud\GeminiDataAnalytics\V1\SystemMessage $system_message + * A message from the system in response to the user. + * @type \Google\Protobuf\Timestamp $timestamp + * Output only. For user messages, this is the time at which the system + * received the message. For system messages, this is the time at which the + * system generated the message. + * @type string $message_id + * Optional. unique id of the message in the conversation for persistence. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * A message from the user that is interacting with the system. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.UserMessage user_message = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1\UserMessage|null + */ + public function getUserMessage() + { + return $this->readOneof(2); + } + + public function hasUserMessage() + { + return $this->hasOneof(2); + } + + /** + * A message from the user that is interacting with the system. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.UserMessage user_message = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1\UserMessage $var + * @return $this + */ + public function setUserMessage($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\UserMessage::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A message from the system in response to the user. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.SystemMessage system_message = 3; + * @return \Google\Cloud\GeminiDataAnalytics\V1\SystemMessage|null + */ + public function getSystemMessage() + { + return $this->readOneof(3); + } + + public function hasSystemMessage() + { + return $this->hasOneof(3); + } + + /** + * A message from the system in response to the user. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.SystemMessage system_message = 3; + * @param \Google\Cloud\GeminiDataAnalytics\V1\SystemMessage $var + * @return $this + */ + public function setSystemMessage($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\SystemMessage::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Output only. For user messages, this is the time at which the system + * received the message. For system messages, this is the time at which the + * system generated the message. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTimestamp() + { + return $this->timestamp; + } + + public function hasTimestamp() + { + return isset($this->timestamp); + } + + public function clearTimestamp() + { + unset($this->timestamp); + } + + /** + * Output only. For user messages, this is the time at which the system + * received the message. For system messages, this is the time at which the + * system generated the message. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTimestamp($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->timestamp = $var; + + return $this; + } + + /** + * Optional. unique id of the message in the conversation for persistence. + * + * Generated from protobuf field string message_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMessageId() + { + return $this->message_id; + } + + /** + * Optional. unique id of the message in the conversation for persistence. + * + * Generated from protobuf field string message_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMessageId($var) + { + GPBUtil::checkString($var, True); + $this->message_id = $var; + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials.php new file mode 100644 index 000000000000..5667494801b1 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials.php @@ -0,0 +1,108 @@ +google.cloud.geminidataanalytics.v1.OAuthCredentials + */ +class OAuthCredentials extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials\SecretBased $secret + * Secret-based OAuth credentials. + * @type \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials\TokenBased $token + * Token-based OAuth credentials. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Credentials::initOnce(); + parent::__construct($data); + } + + /** + * Secret-based OAuth credentials. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.OAuthCredentials.SecretBased secret = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials\SecretBased|null + */ + public function getSecret() + { + return $this->readOneof(2); + } + + public function hasSecret() + { + return $this->hasOneof(2); + } + + /** + * Secret-based OAuth credentials. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.OAuthCredentials.SecretBased secret = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials\SecretBased $var + * @return $this + */ + public function setSecret($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials\SecretBased::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Token-based OAuth credentials. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.OAuthCredentials.TokenBased token = 3; + * @return \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials\TokenBased|null + */ + public function getToken() + { + return $this->readOneof(3); + } + + public function hasToken() + { + return $this->hasOneof(3); + } + + /** + * Token-based OAuth credentials. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.OAuthCredentials.TokenBased token = 3; + * @param \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials\TokenBased $var + * @return $this + */ + public function setToken($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials\TokenBased::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials/SecretBased.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials/SecretBased.php new file mode 100644 index 000000000000..ef834b3a6bb9 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials/SecretBased.php @@ -0,0 +1,102 @@ +google.cloud.geminidataanalytics.v1.OAuthCredentials.SecretBased + */ +class SecretBased extends \Google\Protobuf\Internal\Message +{ + /** + * Required. An OAuth client ID. + * + * Generated from protobuf field string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $client_id = ''; + /** + * Required. An OAuth client secret. + * + * Generated from protobuf field string client_secret = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $client_secret = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $client_id + * Required. An OAuth client ID. + * @type string $client_secret + * Required. An OAuth client secret. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Credentials::initOnce(); + parent::__construct($data); + } + + /** + * Required. An OAuth client ID. + * + * Generated from protobuf field string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getClientId() + { + return $this->client_id; + } + + /** + * Required. An OAuth client ID. + * + * Generated from protobuf field string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setClientId($var) + { + GPBUtil::checkString($var, True); + $this->client_id = $var; + + return $this; + } + + /** + * Required. An OAuth client secret. + * + * Generated from protobuf field string client_secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getClientSecret() + { + return $this->client_secret; + } + + /** + * Required. An OAuth client secret. + * + * Generated from protobuf field string client_secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setClientSecret($var) + { + GPBUtil::checkString($var, True); + $this->client_secret = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials/TokenBased.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials/TokenBased.php new file mode 100644 index 000000000000..6d089ec3dc72 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials/TokenBased.php @@ -0,0 +1,68 @@ +google.cloud.geminidataanalytics.v1.OAuthCredentials.TokenBased + */ +class TokenBased extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the secret containing the access token. + * + * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $access_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $access_token + * Required. The name of the secret containing the access token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Credentials::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the secret containing the access token. + * + * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAccessToken() + { + return $this->access_token; + } + + /** + * Required. The name of the secret containing the access token. + * + * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAccessToken($var) + { + GPBUtil::checkString($var, True); + $this->access_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OperationMetadata.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OperationMetadata.php new file mode 100644 index 000000000000..d06db1a7655a --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OperationMetadata.php @@ -0,0 +1,307 @@ +google.cloud.geminidataanalytics.v1.OperationMetadata + */ +class OperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target = ''; + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $verb = ''; + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status_message = ''; + /** + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have been cancelled successfully + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $requested_cancellation = false; + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $api_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time the operation was created. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type string $target + * Output only. Server-defined resource path for the target of the operation. + * @type string $verb + * Output only. Name of the verb executed by the operation. + * @type string $status_message + * Output only. Human-readable status of the operation, if any. + * @type bool $requested_cancellation + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have been cancelled successfully + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * @type string $api_version + * Output only. API version used to start the operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgentService::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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 the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getVerb() + { + return $this->verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setVerb($var) + { + GPBUtil::checkString($var, True); + $this->verb = $var; + + return $this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStatusMessage() + { + return $this->status_message; + } + + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setStatusMessage($var) + { + GPBUtil::checkString($var, True); + $this->status_message = $var; + + return $this; + } + + /** + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have been cancelled successfully + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getRequestedCancellation() + { + return $this->requested_cancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have been cancelled successfully + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setRequestedCancellation($var) + { + GPBUtil::checkBool($var); + $this->requested_cancellation = $var; + + return $this; + } + + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getApiVersion() + { + return $this->api_version; + } + + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setApiVersion($var) + { + GPBUtil::checkString($var, True); + $this->api_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/PrivateLookerInstanceInfo.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/PrivateLookerInstanceInfo.php new file mode 100644 index 000000000000..a1e47d7eb812 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/PrivateLookerInstanceInfo.php @@ -0,0 +1,102 @@ +google.cloud.geminidataanalytics.v1.PrivateLookerInstanceInfo + */ +class PrivateLookerInstanceInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The Looker instance id. + * + * Generated from protobuf field string looker_instance_id = 1; + */ + protected $looker_instance_id = ''; + /** + * The service directory name of the Looker instance. + * + * Generated from protobuf field string service_directory_name = 2; + */ + protected $service_directory_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $looker_instance_id + * The Looker instance id. + * @type string $service_directory_name + * The service directory name of the Looker instance. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * The Looker instance id. + * + * Generated from protobuf field string looker_instance_id = 1; + * @return string + */ + public function getLookerInstanceId() + { + return $this->looker_instance_id; + } + + /** + * The Looker instance id. + * + * Generated from protobuf field string looker_instance_id = 1; + * @param string $var + * @return $this + */ + public function setLookerInstanceId($var) + { + GPBUtil::checkString($var, True); + $this->looker_instance_id = $var; + + return $this; + } + + /** + * The service directory name of the Looker instance. + * + * Generated from protobuf field string service_directory_name = 2; + * @return string + */ + public function getServiceDirectoryName() + { + return $this->service_directory_name; + } + + /** + * The service directory name of the Looker instance. + * + * Generated from protobuf field string service_directory_name = 2; + * @param string $var + * @return $this + */ + public function setServiceDirectoryName($var) + { + GPBUtil::checkString($var, True); + $this->service_directory_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/QueryParameter.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/QueryParameter.php new file mode 100644 index 000000000000..4cb2e150100f --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/QueryParameter.php @@ -0,0 +1,156 @@ +google.cloud.geminidataanalytics.v1.QueryParameter + */ +class QueryParameter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the parameter reference in the SQL query. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Optional. The description of the parameter that can be used by LLM to + * extract the parameter value from the user question. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Required. The data type of the parameter, e.g. "STRING", "INT64", "DATE", + * etc. For valid values, see the [BigQuery + * documentation](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). + * This will be used to populate + * google.cloud.bigquery.v2.QueryParameterType.type. + * + * Generated from protobuf field string data_type = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the parameter reference in the SQL query. + * @type string $description + * Optional. The description of the parameter that can be used by LLM to + * extract the parameter value from the user question. + * @type string $data_type + * Required. The data type of the parameter, e.g. "STRING", "INT64", "DATE", + * etc. For valid values, see the [BigQuery + * documentation](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). + * This will be used to populate + * google.cloud.bigquery.v2.QueryParameterType.type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the parameter reference in the SQL query. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the parameter reference in the SQL query. + * + * 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; + } + + /** + * Optional. The description of the parameter that can be used by LLM to + * extract the parameter value from the user question. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. The description of the parameter that can be used by LLM to + * extract the parameter value from the user question. + * + * 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; + } + + /** + * Required. The data type of the parameter, e.g. "STRING", "INT64", "DATE", + * etc. For valid values, see the [BigQuery + * documentation](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). + * This will be used to populate + * google.cloud.bigquery.v2.QueryParameterType.type. + * + * Generated from protobuf field string data_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDataType() + { + return $this->data_type; + } + + /** + * Required. The data type of the parameter, e.g. "STRING", "INT64", "DATE", + * etc. For valid values, see the [BigQuery + * documentation](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). + * This will be used to populate + * google.cloud.bigquery.v2.QueryParameterType.type. + * + * Generated from protobuf field string data_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDataType($var) + { + GPBUtil::checkString($var, True); + $this->data_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/QueryParameterValues.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/QueryParameterValues.php new file mode 100644 index 000000000000..f131d4d5da43 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/QueryParameterValues.php @@ -0,0 +1,103 @@ +google.cloud.geminidataanalytics.v1.QueryParameterValues + */ +class QueryParameterValues extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the parameter. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. The value of the parameter. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the parameter. + * @type string $value + * Required. The value of the parameter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the parameter. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the parameter. + * + * 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; + } + + /** + * Required. The value of the parameter. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Required. The value of the parameter. + * + * Generated from protobuf field string value = 2 [(.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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Schema.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Schema.php new file mode 100644 index 000000000000..45511dc09c91 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Schema.php @@ -0,0 +1,273 @@ +google.cloud.geminidataanalytics.v1.Schema + */ +class Schema extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The fields in the schema. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Field fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $fields; + /** + * Optional. A textual description of the table's content and purpose. + * For example: "Contains information about customer orders in our e-commerce + * store." Currently only used for BigQuery data sources. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. A list of alternative names or synonyms that can be used to refer + * to the table. For example: ["sales", "orders", "purchases"]. Currently only + * used for BigQuery data sources. + * + * Generated from protobuf field repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $synonyms; + /** + * Optional. A list of tags or keywords associated with the table, used for + * categorization. For example: ["transaction", "revenue", "customer_data"]. + * Currently only used for BigQuery data sources. + * + * Generated from protobuf field repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $tags; + /** + * Optional. Table display_name (same as label in + * cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not + * required, currently only Looker has this field. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. The filters on the datasource's underlying data. Currently only + * used for Looker data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.DataFilter filters = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $filters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\Field[] $fields + * Optional. The fields in the schema. + * @type string $description + * Optional. A textual description of the table's content and purpose. + * For example: "Contains information about customer orders in our e-commerce + * store." Currently only used for BigQuery data sources. + * @type string[] $synonyms + * Optional. A list of alternative names or synonyms that can be used to refer + * to the table. For example: ["sales", "orders", "purchases"]. Currently only + * used for BigQuery data sources. + * @type string[] $tags + * Optional. A list of tags or keywords associated with the table, used for + * categorization. For example: ["transaction", "revenue", "customer_data"]. + * Currently only used for BigQuery data sources. + * @type string $display_name + * Optional. Table display_name (same as label in + * cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not + * required, currently only Looker has this field. + * @type \Google\Cloud\GeminiDataAnalytics\V1\DataFilter[] $filters + * Optional. The filters on the datasource's underlying data. Currently only + * used for Looker data sources. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The fields in the schema. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Field fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\Field> + */ + public function getFields() + { + return $this->fields; + } + + /** + * Optional. The fields in the schema. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Field fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Field[] $var + * @return $this + */ + public function setFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\Field::class); + $this->fields = $arr; + + return $this; + } + + /** + * Optional. A textual description of the table's content and purpose. + * For example: "Contains information about customer orders in our e-commerce + * store." Currently only used for BigQuery data sources. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A textual description of the table's content and purpose. + * For example: "Contains information about customer orders in our e-commerce + * store." Currently only used for BigQuery data sources. + * + * 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; + } + + /** + * Optional. A list of alternative names or synonyms that can be used to refer + * to the table. For example: ["sales", "orders", "purchases"]. Currently only + * used for BigQuery data sources. + * + * Generated from protobuf field repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getSynonyms() + { + return $this->synonyms; + } + + /** + * Optional. A list of alternative names or synonyms that can be used to refer + * to the table. For example: ["sales", "orders", "purchases"]. Currently only + * used for BigQuery data sources. + * + * Generated from protobuf field repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setSynonyms($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->synonyms = $arr; + + return $this; + } + + /** + * Optional. A list of tags or keywords associated with the table, used for + * categorization. For example: ["transaction", "revenue", "customer_data"]. + * Currently only used for BigQuery data sources. + * + * Generated from protobuf field repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Optional. A list of tags or keywords associated with the table, used for + * categorization. For example: ["transaction", "revenue", "customer_data"]. + * Currently only used for BigQuery data sources. + * + * Generated from protobuf field repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * Optional. Table display_name (same as label in + * cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not + * required, currently only Looker has this field. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. Table display_name (same as label in + * cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not + * required, currently only Looker has this field. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. The filters on the datasource's underlying data. Currently only + * used for Looker data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.DataFilter filters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\DataFilter> + */ + public function getFilters() + { + return $this->filters; + } + + /** + * Optional. The filters on the datasource's underlying data. Currently only + * used for Looker data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.DataFilter filters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\DataFilter[] $var + * @return $this + */ + public function setFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\DataFilter::class); + $this->filters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaMessage.php new file mode 100644 index 000000000000..a18a9572a8e4 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaMessage.php @@ -0,0 +1,108 @@ +google.cloud.geminidataanalytics.v1.SchemaMessage + */ +class SchemaMessage extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\SchemaQuery $query + * A schema resolution query. + * @type \Google\Cloud\GeminiDataAnalytics\V1\SchemaResult $result + * The result of a schema resolution query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * A schema resolution query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.SchemaQuery query = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1\SchemaQuery|null + */ + public function getQuery() + { + return $this->readOneof(1); + } + + public function hasQuery() + { + return $this->hasOneof(1); + } + + /** + * A schema resolution query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.SchemaQuery query = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1\SchemaQuery $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\SchemaQuery::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The result of a schema resolution query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.SchemaResult result = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1\SchemaResult|null + */ + public function getResult() + { + return $this->readOneof(2); + } + + public function hasResult() + { + return $this->hasOneof(2); + } + + /** + * The result of a schema resolution query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.SchemaResult result = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1\SchemaResult $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\SchemaResult::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaQuery.php new file mode 100644 index 000000000000..5e36360060e8 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaQuery.php @@ -0,0 +1,67 @@ +google.cloud.geminidataanalytics.v1.SchemaQuery + */ +class SchemaQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The question to send to the system for schema resolution. + * + * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $question = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $question + * Optional. The question to send to the system for schema resolution. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The question to send to the system for schema resolution. + * + * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getQuestion() + { + return $this->question; + } + + /** + * Optional. The question to send to the system for schema resolution. + * + * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setQuestion($var) + { + GPBUtil::checkString($var, True); + $this->question = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaResult.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaResult.php new file mode 100644 index 000000000000..0732d5fcf9b7 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaResult.php @@ -0,0 +1,67 @@ +google.cloud.geminidataanalytics.v1.SchemaResult + */ +class SchemaResult extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The datasources used to resolve the schema query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Datasource datasources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $datasources; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\Datasource[] $datasources + * Optional. The datasources used to resolve the schema query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The datasources used to resolve the schema query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Datasource datasources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\Datasource> + */ + public function getDatasources() + { + return $this->datasources; + } + + /** + * Optional. The datasources used to resolve the schema query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Datasource datasources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Datasource[] $var + * @return $this + */ + public function setDatasources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\Datasource::class); + $this->datasources = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StorageMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StorageMessage.php new file mode 100644 index 000000000000..e83b1fa33d6a --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StorageMessage.php @@ -0,0 +1,111 @@ +google.cloud.geminidataanalytics.v1.StorageMessage + */ +class StorageMessage extends \Google\Protobuf\Internal\Message +{ + /** + * The unique resource name of a chat message. + * + * Generated from protobuf field string message_id = 1; + */ + protected $message_id = ''; + /** + * The message content. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Message message = 2; + */ + protected $message = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message_id + * The unique resource name of a chat message. + * @type \Google\Cloud\GeminiDataAnalytics\V1\Message $message + * The message content. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * The unique resource name of a chat message. + * + * Generated from protobuf field string message_id = 1; + * @return string + */ + public function getMessageId() + { + return $this->message_id; + } + + /** + * The unique resource name of a chat message. + * + * Generated from protobuf field string message_id = 1; + * @param string $var + * @return $this + */ + public function setMessageId($var) + { + GPBUtil::checkString($var, True); + $this->message_id = $var; + + return $this; + } + + /** + * The message content. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Message message = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1\Message|null + */ + public function getMessage() + { + return $this->message; + } + + public function hasMessage() + { + return isset($this->message); + } + + public function clearMessage() + { + unset($this->message); + } + + /** + * The message content. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Message message = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Message $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Message::class); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StudioDatasourceReference.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StudioDatasourceReference.php new file mode 100644 index 000000000000..88883718dad7 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StudioDatasourceReference.php @@ -0,0 +1,67 @@ +google.cloud.geminidataanalytics.v1.StudioDatasourceReference + */ +class StudioDatasourceReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The id of the datasource. + * + * Generated from protobuf field string datasource_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $datasource_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $datasource_id + * Required. The id of the datasource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Required. The id of the datasource. + * + * Generated from protobuf field string datasource_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDatasourceId() + { + return $this->datasource_id; + } + + /** + * Required. The id of the datasource. + * + * Generated from protobuf field string datasource_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDatasourceId($var) + { + GPBUtil::checkString($var, True); + $this->datasource_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StudioDatasourceReferences.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StudioDatasourceReferences.php new file mode 100644 index 000000000000..16316d0223b0 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StudioDatasourceReferences.php @@ -0,0 +1,67 @@ +google.cloud.geminidataanalytics.v1.StudioDatasourceReferences + */ +class StudioDatasourceReferences extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The references to the studio datasources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.StudioDatasourceReference studio_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $studio_references; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\StudioDatasourceReference[] $studio_references + * Optional. The references to the studio datasources. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The references to the studio datasources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.StudioDatasourceReference studio_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\StudioDatasourceReference> + */ + public function getStudioReferences() + { + return $this->studio_references; + } + + /** + * Optional. The references to the studio datasources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.StudioDatasourceReference studio_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\StudioDatasourceReference[] $var + * @return $this + */ + public function setStudioReferences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\StudioDatasourceReference::class); + $this->studio_references = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SystemMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SystemMessage.php new file mode 100644 index 000000000000..ceaded633fdc --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SystemMessage.php @@ -0,0 +1,371 @@ +google.cloud.geminidataanalytics.v1.SystemMessage + */ +class SystemMessage extends \Google\Protobuf\Internal\Message +{ + /** + * Identifies the group that the event belongs to. Similar events are deemed + * to be logically relevant to each other and should be shown together in + * the UI. + * + * Generated from protobuf field optional int32 group_id = 12; + */ + protected $group_id = null; + /** + * Output only. Citation information for the system message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Citation citation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $citation = null; + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\TextMessage $text + * A direct natural language response to the user message. + * @type \Google\Cloud\GeminiDataAnalytics\V1\SchemaMessage $schema + * A message produced during schema resolution. + * @type \Google\Cloud\GeminiDataAnalytics\V1\DataMessage $data + * A message produced during data retrieval. + * @type \Google\Cloud\GeminiDataAnalytics\V1\AnalysisMessage $analysis + * A message produced during analysis. + * @type \Google\Cloud\GeminiDataAnalytics\V1\ChartMessage $chart + * A message produced during chart generation. + * @type \Google\Cloud\GeminiDataAnalytics\V1\ErrorMessage $error + * An error message. + * @type \Google\Cloud\GeminiDataAnalytics\V1\ExampleQueries $example_queries + * Optional. A message containing example queries. + * @type int $group_id + * Identifies the group that the event belongs to. Similar events are deemed + * to be logically relevant to each other and should be shown together in + * the UI. + * @type \Google\Cloud\GeminiDataAnalytics\V1\Citation $citation + * Output only. Citation information for the system message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * A direct natural language response to the user message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.TextMessage text = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1\TextMessage|null + */ + public function getText() + { + return $this->readOneof(1); + } + + public function hasText() + { + return $this->hasOneof(1); + } + + /** + * A direct natural language response to the user message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.TextMessage text = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1\TextMessage $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\TextMessage::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A message produced during schema resolution. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.SchemaMessage schema = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1\SchemaMessage|null + */ + public function getSchema() + { + return $this->readOneof(2); + } + + public function hasSchema() + { + return $this->hasOneof(2); + } + + /** + * A message produced during schema resolution. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.SchemaMessage schema = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1\SchemaMessage $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\SchemaMessage::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A message produced during data retrieval. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataMessage data = 3; + * @return \Google\Cloud\GeminiDataAnalytics\V1\DataMessage|null + */ + public function getData() + { + return $this->readOneof(3); + } + + public function hasData() + { + return $this->hasOneof(3); + } + + /** + * A message produced during data retrieval. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataMessage data = 3; + * @param \Google\Cloud\GeminiDataAnalytics\V1\DataMessage $var + * @return $this + */ + public function setData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DataMessage::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * A message produced during analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisMessage analysis = 4; + * @return \Google\Cloud\GeminiDataAnalytics\V1\AnalysisMessage|null + */ + public function getAnalysis() + { + return $this->readOneof(4); + } + + public function hasAnalysis() + { + return $this->hasOneof(4); + } + + /** + * A message produced during analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisMessage analysis = 4; + * @param \Google\Cloud\GeminiDataAnalytics\V1\AnalysisMessage $var + * @return $this + */ + public function setAnalysis($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\AnalysisMessage::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * A message produced during chart generation. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChartMessage chart = 5; + * @return \Google\Cloud\GeminiDataAnalytics\V1\ChartMessage|null + */ + public function getChart() + { + return $this->readOneof(5); + } + + public function hasChart() + { + return $this->hasOneof(5); + } + + /** + * A message produced during chart generation. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChartMessage chart = 5; + * @param \Google\Cloud\GeminiDataAnalytics\V1\ChartMessage $var + * @return $this + */ + public function setChart($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ChartMessage::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * An error message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ErrorMessage error = 6; + * @return \Google\Cloud\GeminiDataAnalytics\V1\ErrorMessage|null + */ + public function getError() + { + return $this->readOneof(6); + } + + public function hasError() + { + return $this->hasOneof(6); + } + + /** + * An error message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ErrorMessage error = 6; + * @param \Google\Cloud\GeminiDataAnalytics\V1\ErrorMessage $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ErrorMessage::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Optional. A message containing example queries. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\ExampleQueries|null + */ + public function getExampleQueries() + { + return $this->readOneof(13); + } + + public function hasExampleQueries() + { + return $this->hasOneof(13); + } + + /** + * Optional. A message containing example queries. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\ExampleQueries $var + * @return $this + */ + public function setExampleQueries($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ExampleQueries::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Identifies the group that the event belongs to. Similar events are deemed + * to be logically relevant to each other and should be shown together in + * the UI. + * + * Generated from protobuf field optional int32 group_id = 12; + * @return int + */ + public function getGroupId() + { + return isset($this->group_id) ? $this->group_id : 0; + } + + public function hasGroupId() + { + return isset($this->group_id); + } + + public function clearGroupId() + { + unset($this->group_id); + } + + /** + * Identifies the group that the event belongs to. Similar events are deemed + * to be logically relevant to each other and should be shown together in + * the UI. + * + * Generated from protobuf field optional int32 group_id = 12; + * @param int $var + * @return $this + */ + public function setGroupId($var) + { + GPBUtil::checkInt32($var); + $this->group_id = $var; + + return $this; + } + + /** + * Output only. Citation information for the system message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Citation citation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\Citation|null + */ + public function getCitation() + { + return $this->citation; + } + + public function hasCitation() + { + return isset($this->citation); + } + + public function clearCitation() + { + unset($this->citation); + } + + /** + * Output only. Citation information for the system message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Citation citation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\Citation $var + * @return $this + */ + public function setCitation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Citation::class); + $this->citation = $var; + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/TextMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/TextMessage.php new file mode 100644 index 000000000000..3d3b5c6fa69a --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/TextMessage.php @@ -0,0 +1,139 @@ +google.cloud.geminidataanalytics.v1.TextMessage + */ +class TextMessage extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The parts of the message. + * + * Generated from protobuf field repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $parts; + /** + * Optional. The type of the text message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $text_type = 0; + /** + * Optional. An opaque signature for a thought so it can be reused in + * subsequent requests. + * + * Generated from protobuf field bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $thought_signature = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $parts + * Optional. The parts of the message. + * @type int $text_type + * Optional. The type of the text message. + * @type string $thought_signature + * Optional. An opaque signature for a thought so it can be reused in + * subsequent requests. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The parts of the message. + * + * Generated from protobuf field repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getParts() + { + return $this->parts; + } + + /** + * Optional. The parts of the message. + * + * Generated from protobuf field repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setParts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->parts = $arr; + + return $this; + } + + /** + * Optional. The type of the text message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getTextType() + { + return $this->text_type; + } + + /** + * Optional. The type of the text message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setTextType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1\TextMessage\TextType::class); + $this->text_type = $var; + + return $this; + } + + /** + * Optional. An opaque signature for a thought so it can be reused in + * subsequent requests. + * + * Generated from protobuf field bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getThoughtSignature() + { + return $this->thought_signature; + } + + /** + * Optional. An opaque signature for a thought so it can be reused in + * subsequent requests. + * + * Generated from protobuf field bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setThoughtSignature($var) + { + GPBUtil::checkString($var, False); + $this->thought_signature = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/TextMessage/TextType.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/TextMessage/TextType.php new file mode 100644 index 000000000000..e9c0e270331f --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/TextMessage/TextType.php @@ -0,0 +1,80 @@ +google.cloud.geminidataanalytics.v1.TextMessage.TextType + */ +class TextType +{ + /** + * The default text type. + * + * Generated from protobuf enum TEXT_TYPE_UNSPECIFIED = 0; + */ + const TEXT_TYPE_UNSPECIFIED = 0; + /** + * The text is a final response to the user question. + * + * Generated from protobuf enum FINAL_RESPONSE = 1; + */ + const FINAL_RESPONSE = 1; + /** + * The text is a thought from the model. + * + * Generated from protobuf enum THOUGHT = 2; + */ + const THOUGHT = 2; + /** + * The text is an informational message about the agent's progress, such as + * a tool being invoked. This is distinct from the agent's internal thought + * process (`THOUGHT`) and the final answer to the user + * (`FINAL_RESPONSE`). These messages provide insight into the agent's + * actions. + * + * Generated from protobuf enum PROGRESS = 3; + */ + const PROGRESS = 3; + /** + * The text is a list of follow-up questions suggested. + * Each item in parts is a follow-up question. + * + * Generated from protobuf enum FOLLOWUP_QUESTIONS = 4; + */ + const FOLLOWUP_QUESTIONS = 4; + + private static $valueToName = [ + self::TEXT_TYPE_UNSPECIFIED => 'TEXT_TYPE_UNSPECIFIED', + self::FINAL_RESPONSE => 'FINAL_RESPONSE', + self::THOUGHT => 'THOUGHT', + self::PROGRESS => 'PROGRESS', + self::FOLLOWUP_QUESTIONS => 'FOLLOWUP_QUESTIONS', + ]; + + 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UpdateDataAgentRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UpdateDataAgentRequest.php new file mode 100644 index 000000000000..ed1367fcd388 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UpdateDataAgentRequest.php @@ -0,0 +1,240 @@ +google.cloud.geminidataanalytics.v1.UpdateDataAgentRequest + */ +class UpdateDataAgentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * DataAgent resource by the update. + * The fields specified in the update_mask are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields with non-default values + * present in the request will be overwritten. If a wildcard mask is provided, + * all fields will be overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Required. The resource being updated. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgent data_agent = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_agent = null; + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param \Google\Cloud\GeminiDataAnalytics\V1\DataAgent $dataAgent Required. The resource being updated. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * DataAgent resource by the update. + * The fields specified in the update_mask are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields with non-default values + * present in the request will be overwritten. If a wildcard mask is provided, + * all fields will be overwritten. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1\UpdateDataAgentRequest + * + * @experimental + */ + public static function build(\Google\Cloud\GeminiDataAnalytics\V1\DataAgent $dataAgent, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDataAgent($dataAgent) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Field mask is used to specify the fields to be overwritten in the + * DataAgent resource by the update. + * The fields specified in the update_mask are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields with non-default values + * present in the request will be overwritten. If a wildcard mask is provided, + * all fields will be overwritten. + * @type \Google\Cloud\GeminiDataAnalytics\V1\DataAgent $data_agent + * Required. The resource being updated. + * @type string $request_id + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgentService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * DataAgent resource by the update. + * The fields specified in the update_mask are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields with non-default values + * present in the request will be overwritten. If a wildcard mask is provided, + * all fields will be overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the + * DataAgent resource by the update. + * The fields specified in the update_mask are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields with non-default values + * present in the request will be overwritten. If a wildcard mask is provided, + * all fields will be overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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; + } + + /** + * Required. The resource being updated. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgent data_agent = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GeminiDataAnalytics\V1\DataAgent|null + */ + public function getDataAgent() + { + return $this->data_agent; + } + + public function hasDataAgent() + { + return isset($this->data_agent); + } + + public function clearDataAgent() + { + unset($this->data_agent); + } + + /** + * Required. The resource being updated. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgent data_agent = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1\DataAgent $var + * @return $this + */ + public function setDataAgent($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DataAgent::class); + $this->data_agent = $var; + + return $this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UserFunctions.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UserFunctions.php new file mode 100644 index 000000000000..4ae4521d3a30 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UserFunctions.php @@ -0,0 +1,67 @@ +google.cloud.geminidataanalytics.v1.UserFunctions + */ +class UserFunctions extends \Google\Protobuf\Internal\Message +{ + /** + * A list of BigQuery routines to include in the context. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.BigQueryRoutine bq_routines = 1; + */ + private $bq_routines; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1\BigQueryRoutine[] $bq_routines + * A list of BigQuery routines to include in the context. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * A list of BigQuery routines to include in the context. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.BigQueryRoutine bq_routines = 1; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\BigQueryRoutine> + */ + public function getBqRoutines() + { + return $this->bq_routines; + } + + /** + * A list of BigQuery routines to include in the context. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.BigQueryRoutine bq_routines = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1\BigQueryRoutine[] $var + * @return $this + */ + public function setBqRoutines($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\BigQueryRoutine::class); + $this->bq_routines = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UserMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UserMessage.php new file mode 100644 index 000000000000..1e713b78d623 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UserMessage.php @@ -0,0 +1,75 @@ +google.cloud.geminidataanalytics.v1.UserMessage + */ +class UserMessage extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $text + * Text should use this field instead of blob. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Text should use this field instead of blob. + * + * Generated from protobuf field string text = 1; + * @return string + */ + public function getText() + { + return $this->readOneof(1); + } + + public function hasText() + { + return $this->hasOneof(1); + } + + /** + * Text should use this field instead of blob. + * + * Generated from protobuf field string text = 1; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/create_data_agent.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/create_data_agent.php new file mode 100644 index 000000000000..1be761c85045 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/create_data_agent.php @@ -0,0 +1,85 @@ +setParent($formattedParent) + ->setDataAgent($dataAgent); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataAgentServiceClient->createDataAgent($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DataAgent $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 = DataAgentServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + create_data_agent_sample($formattedParent); +} +// [END geminidataanalytics_v1_generated_DataAgentService_CreateDataAgent_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/create_data_agent_sync.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/create_data_agent_sync.php new file mode 100644 index 000000000000..667964b7bfd8 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/create_data_agent_sync.php @@ -0,0 +1,73 @@ +setParent($formattedParent) + ->setDataAgent($dataAgent); + + // Call the API and handle any network failures. + try { + /** @var DataAgent $response */ + $response = $dataAgentServiceClient->createDataAgentSync($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 = DataAgentServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + create_data_agent_sync_sample($formattedParent); +} +// [END geminidataanalytics_v1_generated_DataAgentService_CreateDataAgentSync_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/delete_data_agent.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/delete_data_agent.php new file mode 100644 index 000000000000..1c069b0c45ad --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/delete_data_agent.php @@ -0,0 +1,80 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataAgentServiceClient->deleteDataAgent($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } 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 +{ + $formattedName = DataAgentServiceClient::dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); + + delete_data_agent_sample($formattedName); +} +// [END geminidataanalytics_v1_generated_DataAgentService_DeleteDataAgent_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/delete_data_agent_sync.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/delete_data_agent_sync.php new file mode 100644 index 000000000000..48c13a051674 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/delete_data_agent_sync.php @@ -0,0 +1,69 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataAgentServiceClient->deleteDataAgentSync($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 = DataAgentServiceClient::dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); + + delete_data_agent_sync_sample($formattedName); +} +// [END geminidataanalytics_v1_generated_DataAgentService_DeleteDataAgentSync_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_data_agent.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_data_agent.php new file mode 100644 index 000000000000..9f7d6824c304 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_data_agent.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataAgent $response */ + $response = $dataAgentServiceClient->getDataAgent($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 = DataAgentServiceClient::dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); + + get_data_agent_sample($formattedName); +} +// [END geminidataanalytics_v1_generated_DataAgentService_GetDataAgent_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_iam_policy.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_iam_policy.php new file mode 100644 index 000000000000..fad4ab3f556e --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_iam_policy.php @@ -0,0 +1,71 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $dataAgentServiceClient->getIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END geminidataanalytics_v1_generated_DataAgentService_GetIamPolicy_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_location.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_location.php new file mode 100644 index 000000000000..0b13e0295afe --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_location.php @@ -0,0 +1,57 @@ +getLocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END geminidataanalytics_v1_generated_DataAgentService_GetLocation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_accessible_data_agents.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_accessible_data_agents.php new file mode 100644 index 000000000000..f5ac3bf81886 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_accessible_data_agents.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataAgentServiceClient->listAccessibleDataAgents($request); + + /** @var DataAgent $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 = DataAgentServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_accessible_data_agents_sample($formattedParent); +} +// [END geminidataanalytics_v1_generated_DataAgentService_ListAccessibleDataAgents_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_data_agents.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_data_agents.php new file mode 100644 index 000000000000..34bea8be06b4 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_data_agents.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataAgentServiceClient->listDataAgents($request); + + /** @var DataAgent $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 = DataAgentServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_data_agents_sample($formattedParent); +} +// [END geminidataanalytics_v1_generated_DataAgentService_ListDataAgents_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_locations.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_locations.php new file mode 100644 index 000000000000..ab795cc141ae --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_locations.php @@ -0,0 +1,77 @@ +listLocations($request); + + /** @var Location $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()); + } +} +// [END geminidataanalytics_v1_generated_DataAgentService_ListLocations_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/set_iam_policy.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/set_iam_policy.php new file mode 100644 index 000000000000..28e848bc4bdc --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/set_iam_policy.php @@ -0,0 +1,73 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $dataAgentServiceClient->setIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END geminidataanalytics_v1_generated_DataAgentService_SetIamPolicy_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/update_data_agent.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/update_data_agent.php new file mode 100644 index 000000000000..49f3c8cae89f --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/update_data_agent.php @@ -0,0 +1,71 @@ +setDataAgent($dataAgent); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataAgentServiceClient->updateDataAgent($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DataAgent $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()); + } +} +// [END geminidataanalytics_v1_generated_DataAgentService_UpdateDataAgent_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/update_data_agent_sync.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/update_data_agent_sync.php new file mode 100644 index 000000000000..4cdeec99ef50 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/update_data_agent_sync.php @@ -0,0 +1,59 @@ +setDataAgent($dataAgent); + + // Call the API and handle any network failures. + try { + /** @var DataAgent $response */ + $response = $dataAgentServiceClient->updateDataAgentSync($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END geminidataanalytics_v1_generated_DataAgentService_UpdateDataAgentSync_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/chat.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/chat.php new file mode 100644 index 000000000000..ad9b5100b22a --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/chat.php @@ -0,0 +1,79 @@ +setParent($parent) + ->setMessages($messages); + + // Call the API and handle any network failures. + try { + /** @var ServerStream $stream */ + $stream = $dataChatServiceClient->chat($request); + + /** @var Message $element */ + foreach ($stream->readAll() 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 +{ + $parent = '[PARENT]'; + + chat_sample($parent); +} +// [END geminidataanalytics_v1_generated_DataChatService_Chat_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/create_conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/create_conversation.php new file mode 100644 index 000000000000..93ebefea767e --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/create_conversation.php @@ -0,0 +1,84 @@ +setAgents($conversationAgents); + $request = (new CreateConversationRequest()) + ->setParent($formattedParent) + ->setConversation($conversation); + + // Call the API and handle any network failures. + try { + /** @var Conversation $response */ + $response = $dataChatServiceClient->createConversation($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 = DataChatServiceClient::locationName('[PROJECT]', '[LOCATION]'); + $conversationAgentsElement = '[AGENTS]'; + + create_conversation_sample($formattedParent, $conversationAgentsElement); +} +// [END geminidataanalytics_v1_generated_DataChatService_CreateConversation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/delete_conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/delete_conversation.php new file mode 100644 index 000000000000..e32070e846c5 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/delete_conversation.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataChatServiceClient->deleteConversation($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 = DataChatServiceClient::conversationName( + '[PROJECT]', + '[LOCATION]', + '[CONVERSATION]' + ); + + delete_conversation_sample($formattedName); +} +// [END geminidataanalytics_v1_generated_DataChatService_DeleteConversation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/get_conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/get_conversation.php new file mode 100644 index 000000000000..ea90369999bd --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/get_conversation.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Conversation $response */ + $response = $dataChatServiceClient->getConversation($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 = DataChatServiceClient::conversationName( + '[PROJECT]', + '[LOCATION]', + '[CONVERSATION]' + ); + + get_conversation_sample($formattedName); +} +// [END geminidataanalytics_v1_generated_DataChatService_GetConversation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/get_location.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/get_location.php new file mode 100644 index 000000000000..4b455758acdc --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/get_location.php @@ -0,0 +1,57 @@ +getLocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END geminidataanalytics_v1_generated_DataChatService_GetLocation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_conversations.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_conversations.php new file mode 100644 index 000000000000..9bd13df6b851 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_conversations.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataChatServiceClient->listConversations($request); + + /** @var Conversation $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 = DataChatServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_conversations_sample($formattedParent); +} +// [END geminidataanalytics_v1_generated_DataChatService_ListConversations_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_locations.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_locations.php new file mode 100644 index 000000000000..aab282ee8811 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_locations.php @@ -0,0 +1,77 @@ +listLocations($request); + + /** @var Location $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()); + } +} +// [END geminidataanalytics_v1_generated_DataChatService_ListLocations_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_messages.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_messages.php new file mode 100644 index 000000000000..daab8041d7bc --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_messages.php @@ -0,0 +1,82 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataChatServiceClient->listMessages($request); + + /** @var StorageMessage $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 = DataChatServiceClient::conversationName( + '[PROJECT]', + '[LOCATION]', + '[CONVERSATION]' + ); + + list_messages_sample($formattedParent); +} +// [END geminidataanalytics_v1_generated_DataChatService_ListMessages_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/Client/DataAgentServiceClient.php b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/Client/DataAgentServiceClient.php new file mode 100644 index 000000000000..38de6cb5b293 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/Client/DataAgentServiceClient.php @@ -0,0 +1,700 @@ + createDataAgentAsync(CreateDataAgentRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDataAgentSyncAsync(CreateDataAgentRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataAgentAsync(DeleteDataAgentRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataAgentSyncAsync(DeleteDataAgentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataAgentAsync(GetDataAgentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAccessibleDataAgentsAsync(ListAccessibleDataAgentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataAgentsAsync(ListDataAgentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataAgentAsync(UpdateDataAgentRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataAgentSyncAsync(UpdateDataAgentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + */ +final class DataAgentServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.geminidataanalytics.v1.DataAgentService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'geminidataanalytics.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'geminidataanalytics.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/data_agent_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/data_agent_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/data_agent_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/data_agent_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 crypto_key + * resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * + * @return string The formatted crypto_key resource. + */ + public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string + { + return self::getPathTemplate('cryptoKey')->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a data_agent + * resource. + * + * @param string $project + * @param string $location + * @param string $dataAgent + * + * @return string The formatted data_agent resource. + */ + public static function dataAgentName(string $project, string $location, string $dataAgent): string + { + return self::getPathTemplate('dataAgent')->render([ + 'project' => $project, + 'location' => $location, + 'data_agent' => $dataAgent, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + * - dataAgent: projects/{project}/locations/{location}/dataAgents/{data_agent} + * - location: projects/{project}/locations/{location} + * + * 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 'geminidataanalytics.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\GeminiDataAnalytics\V1\DataAgentServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DataAgentServiceClient(['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); + } + + /** + * Creates a new DataAgent in a given project and location. + * + * The async variant is {@see DataAgentServiceClient::createDataAgentAsync()} . + * + * @example samples/V1/DataAgentServiceClient/create_data_agent.php + * + * @param CreateDataAgentRequest $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 createDataAgent(CreateDataAgentRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateDataAgent', $request, $callOptions)->wait(); + } + + /** + * Creates a new DataAgent in a given project and location synchronously. + * + * The async variant is {@see DataAgentServiceClient::createDataAgentSyncAsync()} . + * + * @example samples/V1/DataAgentServiceClient/create_data_agent_sync.php + * + * @param CreateDataAgentRequest $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 DataAgent + * + * @throws ApiException Thrown if the API call fails. + */ + public function createDataAgentSync(CreateDataAgentRequest $request, array $callOptions = []): DataAgent + { + return $this->startApiCall('CreateDataAgentSync', $request, $callOptions)->wait(); + } + + /** + * Deletes a single DataAgent. + * + * The async variant is {@see DataAgentServiceClient::deleteDataAgentAsync()} . + * + * @example samples/V1/DataAgentServiceClient/delete_data_agent.php + * + * @param DeleteDataAgentRequest $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 deleteDataAgent(DeleteDataAgentRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteDataAgent', $request, $callOptions)->wait(); + } + + /** + * Deletes a single DataAgent synchronously. + * + * The async variant is {@see DataAgentServiceClient::deleteDataAgentSyncAsync()} . + * + * @example samples/V1/DataAgentServiceClient/delete_data_agent_sync.php + * + * @param DeleteDataAgentRequest $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 deleteDataAgentSync(DeleteDataAgentRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteDataAgentSync', $request, $callOptions)->wait(); + } + + /** + * Gets details of a single DataAgent. + * + * The async variant is {@see DataAgentServiceClient::getDataAgentAsync()} . + * + * @example samples/V1/DataAgentServiceClient/get_data_agent.php + * + * @param GetDataAgentRequest $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 DataAgent + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDataAgent(GetDataAgentRequest $request, array $callOptions = []): DataAgent + { + return $this->startApiCall('GetDataAgent', $request, $callOptions)->wait(); + } + + /** + * Gets the IAM policy for DataAgent + * + * The async variant is {@see DataAgentServiceClient::getIamPolicyAsync()} . + * + * @example samples/V1/DataAgentServiceClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Lists DataAgents that are accessible to the caller in a given project and + * location. + * + * The async variant is + * {@see DataAgentServiceClient::listAccessibleDataAgentsAsync()} . + * + * @example samples/V1/DataAgentServiceClient/list_accessible_data_agents.php + * + * @param ListAccessibleDataAgentsRequest $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 listAccessibleDataAgents(ListAccessibleDataAgentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAccessibleDataAgents', $request, $callOptions); + } + + /** + * Lists DataAgents in a given project and location. + * + * The async variant is {@see DataAgentServiceClient::listDataAgentsAsync()} . + * + * @example samples/V1/DataAgentServiceClient/list_data_agents.php + * + * @param ListDataAgentsRequest $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 listDataAgents(ListDataAgentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDataAgents', $request, $callOptions); + } + + /** + * Sets the IAM policy for a DataAgent. + * + * The async variant is {@see DataAgentServiceClient::setIamPolicyAsync()} . + * + * @example samples/V1/DataAgentServiceClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Updates the parameters of a single DataAgent. + * + * The async variant is {@see DataAgentServiceClient::updateDataAgentAsync()} . + * + * @example samples/V1/DataAgentServiceClient/update_data_agent.php + * + * @param UpdateDataAgentRequest $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 updateDataAgent(UpdateDataAgentRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateDataAgent', $request, $callOptions)->wait(); + } + + /** + * Updates the parameters of a single DataAgent synchronously. + * + * The async variant is {@see DataAgentServiceClient::updateDataAgentSyncAsync()} . + * + * @example samples/V1/DataAgentServiceClient/update_data_agent_sync.php + * + * @param UpdateDataAgentRequest $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 DataAgent + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateDataAgentSync(UpdateDataAgentRequest $request, array $callOptions = []): DataAgent + { + return $this->startApiCall('UpdateDataAgentSync', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see DataAgentServiceClient::getLocationAsync()} . + * + * @example samples/V1/DataAgentServiceClient/get_location.php + * + * @param GetLocationRequest $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 Location + * + * @throws ApiException Thrown if the API call fails. + */ + public function getLocation(GetLocationRequest $request, array $callOptions = []): Location + { + return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); + } + + /** + * Lists information about the supported locations for this service. + + This method lists locations based on the resource scope provided in + the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * + **Global locations**: If `name` is empty, the method lists the + public locations available to all projects. * **Project-specific + locations**: If `name` follows the format + `projects/{project}`, the method lists locations visible to that + specific project. This includes public, private, or other + project-specific locations enabled for the project. + + For gRPC and client library implementations, the resource name is + passed as the `name` field. For direct service calls, the resource + name is + incorporated into the request path based on the specific service + implementation and version. + * + * The async variant is {@see DataAgentServiceClient::listLocationsAsync()} . + * + * @example samples/V1/DataAgentServiceClient/list_locations.php + * + * @param ListLocationsRequest $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 listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLocations', $request, $callOptions); + } +} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/Client/DataChatServiceClient.php b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/Client/DataChatServiceClient.php new file mode 100644 index 000000000000..01af9a6ecaa4 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/Client/DataChatServiceClient.php @@ -0,0 +1,527 @@ + createConversationAsync(CreateConversationRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteConversationAsync(DeleteConversationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getConversationAsync(GetConversationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listConversationsAsync(ListConversationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMessagesAsync(ListMessagesRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + */ +final class DataChatServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.geminidataanalytics.v1.DataChatService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'geminidataanalytics.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'geminidataanalytics.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_chat_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/data_chat_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/data_chat_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/data_chat_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a conversation + * resource. + * + * @param string $project + * @param string $location + * @param string $conversation + * + * @return string The formatted conversation resource. + */ + public static function conversationName(string $project, string $location, string $conversation): string + { + return self::getPathTemplate('conversation')->render([ + 'project' => $project, + 'location' => $location, + 'conversation' => $conversation, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a crypto_key + * resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * + * @return string The formatted crypto_key resource. + */ + public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string + { + return self::getPathTemplate('cryptoKey')->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a data_agent + * resource. + * + * @param string $project + * @param string $location + * @param string $dataAgent + * + * @return string The formatted data_agent resource. + */ + public static function dataAgentName(string $project, string $location, string $dataAgent): string + { + return self::getPathTemplate('dataAgent')->render([ + 'project' => $project, + 'location' => $location, + 'data_agent' => $dataAgent, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - conversation: projects/{project}/locations/{location}/conversations/{conversation} + * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + * - dataAgent: projects/{project}/locations/{location}/dataAgents/{data_agent} + * - location: projects/{project}/locations/{location} + * + * 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 'geminidataanalytics.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\GeminiDataAnalytics\V1\DataChatServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DataChatServiceClient(['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); + } + + /** + * Answers a data question by generating a stream of + * [Message][google.cloud.geminidataanalytics.v1.Message] objects. + * + * @example samples/V1/DataChatServiceClient/chat.php + * + * @param ChatRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type int $timeoutMillis + * Timeout to use for this call. + * } + * + * @return ServerStream + * + * @throws ApiException Thrown if the API call fails. + */ + public function chat(ChatRequest $request, array $callOptions = []): ServerStream + { + return $this->startApiCall('Chat', $request, $callOptions); + } + + /** + * Creates a new conversation to persist the conversation history. Each + * conversation will have multiple messages associated with it. + * + * The async variant is {@see DataChatServiceClient::createConversationAsync()} . + * + * @example samples/V1/DataChatServiceClient/create_conversation.php + * + * @param CreateConversationRequest $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 Conversation + * + * @throws ApiException Thrown if the API call fails. + */ + public function createConversation(CreateConversationRequest $request, array $callOptions = []): Conversation + { + return $this->startApiCall('CreateConversation', $request, $callOptions)->wait(); + } + + /** + * Deletes a conversation. + * + * The async variant is {@see DataChatServiceClient::deleteConversationAsync()} . + * + * @example samples/V1/DataChatServiceClient/delete_conversation.php + * + * @param DeleteConversationRequest $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 deleteConversation(DeleteConversationRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteConversation', $request, $callOptions)->wait(); + } + + /** + * Gets details of a single conversation by using conversation id and parent. + * + * The async variant is {@see DataChatServiceClient::getConversationAsync()} . + * + * @example samples/V1/DataChatServiceClient/get_conversation.php + * + * @param GetConversationRequest $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 Conversation + * + * @throws ApiException Thrown if the API call fails. + */ + public function getConversation(GetConversationRequest $request, array $callOptions = []): Conversation + { + return $this->startApiCall('GetConversation', $request, $callOptions)->wait(); + } + + /** + * Lists all conversations for a given parent. + * + * The async variant is {@see DataChatServiceClient::listConversationsAsync()} . + * + * @example samples/V1/DataChatServiceClient/list_conversations.php + * + * @param ListConversationsRequest $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 listConversations(ListConversationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListConversations', $request, $callOptions); + } + + /** + * Lists all messages for a given conversation. + * + * The async variant is {@see DataChatServiceClient::listMessagesAsync()} . + * + * @example samples/V1/DataChatServiceClient/list_messages.php + * + * @param ListMessagesRequest $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 listMessages(ListMessagesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListMessages', $request, $callOptions); + } + + /** + * Gets information about a location. + * + * The async variant is {@see DataChatServiceClient::getLocationAsync()} . + * + * @example samples/V1/DataChatServiceClient/get_location.php + * + * @param GetLocationRequest $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 Location + * + * @throws ApiException Thrown if the API call fails. + */ + public function getLocation(GetLocationRequest $request, array $callOptions = []): Location + { + return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); + } + + /** + * Lists information about the supported locations for this service. + + This method lists locations based on the resource scope provided in + the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * + **Global locations**: If `name` is empty, the method lists the + public locations available to all projects. * **Project-specific + locations**: If `name` follows the format + `projects/{project}`, the method lists locations visible to that + specific project. This includes public, private, or other + project-specific locations enabled for the project. + + For gRPC and client library implementations, the resource name is + passed as the `name` field. For direct service calls, the resource + name is + incorporated into the request path based on the specific service + implementation and version. + * + * The async variant is {@see DataChatServiceClient::listLocationsAsync()} . + * + * @example samples/V1/DataChatServiceClient/list_locations.php + * + * @param ListLocationsRequest $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 listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLocations', $request, $callOptions); + } +} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/gapic_metadata.json b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..d3a9cf7b2de3 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/gapic_metadata.json @@ -0,0 +1,132 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.geminidataanalytics.v1", + "libraryPackage": "Google\\Cloud\\GeminiDataAnalytics\\V1", + "services": { + "DataAgentService": { + "clients": { + "grpc": { + "libraryClient": "DataAgentServiceGapicClient", + "rpcs": { + "CreateDataAgent": { + "methods": [ + "createDataAgent" + ] + }, + "CreateDataAgentSync": { + "methods": [ + "createDataAgentSync" + ] + }, + "DeleteDataAgent": { + "methods": [ + "deleteDataAgent" + ] + }, + "DeleteDataAgentSync": { + "methods": [ + "deleteDataAgentSync" + ] + }, + "GetDataAgent": { + "methods": [ + "getDataAgent" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "ListAccessibleDataAgents": { + "methods": [ + "listAccessibleDataAgents" + ] + }, + "ListDataAgents": { + "methods": [ + "listDataAgents" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "UpdateDataAgent": { + "methods": [ + "updateDataAgent" + ] + }, + "UpdateDataAgentSync": { + "methods": [ + "updateDataAgentSync" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + } + } + } + } + }, + "DataChatService": { + "clients": { + "grpc": { + "libraryClient": "DataChatServiceGapicClient", + "rpcs": { + "Chat": { + "methods": [ + "chat" + ] + }, + "CreateConversation": { + "methods": [ + "createConversation" + ] + }, + "DeleteConversation": { + "methods": [ + "deleteConversation" + ] + }, + "GetConversation": { + "methods": [ + "getConversation" + ] + }, + "ListConversations": { + "methods": [ + "listConversations" + ] + }, + "ListMessages": { + "methods": [ + "listMessages" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_client_config.json b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_client_config.json new file mode 100644 index 000000000000..020c731d9a24 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_client_config.json @@ -0,0 +1,99 @@ +{ + "interfaces": { + "google.cloud.geminidataanalytics.v1.DataAgentService": { + "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": 10000, + "initial_rpc_timeout_millis": 600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 600000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "CreateDataAgent": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateDataAgentSync": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteDataAgent": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteDataAgentSync": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDataAgent": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetIamPolicy": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAccessibleDataAgents": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListDataAgents": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "SetIamPolicy": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateDataAgent": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateDataAgentSync": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetLocation": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListLocations": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_descriptor_config.php b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_descriptor_config.php new file mode 100644 index 000000000000..4b7b7e294168 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_descriptor_config.php @@ -0,0 +1,238 @@ + [ + 'google.cloud.geminidataanalytics.v1.DataAgentService' => [ + 'CreateDataAgent' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1\DataAgent', + 'metadataReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDataAgent' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateDataAgent' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1\DataAgent', + 'metadataReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'data_agent.name', + 'fieldAccessors' => [ + 'getDataAgent', + 'getName', + ], + ], + ], + ], + 'CreateDataAgentSync' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\DataAgent', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDataAgentSync' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataAgent' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\DataAgent', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'ListAccessibleDataAgents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataAgents', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\ListAccessibleDataAgentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataAgents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataAgents', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\ListDataAgentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'UpdateDataAgentSync' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\DataAgent', + 'headerParams' => [ + [ + 'keyName' => 'data_agent.name', + 'fieldAccessors' => [ + 'getDataAgent', + 'getName', + ], + ], + ], + ], + 'GetLocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Location\Location', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'ListLocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLocations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'templateMap' => [ + 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', + 'dataAgent' => 'projects/{project}/locations/{location}/dataAgents/{data_agent}', + 'location' => 'projects/{project}/locations/{location}', + ], + ], + ], +]; diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_rest_client_config.php b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_rest_client_config.php new file mode 100644 index 000000000000..fa651cfebbaf --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_rest_client_config.php @@ -0,0 +1,229 @@ + [ + 'google.cloud.geminidataanalytics.v1.DataAgentService' => [ + 'CreateDataAgent' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataAgents', + 'body' => 'data_agent', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDataAgentSync' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataAgents:createSync', + 'body' => 'data_agent', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDataAgent' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataAgents/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDataAgentSync' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataAgents/*}:deleteSync', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataAgent' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataAgents/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAgents/*}:getIamPolicy', + 'body' => '*', + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'ListAccessibleDataAgents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataAgents:listAccessible', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataAgents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataAgents', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAgents/*}:setIamPolicy', + 'body' => '*', + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'UpdateDataAgent' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{data_agent.name=projects/*/locations/*/dataAgents/*}', + 'body' => 'data_agent', + 'placeholders' => [ + 'data_agent.name' => [ + 'getters' => [ + 'getDataAgent', + 'getName', + ], + ], + ], + ], + 'UpdateDataAgentSync' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{data_agent.name=projects/*/locations/*/dataAgents/*}:updateSync', + 'body' => 'data_agent', + 'placeholders' => [ + 'data_agent.name' => [ + 'getters' => [ + 'getDataAgent', + 'getName', + ], + ], + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_client_config.json b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_client_config.json new file mode 100644 index 000000000000..7735979369a7 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_client_config.json @@ -0,0 +1,72 @@ +{ + "interfaces": { + "google.cloud.geminidataanalytics.v1.DataChatService": { + "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": 10000, + "initial_rpc_timeout_millis": 600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 600000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "Chat": { + "timeout_millis": 600000 + }, + "CreateConversation": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteConversation": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetConversation": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListConversations": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListMessages": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetLocation": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListLocations": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_descriptor_config.php b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_descriptor_config.php new file mode 100644 index 000000000000..495062669f19 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_descriptor_config.php @@ -0,0 +1,159 @@ + [ + 'google.cloud.geminidataanalytics.v1.DataChatService' => [ + 'Chat' => [ + 'grpcStreaming' => [ + 'grpcStreamingType' => 'ServerStreaming', + ], + 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\Message', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateConversation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\Conversation', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteConversation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetConversation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\Conversation', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListConversations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getConversations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\ListConversationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListMessages' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getMessages', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\ListMessagesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetLocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Location\Location', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'ListLocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLocations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'templateMap' => [ + 'conversation' => 'projects/{project}/locations/{location}/conversations/{conversation}', + 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', + 'dataAgent' => 'projects/{project}/locations/{location}/dataAgents/{data_agent}', + 'location' => 'projects/{project}/locations/{location}', + ], + ], + ], +]; diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_rest_client_config.php b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_rest_client_config.php new file mode 100644 index 000000000000..a846e7505183 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_rest_client_config.php @@ -0,0 +1,168 @@ + [ + 'google.cloud.geminidataanalytics.v1.DataChatService' => [ + 'Chat' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}:chat', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateConversation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/conversations', + 'body' => 'conversation', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteConversation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/conversations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetConversation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/conversations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListConversations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/conversations', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListMessages' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/conversations/*}/messages', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/tests/Unit/V1/Client/DataAgentServiceClientTest.php b/owl-bot-staging/GeminiDataAnalytics/v1/tests/Unit/V1/Client/DataAgentServiceClientTest.php new file mode 100644 index 000000000000..b6f62b60cf5a --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/tests/Unit/V1/Client/DataAgentServiceClientTest.php @@ -0,0 +1,1225 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DataAgentServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DataAgentServiceClient($options); + } + + /** @test */ + public function createDataAgentTest() + { + $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/createDataAgentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $kmsKey = 'kmsKey-591635343'; + $expectedResponse = new DataAgent(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setKmsKey($kmsKey); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createDataAgentTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $dataAgent = new DataAgent(); + $request = (new CreateDataAgentRequest()) + ->setParent($formattedParent) + ->setDataAgent($dataAgent); + $response = $gapicClient->createDataAgent($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.geminidataanalytics.v1.DataAgentService/CreateDataAgent', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getDataAgent(); + $this->assertProtobufEquals($dataAgent, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataAgentTest'); + $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 createDataAgentExceptionTest() + { + $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/createDataAgentTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $dataAgent = new DataAgent(); + $request = (new CreateDataAgentRequest()) + ->setParent($formattedParent) + ->setDataAgent($dataAgent); + $response = $gapicClient->createDataAgent($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataAgentTest'); + 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 createDataAgentSyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $kmsKey = 'kmsKey-591635343'; + $expectedResponse = new DataAgent(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setKmsKey($kmsKey); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $dataAgent = new DataAgent(); + $request = (new CreateDataAgentRequest()) + ->setParent($formattedParent) + ->setDataAgent($dataAgent); + $response = $gapicClient->createDataAgentSync($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.geminidataanalytics.v1.DataAgentService/CreateDataAgentSync', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDataAgent(); + $this->assertProtobufEquals($dataAgent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataAgentSyncExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $dataAgent = new DataAgent(); + $request = (new CreateDataAgentRequest()) + ->setParent($formattedParent) + ->setDataAgent($dataAgent); + try { + $gapicClient->createDataAgentSync($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 deleteDataAgentTest() + { + $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/deleteDataAgentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteDataAgentTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); + $request = (new DeleteDataAgentRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDataAgent($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.geminidataanalytics.v1.DataAgentService/DeleteDataAgent', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDataAgentTest'); + $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 deleteDataAgentExceptionTest() + { + $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/deleteDataAgentTest'); + $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 + $formattedName = $gapicClient->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); + $request = (new DeleteDataAgentRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDataAgent($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDataAgentTest'); + 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 deleteDataAgentSyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); + $request = (new DeleteDataAgentRequest()) + ->setName($formattedName); + $gapicClient->deleteDataAgentSync($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.geminidataanalytics.v1.DataAgentService/DeleteDataAgentSync', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataAgentSyncExceptionTest() + { + $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->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); + $request = (new DeleteDataAgentRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteDataAgentSync($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 getDataAgentTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $kmsKey = 'kmsKey-591635343'; + $expectedResponse = new DataAgent(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setKmsKey($kmsKey); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); + $request = (new GetDataAgentRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataAgent($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.geminidataanalytics.v1.DataAgentService/GetDataAgent', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataAgentExceptionTest() + { + $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->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); + $request = (new GetDataAgentRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataAgent($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 getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($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.geminidataanalytics.v1.DataAgentService/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($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 listAccessibleDataAgentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataAgentsElement = new DataAgent(); + $dataAgents = [ + $dataAgentsElement, + ]; + $expectedResponse = new ListAccessibleDataAgentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataAgents($dataAgents); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListAccessibleDataAgentsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAccessibleDataAgents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataAgents()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.geminidataanalytics.v1.DataAgentService/ListAccessibleDataAgents', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccessibleDataAgentsExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListAccessibleDataAgentsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAccessibleDataAgents($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 listDataAgentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataAgentsElement = new DataAgent(); + $dataAgents = [ + $dataAgentsElement, + ]; + $expectedResponse = new ListDataAgentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataAgents($dataAgents); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDataAgentsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDataAgents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataAgents()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.geminidataanalytics.v1.DataAgentService/ListDataAgents', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataAgentsExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDataAgentsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDataAgents($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 setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($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.geminidataanalytics.v1.DataAgentService/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($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 updateDataAgentTest() + { + $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/updateDataAgentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $kmsKey = 'kmsKey-591635343'; + $expectedResponse = new DataAgent(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setKmsKey($kmsKey); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateDataAgentTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $dataAgent = new DataAgent(); + $request = (new UpdateDataAgentRequest()) + ->setDataAgent($dataAgent); + $response = $gapicClient->updateDataAgent($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.geminidataanalytics.v1.DataAgentService/UpdateDataAgent', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getDataAgent(); + $this->assertProtobufEquals($dataAgent, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDataAgentTest'); + $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 updateDataAgentExceptionTest() + { + $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/updateDataAgentTest'); + $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 + $dataAgent = new DataAgent(); + $request = (new UpdateDataAgentRequest()) + ->setDataAgent($dataAgent); + $response = $gapicClient->updateDataAgent($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDataAgentTest'); + 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 updateDataAgentSyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $kmsKey = 'kmsKey-591635343'; + $expectedResponse = new DataAgent(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setKmsKey($kmsKey); + $transport->addResponse($expectedResponse); + // Mock request + $dataAgent = new DataAgent(); + $request = (new UpdateDataAgentRequest()) + ->setDataAgent($dataAgent); + $response = $gapicClient->updateDataAgentSync($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.geminidataanalytics.v1.DataAgentService/UpdateDataAgentSync', $actualFuncCall); + $actualValue = $actualRequestObject->getDataAgent(); + $this->assertProtobufEquals($dataAgent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataAgentSyncExceptionTest() + { + $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 + $dataAgent = new DataAgent(); + $request = (new UpdateDataAgentRequest()) + ->setDataAgent($dataAgent); + try { + $gapicClient->updateDataAgentSync($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 getLocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $locationId = 'locationId552319461'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Location(); + $expectedResponse->setName($name2); + $expectedResponse->setLocationId($locationId); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + $request = new GetLocationRequest(); + $response = $gapicClient->getLocation($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.location.Locations/GetLocation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLocationExceptionTest() + { + $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); + $request = new GetLocationRequest(); + try { + $gapicClient->getLocation($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 listLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $locationsElement = new Location(); + $locations = [ + $locationsElement, + ]; + $expectedResponse = new ListLocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLocations($locations); + $transport->addResponse($expectedResponse); + $request = new ListLocationsRequest(); + $response = $gapicClient->listLocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsExceptionTest() + { + $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); + $request = new ListLocationsRequest(); + try { + $gapicClient->listLocations($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 createDataAgentAsyncTest() + { + $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/createDataAgentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $kmsKey = 'kmsKey-591635343'; + $expectedResponse = new DataAgent(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setKmsKey($kmsKey); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createDataAgentTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $dataAgent = new DataAgent(); + $request = (new CreateDataAgentRequest()) + ->setParent($formattedParent) + ->setDataAgent($dataAgent); + $response = $gapicClient->createDataAgentAsync($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.geminidataanalytics.v1.DataAgentService/CreateDataAgent', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getDataAgent(); + $this->assertProtobufEquals($dataAgent, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataAgentTest'); + $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()); + } +} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/tests/Unit/V1/Client/DataChatServiceClientTest.php b/owl-bot-staging/GeminiDataAnalytics/v1/tests/Unit/V1/Client/DataChatServiceClientTest.php new file mode 100644 index 000000000000..bce13df1ad1e --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1/tests/Unit/V1/Client/DataChatServiceClientTest.php @@ -0,0 +1,677 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DataChatServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DataChatServiceClient($options); + } + + /** @test */ + public function chatTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $messageId = 'messageId-1690722221'; + $expectedResponse = new Message(); + $expectedResponse->setMessageId($messageId); + $transport->addResponse($expectedResponse); + $messageId2 = 'messageId2-1286413498'; + $expectedResponse2 = new Message(); + $expectedResponse2->setMessageId($messageId2); + $transport->addResponse($expectedResponse2); + $messageId3 = 'messageId3-1286413497'; + $expectedResponse3 = new Message(); + $expectedResponse3->setMessageId($messageId3); + $transport->addResponse($expectedResponse3); + // Mock request + $parent = 'parent-995424086'; + $messages = []; + $request = (new ChatRequest()) + ->setParent($parent) + ->setMessages($messages); + $serverStream = $gapicClient->chat($request); + $this->assertInstanceOf(ServerStream::class, $serverStream); + $responses = iterator_to_array($serverStream->readAll()); + $expectedResponses = []; + $expectedResponses[] = $expectedResponse; + $expectedResponses[] = $expectedResponse2; + $expectedResponses[] = $expectedResponse3; + $this->assertEquals($expectedResponses, $responses); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.geminidataanalytics.v1.DataChatService/Chat', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getMessages(); + $this->assertProtobufEquals($messages, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function chatExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $status = new stdClass(); + $status->code = 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->setStreamingStatus($status); + $this->assertTrue($transport->isExhausted()); + // Mock request + $parent = 'parent-995424086'; + $messages = []; + $request = (new ChatRequest()) + ->setParent($parent) + ->setMessages($messages); + $serverStream = $gapicClient->chat($request); + $results = $serverStream->readAll(); + try { + iterator_to_array($results); + // If the close stream 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 createConversationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $kmsKey = 'kmsKey-591635343'; + $memoryPaused = true; + $expectedResponse = new Conversation(); + $expectedResponse->setName($name); + $expectedResponse->setKmsKey($kmsKey); + $expectedResponse->setMemoryPaused($memoryPaused); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $conversation = new Conversation(); + $conversationAgents = []; + $conversation->setAgents($conversationAgents); + $request = (new CreateConversationRequest()) + ->setParent($formattedParent) + ->setConversation($conversation); + $response = $gapicClient->createConversation($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.geminidataanalytics.v1.DataChatService/CreateConversation', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getConversation(); + $this->assertProtobufEquals($conversation, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createConversationExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $conversation = new Conversation(); + $conversationAgents = []; + $conversation->setAgents($conversationAgents); + $request = (new CreateConversationRequest()) + ->setParent($formattedParent) + ->setConversation($conversation); + try { + $gapicClient->createConversation($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 deleteConversationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $request = (new DeleteConversationRequest()) + ->setName($formattedName); + $gapicClient->deleteConversation($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.geminidataanalytics.v1.DataChatService/DeleteConversation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteConversationExceptionTest() + { + $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->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $request = (new DeleteConversationRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteConversation($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 getConversationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $kmsKey = 'kmsKey-591635343'; + $memoryPaused = true; + $expectedResponse = new Conversation(); + $expectedResponse->setName($name2); + $expectedResponse->setKmsKey($kmsKey); + $expectedResponse->setMemoryPaused($memoryPaused); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $request = (new GetConversationRequest()) + ->setName($formattedName); + $response = $gapicClient->getConversation($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.geminidataanalytics.v1.DataChatService/GetConversation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConversationExceptionTest() + { + $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->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $request = (new GetConversationRequest()) + ->setName($formattedName); + try { + $gapicClient->getConversation($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 listConversationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $conversationsElement = new Conversation(); + $conversations = [ + $conversationsElement, + ]; + $expectedResponse = new ListConversationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setConversations($conversations); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListConversationsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listConversations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getConversations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.geminidataanalytics.v1.DataChatService/ListConversations', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listConversationsExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListConversationsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listConversations($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 listMessagesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $messagesElement = new StorageMessage(); + $messages = [ + $messagesElement, + ]; + $expectedResponse = new ListMessagesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setMessages($messages); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $request = (new ListMessagesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listMessages($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getMessages()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.geminidataanalytics.v1.DataChatService/ListMessages', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMessagesExceptionTest() + { + $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->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $request = (new ListMessagesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listMessages($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 getLocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $locationId = 'locationId552319461'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Location(); + $expectedResponse->setName($name2); + $expectedResponse->setLocationId($locationId); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + $request = new GetLocationRequest(); + $response = $gapicClient->getLocation($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.location.Locations/GetLocation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLocationExceptionTest() + { + $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); + $request = new GetLocationRequest(); + try { + $gapicClient->getLocation($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 listLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $locationsElement = new Location(); + $locations = [ + $locationsElement, + ]; + $expectedResponse = new ListLocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLocations($locations); + $transport->addResponse($expectedResponse); + $request = new ListLocationsRequest(); + $response = $gapicClient->listLocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsExceptionTest() + { + $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); + $request = new ListLocationsRequest(); + try { + $gapicClient->listLocations($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 createConversationAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $kmsKey = 'kmsKey-591635343'; + $memoryPaused = true; + $expectedResponse = new Conversation(); + $expectedResponse->setName($name); + $expectedResponse->setKmsKey($kmsKey); + $expectedResponse->setMemoryPaused($memoryPaused); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $conversation = new Conversation(); + $conversationAgents = []; + $conversation->setAgents($conversationAgents); + $request = (new CreateConversationRequest()) + ->setParent($formattedParent) + ->setConversation($conversation); + $response = $gapicClient->createConversationAsync($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.geminidataanalytics.v1.DataChatService/CreateConversation', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getConversation(); + $this->assertProtobufEquals($conversation, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/AgentContext.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/AgentContext.php new file mode 100644 index 000000000000..3f65dc852b22 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/AgentContext.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xC9\x03\x0A;google/cloud/geminidataanalytics/v1beta/agent_context.proto\x12'google.cloud.geminidataanalytics.v1beta\"4\x0A\x15AgentContextReference\x12\x1B\x0A\x0Econtext_set_id\x18\x01 \x01(\x09B\x03\xE0A\x02B\xA2\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x11AgentContextProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Context.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Context.php new file mode 100644 index 000000000000..bb24924e3a53 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Context.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\x8D&\x0A5google/cloud/geminidataanalytics/v1beta/context.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A\x19google/api/resource.proto\x1A8google/cloud/geminidataanalytics/v1beta/datasource.proto\x1A\x1Egoogle/protobuf/wrappers.proto\"\xB8\x09\x0A\x07Context\x12\x1F\x0A\x12system_instruction\x18\x01 \x01(\x09B\x03\xE0A\x01\x12a\x0A\x15datasource_references\x18\x07 \x01(\x0B2=.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesB\x03\xE0A\x02\x12R\x0A\x07options\x18\x03 \x01(\x0B2<.google.cloud.geminidataanalytics.v1beta.ConversationOptionsB\x03\xE0A\x01\x12S\x0A\x0Fexample_queries\x18\x05 \x03(\x0B25.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xE0A\x01\x12^\x0A\x15looker_golden_queries\x18\x0B \x03(\x0B2:.google.cloud.geminidataanalytics.v1beta.LookerGoldenQueryB\x03\xE0A\x01\x12R\x0A\x0Eglossary_terms\x18\x08 \x03(\x0B25.google.cloud.geminidataanalytics.v1beta.GlossaryTermB\x03\xE0A\x01\x12f\x0A\x14schema_relationships\x18\x09 \x03(\x0B2C.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipB\x03\xE0A\x01\x12S\x0A\x0Euser_functions\x18\x0A \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.UserFunctionsB\x03\xE0A\x01\x1A\x8E\x04\x0A\x12SchemaRelationship\x12j\x0A\x11left_schema_paths\x18\x01 \x01(\x0B2O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\x12k\x0A\x12right_schema_paths\x18\x02 \x01(\x0B2O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\x12`\x0A\x07sources\x18\x03 \x03(\x0E2J.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SourceB\x03\xE0A\x01\x12\x1D\x0A\x10confidence_score\x18\x04 \x01(\x02B\x03\xE0A\x01\x1A/\x0A\x0BSchemaPaths\x12\x11\x0A\x09table_fqn\x18\x01 \x01(\x09\x12\x0D\x0A\x05paths\x18\x02 \x03(\x09\"m\x0A\x06Source\x12\x16\x0A\x12SOURCE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14BIGQUERY_JOB_HISTORY\x10\x01\x12\x11\x0A\x0DLLM_SUGGESTED\x10\x02\x12\x1E\x0A\x1ABIGQUERY_TABLE_CONSTRAINTS\x10\x03\"^\x0A\x0DUserFunctions\x12M\x0A\x0Bbq_routines\x18\x01 \x03(\x0B28.google.cloud.geminidataanalytics.v1beta.BigQueryRoutine\"\x84\x01\x0A\x0FBigQueryRoutine\x12\\\x0A\x11routine_reference\x18\x01 \x01(\x0B2A.google.cloud.geminidataanalytics.v1beta.BigQueryRoutineReference\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\"V\x0A\x18BigQueryRoutineReference\x12\x12\x0A\x0Aproject_id\x18\x01 \x01(\x09\x12\x12\x0A\x0Adataset_id\x18\x02 \x01(\x09\x12\x12\x0A\x0Aroutine_id\x18\x03 \x01(\x09\"\xAB\x01\x0A\x0CExampleQuery\x12\x18\x0A\x09sql_query\x18e \x01(\x09B\x03\xE0A\x01H\x00\x12&\x0A\x19natural_language_question\x18\x01 \x01(\x09B\x03\xE0A\x01\x12P\x0A\x0Aparameters\x18\x03 \x03(\x0B27.google.cloud.geminidataanalytics.v1beta.QueryParameterB\x03\xE0A\x01B\x07\x0A\x05query\"U\x0A\x0EQueryParameter\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09data_type\x18\x03 \x01(\x09B\x03\xE0A\x02\"\xBB\x01\x0A\x0CMatchedQuery\x12L\x0A\x0Dexample_query\x18\x01 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ExampleQuery\x12]\x0A\x16query_parameter_values\x18\x02 \x03(\x0B2=.google.cloud.geminidataanalytics.v1beta.QueryParameterValues\"=\x0A\x14QueryParameterValues\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x12\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x8D\x01\x0A\x11LookerGoldenQuery\x12'\x0A\x1Anatural_language_questions\x18\x04 \x03(\x09B\x03\xE0A\x01\x12O\x0A\x0Clooker_query\x18\x05 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x03\xE0A\x01\"\xEB\x02\x0A\x0BLookerQuery\x12\x12\x0A\x05model\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x14\x0A\x07explore\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06fields\x18\x03 \x03(\x09B\x03\xE0A\x01\x12Q\x0A\x07filters\x18\x04 \x03(\x0B2;.google.cloud.geminidataanalytics.v1beta.LookerQuery.FilterB\x03\xE0A\x01\x12\x12\x0A\x05sorts\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\x17\x0A\x05limit\x18\x06 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01\x12\x1A\x0A\x08query_id\x18\x0A \x01(\x09B\x03\xE0A\x01H\x01\x88\x01\x01\x12\x1B\x0A\x09client_id\x18\x0B \x01(\x09B\x03\xE0A\x01H\x02\x88\x01\x01\x1A?\x0A\x06Filter\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B\x08\x0A\x06_valueB\x08\x0A\x06_limitB\x0B\x0A\x09_query_idB\x0C\x0A\x0A_client_id\"X\x0A\x0CGlossaryTerm\x12\x19\x0A\x0Cdisplay_name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06labels\x18\x03 \x03(\x09B\x03\xE0A\x01\"\xA2\x03\x0A\x13ConversationOptions\x12I\x0A\x05chart\x18\x01 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ChartOptionsB\x03\xE0A\x01\x12O\x0A\x08analysis\x18\x02 \x01(\x0B28.google.cloud.geminidataanalytics.v1beta.AnalysisOptionsB\x03\xE0A\x01\x12S\x0A\x0Adatasource\x18\x03 \x01(\x0B2:.google.cloud.geminidataanalytics.v1beta.DatasourceOptionsB\x03\xE0A\x01\x12[\x0A\x05model\x18\x06 \x01(\x0E2B.google.cloud.geminidataanalytics.v1beta.ConversationOptions.ModelB\x03\xE0A\x01H\x00\x88\x01\x01\"3\x0A\x05Model\x12\x15\x0A\x11MODEL_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FLATEST_GA_MODEL\x10\x01B\x08\x0A\x06_model\"Y\x0A\x11DatasourceOptions\x12D\x0A\x1Abig_query_max_billed_bytes\x18\x01 \x01(\x0B2\x1B.google.protobuf.Int64ValueB\x03\xE0A\x01\"\xD6\x02\x0A\x0CChartOptions\x12V\x0A\x05image\x18\x01 \x01(\x0B2B.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptionsB\x03\xE0A\x01\x1A\xED\x01\x0A\x0CImageOptions\x12^\x0A\x08no_image\x18\x01 \x01(\x0B2J.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImageH\x00\x12\\\x0A\x03svg\x18\x02 \x01(\x0B2M.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.SvgOptionsH\x00\x1A\x09\x0A\x07NoImage\x1A\x0C\x0A\x0ASvgOptionsB\x06\x0A\x04kind\"\x87\x01\x0A\x0FAnalysisOptions\x12T\x0A\x06python\x18\x01 \x01(\x0B2?.google.cloud.geminidataanalytics.v1beta.AnalysisOptions.PythonB\x03\xE0A\x01\x1A\x1E\x0A\x06Python\x12\x14\x0A\x07enabled\x18\x01 \x01(\x08B\x03\xE0A\x01\"\xA8\x01\x0A\x08Citation\x12M\x0A\x07sources\x18\x01 \x03(\x0B27.google.cloud.geminidataanalytics.v1beta.CitationSourceB\x03\xE0A\x03\x12M\x0A\x07anchors\x18\x02 \x03(\x0B27.google.cloud.geminidataanalytics.v1beta.CitationAnchorB\x03\xE0A\x03\"\x82\x02\x0A\x0ECitationSource\x12\x12\x0A\x03uri\x18\x03 \x01(\x09B\x03\xE0A\x03H\x00\x12S\x0A\x0Dexample_query\x18\x04 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xE0A\x03H\x00\x12S\x0A\x0Dglossary_term\x18\x05 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.GlossaryTermB\x03\xE0A\x03H\x00\x12\x0F\x0A\x02id\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05title\x18\x02 \x01(\x09B\x03\xE0A\x03B\x0D\x0A\x0Bsource_type\"\xA6\x02\x0A\x0ECitationAnchor\x12u\x0A\x13text_message_anchor\x18\x01 \x01(\x0B2Q.google.cloud.geminidataanalytics.v1beta.CitationAnchor.TextMessageCitationAnchorB\x03\xE0A\x03H\x00\x1A\x8D\x01\x0A\x19TextMessageCitationAnchor\x12\x17\x0A\x0Apart_index\x18\x01 \x01(\x05B\x03\xE0A\x03\x12\x1F\x0A\x12start_offset_bytes\x18\x02 \x01(\x05B\x03\xE0A\x03\x12\x1D\x0A\x10end_offset_bytes\x18\x03 \x01(\x05B\x03\xE0A\x03\x12\x17\x0A\x0Asource_ids\x18\x04 \x03(\x09B\x03\xE0A\x03B\x0D\x0A\x0Banchor_typeB\x9D\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x0CContextProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Conversation.php new file mode 100644 index 000000000000..8acda687d576 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Conversation.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\xB9\x0F\x0A:google/cloud/geminidataanalytics/v1beta/conversation.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xCA\x04\x0A\x0CConversation\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x01\xE0A\x08\x12\x13\x0A\x06agents\x18\x02 \x03(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x127\x0A\x0Elast_used_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12V\x0A\x06labels\x18\x09 \x03(\x0B2A.google.cloud.geminidataanalytics.v1beta.Conversation.LabelsEntryB\x03\xE0A\x01\x12?\x0A\x07kms_key\x18\x0A \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKeyH\x00\x88\x01\x01\x12\x1F\x0A\x0Dmemory_paused\x18\x0B \x01(\x08B\x03\xE0A\x01H\x01\x88\x01\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x98\x01\xEAA\x94\x01\x0A/geminidataanalytics.googleapis.com/Conversation\x12Dprojects/{project}/locations/{location}/conversations/{conversation}*\x0Dconversations2\x0CconversationB\x0A\x0A\x08_kms_keyB\x10\x0A\x0E_memory_paused\"\xF5\x01\x0A\x19CreateConversationRequest\x12G\x0A\x06parent\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x12/geminidataanalytics.googleapis.com/Conversation\x12\x1C\x0A\x0Fconversation_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12P\x0A\x0Cconversation\x18\x03 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ConversationB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"_\x0A\x16GetConversationRequest\x12E\x0A\x04name\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/Conversation\"\xA9\x01\x0A\x18ListConversationsRequest\x12G\x0A\x06parent\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x12/geminidataanalytics.googleapis.com/Conversation\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\"\x82\x01\x0A\x19ListConversationsResponse\x12L\x0A\x0Dconversations\x18\x01 \x03(\x0B25.google.cloud.geminidataanalytics.v1beta.Conversation\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"b\x0A\x19DeleteConversationRequest\x12E\x0A\x04name\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/ConversationB\xB5\x03\x0A+com.google.cloud.geminidataanalytics.v1betaB\x11ConversationProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1beta\xEAA\x8F\x01\x0A!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}*\x0AcryptoKeys2\x09cryptoKeyb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Credentials.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Credentials.php new file mode 100644 index 000000000000..bda132a679ef --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Credentials.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xAC\x06\x0A9google/cloud/geminidataanalytics/v1beta/credentials.proto\x12'google.cloud.geminidataanalytics.v1beta\"a\x0A\x0BCredentials\x12J\x0A\x05oauth\x18\x01 \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.OAuthCredentialsH\x00B\x06\x0A\x04kind\"\xB6\x02\x0A\x10OAuthCredentials\x12W\x0A\x06secret\x18\x02 \x01(\x0B2E.google.cloud.geminidataanalytics.v1beta.OAuthCredentials.SecretBasedH\x00\x12U\x0A\x05token\x18\x03 \x01(\x0B2D.google.cloud.geminidataanalytics.v1beta.OAuthCredentials.TokenBasedH\x00\x1AA\x0A\x0BSecretBased\x12\x16\x0A\x09client_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1A\x0A\x0Dclient_secret\x18\x03 \x01(\x09B\x03\xE0A\x02\x1A'\x0A\x0ATokenBased\x12\x19\x0A\x0Caccess_token\x18\x01 \x01(\x09B\x03\xE0A\x02B\x06\x0A\x04kindB\xA1\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x10CredentialsProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAgent.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAgent.php new file mode 100644 index 000000000000..34d1024dd55e --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAgent.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\x80\x0A\x0A8google/cloud/geminidataanalytics/v1beta/data_agent.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A\x19google/api/resource.proto\x1ABgoogle/cloud/geminidataanalytics/v1beta/data_analytics_agent.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xF0\x05\x0A\x09DataAgent\x12[\x0A\x14data_analytics_agent\x18e \x01(\x0B2;.google.cloud.geminidataanalytics.v1beta.DataAnalyticsAgentH\x00\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x01\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x12S\x0A\x06labels\x18\x05 \x03(\x0B2>.google.cloud.geminidataanalytics.v1beta.DataAgent.LabelsEntryB\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bdelete_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x123\x0A\x0Apurge_time\x18\x0D \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12?\x0A\x07kms_key\x18\x0E \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKeyH\x01\x88\x01\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x8A\x01\xEAA\x86\x01\x0A,geminidataanalytics.googleapis.com/DataAgent\x12?projects/{project}/locations/{location}/dataAgents/{data_agent}*\x0AdataAgents2\x09dataAgentB\x06\x0A\x04typeB\x0A\x0A\x08_kms_keyB\x9F\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x0EDataAgentProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAgentService.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAgentService.php new file mode 100644 index 000000000000..fd56495b5254 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAgentService.php @@ -0,0 +1,36 @@ +internalAddGeneratedFile( + "\x0A\xE5(\x0A@google/cloud/geminidataanalytics/v1beta/data_agent_service.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A8google/cloud/geminidataanalytics/v1beta/data_agent.proto\x1A\x1Egoogle/iam/v1/iam_policy.proto\x1A\x1Agoogle/iam/v1/policy.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xD5\x01\x0A\x15ListDataAgentsRequest\x12D\x0A\x06parent\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x12,geminidataanalytics.googleapis.com/DataAgent\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\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cshow_deleted\x18\x06 \x01(\x08B\x03\xE0A\x01\"\x94\x01\x0A\x16ListDataAgentsResponse\x12G\x0A\x0Bdata_agents\x18\x01 \x03(\x0B22.google.cloud.geminidataanalytics.v1beta.DataAgent\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x0Bunreachable\x18\x03 \x03(\x09B\x03\xE0A\x06\"\xB7\x03\x0A\x1FListAccessibleDataAgentsRequest\x12D\x0A\x06parent\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x12,geminidataanalytics.googleapis.com/DataAgent\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\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cshow_deleted\x18\x06 \x01(\x08B\x03\xE0A\x01\x12s\x0A\x0Ecreator_filter\x18\x07 \x01(\x0E2V.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest.CreatorFilterB\x03\xE0A\x01\"a\x0A\x0DCreatorFilter\x12\x1E\x0A\x1ACREATOR_FILTER_UNSPECIFIED\x10\x00\x12\x08\x0A\x04NONE\x10\x01\x12\x10\x0A\x0CCREATOR_ONLY\x10\x02\x12\x14\x0A\x10NOT_CREATOR_ONLY\x10\x03\"\x9E\x01\x0A ListAccessibleDataAgentsResponse\x12G\x0A\x0Bdata_agents\x18\x01 \x03(\x0B22.google.cloud.geminidataanalytics.v1beta.DataAgent\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x0Bunreachable\x18\x03 \x03(\x09B\x03\xE0A\x06\"Y\x0A\x13GetDataAgentRequest\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,geminidataanalytics.googleapis.com/DataAgent\"\xE8\x01\x0A\x16CreateDataAgentRequest\x12D\x0A\x06parent\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x12,geminidataanalytics.googleapis.com/DataAgent\x12\x1A\x0A\x0Ddata_agent_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12K\x0A\x0Adata_agent\x18\x03 \x01(\x0B22.google.cloud.geminidataanalytics.v1beta.DataAgentB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xBC\x01\x0A\x16UpdateDataAgentRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12K\x0A\x0Adata_agent\x18\x02 \x01(\x0B22.google.cloud.geminidataanalytics.v1beta.DataAgentB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"}\x0A\x16DeleteDataAgentRequest\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,geminidataanalytics.googleapis.com/DataAgent\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\x80\x02\x0A\x11OperationMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04verb\x18\x04 \x01(\x09B\x03\xE0A\x03\x12\x1B\x0A\x0Estatus_message\x18\x05 \x01(\x09B\x03\xE0A\x03\x12#\x0A\x16requested_cancellation\x18\x06 \x01(\x08B\x03\xE0A\x03\x12\x18\x0A\x0Bapi_version\x18\x07 \x01(\x09B\x03\xE0A\x032\x88\x14\x0A\x10DataAgentService\x12\xD6\x01\x0A\x0EListDataAgents\x12>.google.cloud.geminidataanalytics.v1beta.ListDataAgentsRequest\x1A?.google.cloud.geminidataanalytics.v1beta.ListDataAgentsResponse\"C\xDAA\x06parent\x82\xD3\xE4\x93\x024\x122/v1beta/{parent=projects/*/locations/*}/dataAgents\x12\x83\x02\x0A\x18ListAccessibleDataAgents\x12H.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest\x1AI.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse\"R\xDAA\x06parent\x82\xD3\xE4\x93\x02C\x12A/v1beta/{parent=projects/*/locations/*}/dataAgents:listAccessible\x12\xC3\x01\x0A\x0CGetDataAgent\x12<.google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest\x1A2.google.cloud.geminidataanalytics.v1beta.DataAgent\"A\xDAA\x04name\x82\xD3\xE4\x93\x024\x122/v1beta/{name=projects/*/locations/*/dataAgents/*}\x12\xFD\x01\x0A\x0FCreateDataAgent\x12?.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest\x1A\x1D.google.longrunning.Operation\"\x89\x01\xCAA\x1E\x0A\x09DataAgent\x12\x11OperationMetadata\xDAA\x1Fparent,data_agent,data_agent_id\x82\xD3\xE4\x93\x02@\"2/v1beta/{parent=projects/*/locations/*}/dataAgents:\x0Adata_agent\x12\xFF\x01\x0A\x13CreateDataAgentSync\x12?.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest\x1A2.google.cloud.geminidataanalytics.v1beta.DataAgent\"s\xDAA\x1Fparent,data_agent,data_agent_id\x82\xD3\xE4\x93\x02K\"=/v1beta/{parent=projects/*/locations/*}/dataAgents:createSync:\x0Adata_agent\x12\xFF\x01\x0A\x0FUpdateDataAgent\x12?.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest\x1A\x1D.google.longrunning.Operation\"\x8B\x01\xCAA\x1E\x0A\x09DataAgent\x12\x11OperationMetadata\xDAA\x16data_agent,update_mask\x82\xD3\xE4\x93\x02K2=/v1beta/{data_agent.name=projects/*/locations/*/dataAgents/*}:\x0Adata_agent\x12\x81\x02\x0A\x13UpdateDataAgentSync\x12?.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest\x1A2.google.cloud.geminidataanalytics.v1beta.DataAgent\"u\xDAA\x16data_agent,update_mask\x82\xD3\xE4\x93\x02V2H/v1beta/{data_agent.name=projects/*/locations/*/dataAgents/*}:updateSync:\x0Adata_agent\x12\xE1\x01\x0A\x0FDeleteDataAgent\x12?.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest\x1A\x1D.google.longrunning.Operation\"n\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x024*2/v1beta/{name=projects/*/locations/*/dataAgents/*}\x12\xBC\x01\x0A\x13DeleteDataAgentSync\x12?.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest\x1A\x16.google.protobuf.Empty\"L\xDAA\x04name\x82\xD3\xE4\x93\x02?*=/v1beta/{name=projects/*/locations/*/dataAgents/*}:deleteSync\x12\xA4\x01\x0A\x0CGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"Y\xDAA\x08resource\x82\xD3\xE4\x93\x02H\"C/v1beta/{resource=projects/*/locations/*/dataAgents/*}:getIamPolicy:\x01*\x12\xA4\x01\x0A\x0CSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"Y\xDAA\x08resource\x82\xD3\xE4\x93\x02H\"C/v1beta/{resource=projects/*/locations/*/dataAgents/*}:setIamPolicy:\x01*\x1AV\xCAA\"geminidataanalytics.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xA6\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x15DataAgentServiceProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAnalyticsAgent.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAnalyticsAgent.php new file mode 100644 index 000000000000..b2b61fb3d3b2 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAnalyticsAgent.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\xE7\x05\x0ABgoogle/cloud/geminidataanalytics/v1beta/data_analytics_agent.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A5google/cloud/geminidataanalytics/v1beta/context.proto\"\x8D\x02\x0A\x12DataAnalyticsAgent\x12N\x0A\x0Fstaging_context\x18\x05 \x01(\x0B20.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xE0A\x01\x12P\x0A\x11published_context\x18\x06 \x01(\x0B20.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xE0A\x01\x12U\x0A\x16last_published_context\x18\x07 \x01(\x0B20.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xE0A\x03B\xA8\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x17DataAnalyticsAgentProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataChatService.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataChatService.php new file mode 100644 index 000000000000..c7b4deae7a9b --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataChatService.php @@ -0,0 +1,35 @@ +internalAddGeneratedFile( + "\x0A\xF3S\x0A?google/cloud/geminidataanalytics/v1beta/data_chat_service.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A5google/cloud/geminidataanalytics/v1beta/context.proto\x1A:google/cloud/geminidataanalytics/v1beta/conversation.proto\x1A9google/cloud/geminidataanalytics/v1beta/credentials.proto\x1A8google/cloud/geminidataanalytics/v1beta/datasource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x90\x02\x0A\x10QueryDataRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x13\x0A\x06prompt\x18\x02 \x01(\x09B\x03\xE0A\x02\x12O\x0A\x07context\x18\x03 \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.QueryDataContextB\x03\xE0A\x02\x12[\x0A\x12generation_options\x18\x04 \x01(\x0B2:.google.cloud.geminidataanalytics.v1beta.GenerationOptionsB\x03\xE0A\x01\"\xB8\x01\x0A\x11GenerationOptions\x12\"\x0A\x15generate_query_result\x18\x01 \x01(\x08B\x03\xE0A\x01\x12-\x0A generate_natural_language_answer\x18\x02 \x01(\x08B\x03\xE0A\x01\x12!\x0A\x14generate_explanation\x18\x03 \x01(\x08B\x03\xE0A\x01\x12-\x0A generate_disambiguation_question\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xF4\x01\x0A\x10QueryDataContext\x12a\x0A\x15datasource_references\x18\x01 \x01(\x0B2=.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesB\x03\xE0A\x02\x12}\x0A\$parameterized_secure_view_parameters\x18\x02 \x01(\x0B2J.google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParametersB\x03\xE0A\x01\"\xC5\x01\x0A!ParameterizedSecureViewParameters\x12m\x0A\x0Aparameters\x18\x01 \x03(\x0B2T.google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters.ParameterB\x03\xE0A\x01\x1A1\x0A\x09Parameter\x12\x10\x0A\x03key\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x12\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xDE\x01\x0A\x11QueryDataResponse\x12\x17\x0A\x0Fgenerated_query\x18\x01 \x01(\x09\x12\x1A\x0A\x12intent_explanation\x18\x02 \x01(\x09\x12R\x0A\x0Cquery_result\x18\x03 \x01(\x0B2<.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult\x12\x1F\x0A\x17natural_language_answer\x18\x04 \x01(\x09\x12\x1F\x0A\x17disambiguation_question\x18\x05 \x03(\x09\"\xA4\x03\x0A\x13ExecutedQueryResult\x12T\x0A\x07columns\x18\x01 \x03(\x0B2C.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column\x12N\x0A\x04rows\x18\x02 \x03(\x0B2@.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row\x12\x17\x0A\x0Ftotal_row_count\x18\x03 \x01(\x03\x12\x16\x0A\x0Epartial_result\x18\x04 \x01(\x08\x12\x1D\x0A\x15query_execution_error\x18\x05 \x01(\x09\x1A\$\x0A\x06Column\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0C\x0A\x04type\x18\x02 \x01(\x09\x1A\x16\x0A\x05Value\x12\x0D\x0A\x05value\x18\x01 \x01(\x09\x1AY\x0A\x03Row\x12R\x0A\x06values\x18\x01 \x03(\x0B2B.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value\"\xA4\x01\x0A\x13ListMessagesRequest\x12G\x0A\x06parent\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/Conversation\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"z\x0A\x14ListMessagesResponse\x12I\x0A\x08messages\x18\x01 \x03(\x0B27.google.cloud.geminidataanalytics.v1beta.StorageMessage\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"g\x0A\x0EStorageMessage\x12\x12\x0A\x0Amessage_id\x18\x01 \x01(\x09\x12A\x0A\x07message\x18\x02 \x01(\x0B20.google.cloud.geminidataanalytics.v1beta.Message\"\xBF\x08\x0A\x0BChatRequest\x12O\x0A\x0Einline_context\x18e \x01(\x0B20.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xE0A\x01H\x00\x12e\x0A\x16conversation_reference\x18g \x01(\x0B2>.google.cloud.geminidataanalytics.v1beta.ConversationReferenceB\x03\xE0A\x01H\x00\x12\\\x0A\x12data_agent_context\x18h \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\x03\xE0A\x01H\x00\x12u\x0A\x1Fclient_managed_resource_context\x18i \x01(\x0B2E.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContextB\x03\xE0A\x01H\x00\x12W\x0A\x0Flooker_settings\x18\x0D \x01(\x0B27.google.cloud.geminidataanalytics.v1beta.LookerSettingsB\x03\xE0A\x01H\x01\x12F\x0A\x07project\x18\x01 \x01(\x09B5\x18\x01\xE0A\x01\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\x12\x13\x0A\x06parent\x18\x03 \x01(\x09B\x03\xE0A\x02\x12G\x0A\x08messages\x18\x02 \x03(\x0B20.google.cloud.geminidataanalytics.v1beta.MessageB\x03\xE0A\x02\x12N\x0A\x0Bcredentials\x18\x07 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.CredentialsB\x03\xE0A\x01\x12]\x0A\x0Dthinking_mode\x18\x09 \x01(\x0E2A.google.cloud.geminidataanalytics.v1beta.ChatRequest.ThinkingModeB\x03\xE0A\x01\x12N\x0A\x05model\x18\x0B \x01(\x0E2:.google.cloud.geminidataanalytics.v1beta.ChatRequest.ModelB\x03\xE0A\x01\"E\x0A\x0CThinkingMode\x12\x1D\x0A\x19THINKING_MODE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04FAST\x10\x01\x12\x0C\x0A\x08THINKING\x10\x02\"3\x0A\x05Model\x12\x15\x0A\x11MODEL_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FLATEST_GA_MODEL\x10\x01B\x12\x0A\x10context_providerB\x15\x0A\x13datasource_settings\"\xE5\x02\x0A\x10DataAgentContext\x12H\x0A\x0Adata_agent\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,geminidataanalytics.googleapis.com/DataAgent\x12P\x0A\x0Bcredentials\x18\x02 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.CredentialsB\x05\x18\x01\xE0A\x01\x12f\x0A\x0Fcontext_version\x18\x03 \x01(\x0E2H.google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersionB\x03\xE0A\x01\"M\x0A\x0EContextVersion\x12\x1F\x0A\x1BCONTEXT_VERSION_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07STAGING\x10\x01\x12\x0D\x0A\x09PUBLISHED\x10\x02\"\xC2\x01\x0A\x15ConversationReference\x12M\x0A\x0Cconversation\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/Conversation\x12Z\x0A\x12data_agent_context\x18\x03 \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\x03\xE0A\x02\"\xA2\x01\x0A\x1CClientManagedResourceContext\x12M\x0A\x0Einline_context\x18\x01 \x01(\x0B20.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xE0A\x02\x12\x1C\x0A\x0Fconversation_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08agent_id\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xFE\x01\x0A\x07Message\x12L\x0A\x0Cuser_message\x18\x02 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.UserMessageH\x00\x12P\x0A\x0Esystem_message\x18\x03 \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.SystemMessageH\x00\x122\x0A\x09timestamp\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x17\x0A\x0Amessage_id\x18\x04 \x01(\x09B\x03\xE0A\x01B\x06\x0A\x04kind\".\x0A\x0ELookerSettings\x12\x1C\x0A\x0Fenable_dev_mode\x18\x01 \x01(\x08B\x03\xE0A\x01\"%\x0A\x0BUserMessage\x12\x0E\x0A\x04text\x18\x01 \x01(\x09H\x00B\x06\x0A\x04kind\"\xF1\x05\x0A\x0DSystemMessage\x12D\x0A\x04text\x18\x01 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.TextMessageH\x00\x12H\x0A\x06schema\x18\x02 \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.SchemaMessageH\x00\x12D\x0A\x04data\x18\x03 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.DataMessageH\x00\x12L\x0A\x08analysis\x18\x04 \x01(\x0B28.google.cloud.geminidataanalytics.v1beta.AnalysisMessageH\x00\x12F\x0A\x05chart\x18\x05 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ChartMessageH\x00\x12F\x0A\x05error\x18\x06 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ErrorMessageH\x00\x12W\x0A\x0Fexample_queries\x18\x0D \x01(\x0B27.google.cloud.geminidataanalytics.v1beta.ExampleQueriesB\x03\xE0A\x01H\x00\x12]\x0A\x0Dclarification\x18\x0E \x01(\x0B2=.google.cloud.geminidataanalytics.v1beta.ClarificationMessageB\x05\x18\x01\xE0A\x01H\x00\x12\x15\x0A\x08group_id\x18\x0C \x01(\x05H\x01\x88\x01\x01\x12H\x0A\x08citation\x18\x0F \x01(\x0B21.google.cloud.geminidataanalytics.v1beta.CitationB\x03\xE0A\x03B\x06\x0A\x04kindB\x0B\x0A\x09_group_id\"\x86\x02\x0A\x0BTextMessage\x12\x12\x0A\x05parts\x18\x01 \x03(\x09B\x03\xE0A\x01\x12U\x0A\x09text_type\x18\x02 \x01(\x0E2=.google.cloud.geminidataanalytics.v1beta.TextMessage.TextTypeB\x03\xE0A\x01\x12\x1E\x0A\x11thought_signature\x18\x03 \x01(\x0CB\x03\xE0A\x01\"l\x0A\x08TextType\x12\x19\x0A\x15TEXT_TYPE_UNSPECIFIED\x10\x00\x12\x12\x0A\x0EFINAL_RESPONSE\x10\x01\x12\x0B\x0A\x07THOUGHT\x10\x02\x12\x0C\x0A\x08PROGRESS\x10\x03\x12\x16\x0A\x12FOLLOWUP_QUESTIONS\x10\x04\"\xA7\x01\x0A\x0DSchemaMessage\x12E\x0A\x05query\x18\x01 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.SchemaQueryH\x00\x12G\x0A\x06result\x18\x02 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.SchemaResultH\x00B\x06\x0A\x04kind\"\$\x0A\x0BSchemaQuery\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x01\"]\x0A\x0CSchemaResult\x12M\x0A\x0Bdatasources\x18\x01 \x03(\x0B23.google.cloud.geminidataanalytics.v1beta.DatasourceB\x03\xE0A\x01\"\xB5\x03\x0A\x0BDataMessage\x12C\x0A\x05query\x18\x01 \x01(\x0B22.google.cloud.geminidataanalytics.v1beta.DataQueryH\x00\x12\x17\x0A\x0Dgenerated_sql\x18\x02 \x01(\x09H\x00\x12E\x0A\x06result\x18\x03 \x01(\x0B23.google.cloud.geminidataanalytics.v1beta.DataResultH\x00\x12Z\x0A\x16generated_looker_query\x18\x04 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x02\x18\x01H\x00\x12M\x0A\x0Dbig_query_job\x18\x05 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.BigQueryJobH\x00\x12N\x0A\x0Dmatched_query\x18\x06 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.MatchedQueryH\x00B\x06\x0A\x04kind\"\xDF\x01\x0A\x09DataQuery\x12K\x0A\x06looker\x18\x04 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x03\xE0A\x01H\x00\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12M\x0A\x0Bdatasources\x18\x02 \x03(\x0B23.google.cloud.geminidataanalytics.v1beta.DatasourceB\x03\xE0A\x01B\x0C\x0A\x0Aquery_type\"\xC7\x01\x0A\x0ADataResult\x12\x11\x0A\x04name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12D\x0A\x06schema\x18\x05 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\x12*\x0A\x04data\x18\x02 \x03(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x124\x0A\x0Eformatted_data\x18\x06 \x03(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\"\xF9\x01\x0A\x0BBigQueryJob\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06job_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08location\x18\x05 \x01(\x09B\x03\xE0A\x01\x12_\x0A\x11destination_table\x18\x03 \x01(\x0B2?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\x03\xE0A\x01\x12D\x0A\x06schema\x18\x07 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\"\xB4\x01\x0A\x0FAnalysisMessage\x12G\x0A\x05query\x18\x01 \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.AnalysisQueryH\x00\x12P\x0A\x0Eprogress_event\x18\x02 \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.AnalysisEventH\x00B\x06\x0A\x04kind\"F\x0A\x0DAnalysisQuery\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11data_result_names\x18\x02 \x03(\x09B\x03\xE0A\x01\"\xAA\x02\x0A\x0DAnalysisEvent\x12\x1B\x0A\x11planner_reasoning\x18\x02 \x01(\x09H\x00\x12\x1B\x0A\x11coder_instruction\x18\x03 \x01(\x09H\x00\x12\x0E\x0A\x04code\x18\x04 \x01(\x09H\x00\x12\x1A\x0A\x10execution_output\x18\x05 \x01(\x09H\x00\x12\x19\x0A\x0Fexecution_error\x18\x06 \x01(\x09H\x00\x12 \x0A\x16result_vega_chart_json\x18\x07 \x01(\x09H\x00\x12!\x0A\x17result_natural_language\x18\x08 \x01(\x09H\x00\x12\x19\x0A\x0Fresult_csv_data\x18\x09 \x01(\x09H\x00\x12\x1F\x0A\x15result_reference_data\x18\x0A \x01(\x09H\x00\x12\x0F\x0A\x05error\x18\x0B \x01(\x09H\x00B\x06\x0A\x04kind\"\xA4\x01\x0A\x0CChartMessage\x12D\x0A\x05query\x18\x01 \x01(\x0B23.google.cloud.geminidataanalytics.v1beta.ChartQueryH\x00\x12F\x0A\x06result\x18\x02 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.ChartResultH\x00B\x06\x0A\x04kind\"F\x0A\x0AChartQuery\x12\x19\x0A\x0Cinstructions\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10data_result_name\x18\x02 \x01(\x09B\x03\xE0A\x01\"\x83\x01\x0A\x0BChartResult\x121\x0A\x0Bvega_config\x18\x02 \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x12A\x0A\x05image\x18\x03 \x01(\x0B2-.google.cloud.geminidataanalytics.v1beta.BlobB\x03\xE0A\x01\"!\x0A\x0CErrorMessage\x12\x11\x0A\x04text\x18\x01 \x01(\x09B\x03\xE0A\x03\"\x9F\x04\x0A\x15ClarificationQuestion\x12\x17\x0A\x08question\x18\x01 \x01(\x09B\x05\x18\x01\xE0A\x02\x12k\x0A\x0Eselection_mode\x18\x02 \x01(\x0E2L.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionModeB\x05\x18\x01\xE0A\x02\x12\x16\x0A\x07options\x18\x03 \x03(\x09B\x05\x18\x01\xE0A\x02\x12\x84\x01\x0A\x1Bclarification_question_type\x18\x04 \x01(\x0E2X.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionTypeB\x05\x18\x01\xE0A\x01\"d\x0A\x0DSelectionMode\x12\"\x0A\x1ASELECTION_MODE_UNSPECIFIED\x10\x00\x1A\x02\x08\x01\x12\x15\x0A\x0DSINGLE_SELECT\x10\x01\x1A\x02\x08\x01\x12\x14\x0A\x0CMULTI_SELECT\x10\x02\x1A\x02\x08\x01\x1A\x02\x18\x01\"w\x0A\x19ClarificationQuestionType\x12/\x0A'CLARIFICATION_QUESTION_TYPE_UNSPECIFIED\x10\x00\x1A\x02\x08\x01\x12\x15\x0A\x0DFILTER_VALUES\x10\x01\x1A\x02\x08\x01\x12\x0E\x0A\x06FIELDS\x10\x02\x1A\x02\x08\x01\x1A\x02\x18\x01:\x02\x18\x01\"t\x0A\x14ClarificationMessage\x12X\x0A\x09questions\x18\x01 \x03(\x0B2>.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionB\x05\x18\x01\xE0A\x02:\x02\x18\x01\"e\x0A\x0EExampleQueries\x12S\x0A\x0Fexample_queries\x18\x01 \x03(\x0B25.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xE0A\x01\"1\x0A\x04Blob\x12\x16\x0A\x09mime_type\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04data\x18\x02 \x01(\x0CB\x03\xE0A\x022\xAE\x0C\x0A\x0FDataChatService\x12\xA9\x01\x0A\x04Chat\x124.google.cloud.geminidataanalytics.v1beta.ChatRequest\x1A0.google.cloud.geminidataanalytics.v1beta.Message\"7\x82\xD3\xE4\x93\x021\",/v1beta/{parent=projects/*/locations/*}:chat:\x01*0\x01\x12\x82\x02\x0A\x12CreateConversation\x12B.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest\x1A5.google.cloud.geminidataanalytics.v1beta.Conversation\"q\xDAA#parent,conversation,conversation_id\x82\xD3\xE4\x93\x02E\"5/v1beta/{parent=projects/*/locations/*}/conversations:\x0Cconversation\x12\xB6\x01\x0A\x12DeleteConversation\x12B.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest\x1A\x16.google.protobuf.Empty\"D\xDAA\x04name\x82\xD3\xE4\x93\x027*5/v1beta/{name=projects/*/locations/*/conversations/*}\x12\xCF\x01\x0A\x0FGetConversation\x12?.google.cloud.geminidataanalytics.v1beta.GetConversationRequest\x1A5.google.cloud.geminidataanalytics.v1beta.Conversation\"D\xDAA\x04name\x82\xD3\xE4\x93\x027\x125/v1beta/{name=projects/*/locations/*/conversations/*}\x12\xE2\x01\x0A\x11ListConversations\x12A.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest\x1AB.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse\"F\xDAA\x06parent\x82\xD3\xE4\x93\x027\x125/v1beta/{parent=projects/*/locations/*}/conversations\x12\xDE\x01\x0A\x0CListMessages\x12<.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest\x1A=.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse\"Q\xDAA\x06parent\x82\xD3\xE4\x93\x02B\x12@/v1beta/{parent=projects/*/locations/*/conversations/*}/messages\x12\xC0\x01\x0A\x09QueryData\x129.google.cloud.geminidataanalytics.v1beta.QueryDataRequest\x1A:.google.cloud.geminidataanalytics.v1beta.QueryDataResponse\"<\x82\xD3\xE4\x93\x026\"1/v1beta/{parent=projects/*/locations/*}:queryData:\x01*\x1AV\xCAA\"geminidataanalytics.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xA5\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x14DataChatServiceProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Datasource.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Datasource.php new file mode 100644 index 000000000000..112b8b824467 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Datasource.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\xC8-\x0A8google/cloud/geminidataanalytics/v1beta/datasource.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A;google/cloud/geminidataanalytics/v1beta/agent_context.proto\x1A9google/cloud/geminidataanalytics/v1beta/credentials.proto\x1A\x1Cgoogle/protobuf/struct.proto\"\xA0\x04\x0A\x14DatasourceReferences\x12N\x0A\x02bq\x18\x01 \x01(\x0B2@.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferencesH\x00\x12U\x0A\x06studio\x18\x02 \x01(\x0B2C.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferencesH\x00\x12R\x0A\x06looker\x18\x03 \x01(\x0B2@.google.cloud.geminidataanalytics.v1beta.LookerExploreReferencesH\x00\x12L\x0A\x07alloydb\x18\x08 \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceH\x00\x12V\x0A\x11spanner_reference\x18\x09 \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.SpannerReferenceH\x00\x12Y\x0A\x13cloud_sql_reference\x18\x0A \x01(\x0B2:.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceH\x00B\x0C\x0A\x0Areferences\"\xEA\x01\x0A\x17BigQueryTableReferences\x12^\x0A\x10table_references\x18\x01 \x03(\x0B2?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\x03\xE0A\x01\x12o\x0A\x19property_graph_references\x18\x02 \x03(\x0B2G.google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReferenceB\x03\xE0A\x01\"\xA7\x01\x0A\x16BigQueryTableReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Adataset_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08table_id\x18\x04 \x01(\x09B\x03\xE0A\x02\x12D\x0A\x06schema\x18\x06 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\"\x80\x01\x0A\x1AStudioDatasourceReferences\x12b\x0A\x11studio_references\x18\x02 \x03(\x0B2B.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferenceB\x03\xE0A\x01\"7\x0A\x19StudioDatasourceReference\x12\x1A\x0A\x0Ddatasource_id\x18\x01 \x01(\x09B\x03\xE0A\x02\"\xDC\x01\x0A\x10AlloyDbReference\x12b\x0A\x12database_reference\x18\x01 \x01(\x0B2A.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReferenceB\x03\xE0A\x02\x12d\x0A\x17agent_context_reference\x18\x03 \x01(\x0B2>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\x03\xE0A\x01\"u\x0A\x16DatabaseTableReference\x12\x15\x0A\x08table_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12D\x0A\x06schema\x18\x02 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\"\x96\x02\x0A\x18AlloyDbDatabaseReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06region\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Acluster_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Binstance_id\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdatabase_id\x18\x05 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09table_ids\x18\x06 \x03(\x09B\x03\xE0A\x01\x12g\x0A\x19database_table_references\x18\x07 \x03(\x0B2?.google.cloud.geminidataanalytics.v1beta.DatabaseTableReferenceB\x03\xE0A\x01\"\xDC\x01\x0A\x10SpannerReference\x12b\x0A\x12database_reference\x18\x01 \x01(\x0B2A.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReferenceB\x03\xE0A\x02\x12d\x0A\x17agent_context_reference\x18\x02 \x01(\x0B2>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\x03\xE0A\x01\"\xB5\x03\x0A\x18SpannerDatabaseReference\x12]\x0A\x06engine\x18\x06 \x01(\x0E2H.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.EngineB\x03\xE0A\x02\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Binstance_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdatabase_id\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09table_ids\x18\x05 \x03(\x09B\x03\xE0A\x01\x12g\x0A\x19database_table_references\x18\x07 \x03(\x0B2?.google.cloud.geminidataanalytics.v1beta.DatabaseTableReferenceB\x03\xE0A\x01\x12\x15\x0A\x08priority\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x0Brequest_tag\x18\x09 \x01(\x09\"@\x0A\x06Engine\x12\x16\x0A\x12ENGINE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AGOOGLE_SQL\x10\x01\x12\x0E\x0A\x0APOSTGRESQL\x10\x02\"\xDE\x01\x0A\x11CloudSqlReference\x12c\x0A\x12database_reference\x18\x01 \x01(\x0B2B.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReferenceB\x03\xE0A\x02\x12d\x0A\x17agent_context_reference\x18\x02 \x01(\x0B2>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\x03\xE0A\x01\"\x9B\x03\x0A\x19CloudSqlDatabaseReference\x12^\x0A\x06engine\x18\x01 \x01(\x0E2I.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.EngineB\x03\xE0A\x02\x12\x17\x0A\x0Aproject_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06region\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Binstance_id\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdatabase_id\x18\x05 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09table_ids\x18\x07 \x03(\x09B\x03\xE0A\x01\x12g\x0A\x19database_table_references\x18\x08 \x03(\x0B2?.google.cloud.geminidataanalytics.v1beta.DatabaseTableReferenceB\x03\xE0A\x01\";\x0A\x06Engine\x12\x16\x0A\x12ENGINE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0APOSTGRESQL\x10\x01\x12\x09\x0A\x05MYSQL\x10\x02\"\xCD\x01\x0A\x17LookerExploreReferences\x12`\x0A\x12explore_references\x18\x01 \x03(\x0B2?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceB\x03\xE0A\x02\x12P\x0A\x0Bcredentials\x18\x02 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.CredentialsB\x05\x18\x01\xE0A\x01\"\xA6\x02\x0A\x16LookerExploreReference\x12\x1D\x0A\x13looker_instance_uri\x18\x09 \x01(\x09H\x00\x12j\x0A\x1Cprivate_looker_instance_info\x18\x0A \x01(\x0B2B.google.cloud.geminidataanalytics.v1beta.PrivateLookerInstanceInfoH\x00\x12\x19\x0A\x0Clookml_model\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x14\x0A\x07explore\x18\x05 \x01(\x09B\x03\xE0A\x02\x12D\x0A\x06schema\x18\x08 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01B\x0A\x0A\x08instance\"r\x0A\x1EBigQueryPropertyGraphReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Adataset_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1E\x0A\x11property_graph_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"W\x0A\x19PrivateLookerInstanceInfo\x12\x1A\x0A\x12looker_instance_id\x18\x01 \x01(\x09\x12\x1E\x0A\x16service_directory_name\x18\x02 \x01(\x09\"\x80\x06\x0A\x0ADatasource\x12c\x0A\x18bigquery_table_reference\x18\x01 \x01(\x0B2?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceH\x00\x12\x1E\x0A\x14studio_datasource_id\x18\x02 \x01(\x09H\x00\x12c\x0A\x18looker_explore_reference\x18\x04 \x01(\x0B2?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceH\x00\x12W\x0A\x12alloy_db_reference\x18\x0C \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceH\x00\x12V\x0A\x11spanner_reference\x18\x0D \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.SpannerReferenceH\x00\x12Y\x0A\x13cloud_sql_reference\x18\x0E \x01(\x0B2:.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceH\x00\x12t\x0A!bigquery_property_graph_reference\x18\x10 \x01(\x0B2G.google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReferenceH\x00\x12D\x0A\x06schema\x18\x07 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\x123\x0A\x0Dstruct_schema\x18\x0A \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01B\x0B\x0A\x09reference\"\xF7\x01\x0A\x06Schema\x12C\x0A\x06fields\x18\x01 \x03(\x0B2..google.cloud.geminidataanalytics.v1beta.FieldB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08synonyms\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x11\x0A\x04tags\x18\x04 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x05 \x01(\x09B\x03\xE0A\x01\x12I\x0A\x07filters\x18\x06 \x03(\x0B23.google.cloud.geminidataanalytics.v1beta.DataFilterB\x03\xE0A\x01\"\x99\x02\x0A\x05Field\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04type\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04mode\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08synonyms\x18\x06 \x03(\x09B\x03\xE0A\x01\x12\x11\x0A\x04tags\x18\x07 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x08 \x01(\x09B\x03\xE0A\x01\x12F\x0A\x09subfields\x18\x09 \x03(\x0B2..google.cloud.geminidataanalytics.v1beta.FieldB\x03\xE0A\x01\x12\x15\x0A\x08category\x18\x0A \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cvalue_format\x18\x0B \x01(\x09B\x03\xE0A\x01\"\x80\x01\x0A\x0ADataFilter\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x01\x12J\x0A\x04type\x18\x03 \x01(\x0E27.google.cloud.geminidataanalytics.v1beta.DataFilterTypeB\x03\xE0A\x01*E\x0A\x0EDataFilterType\x12 \x0A\x1CDATA_FILTER_TYPE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DALWAYS_FILTER\x10\x01B\xA0\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x0FDatasourceProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AgentContextReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AgentContextReference.php new file mode 100644 index 000000000000..c1957f9c5cc9 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AgentContextReference.php @@ -0,0 +1,67 @@ +google.cloud.geminidataanalytics.v1beta.AgentContextReference + */ +class AgentContextReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Context set ID to retrieve. + * + * Generated from protobuf field string context_set_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $context_set_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $context_set_id + * Required. Context set ID to retrieve. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\AgentContext::initOnce(); + parent::__construct($data); + } + + /** + * Required. Context set ID to retrieve. + * + * Generated from protobuf field string context_set_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getContextSetId() + { + return $this->context_set_id; + } + + /** + * Required. Context set ID to retrieve. + * + * Generated from protobuf field string context_set_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setContextSetId($var) + { + GPBUtil::checkString($var, True); + $this->context_set_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AlloyDbDatabaseReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AlloyDbDatabaseReference.php new file mode 100644 index 000000000000..823951187962 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AlloyDbDatabaseReference.php @@ -0,0 +1,279 @@ +google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference + */ +class AlloyDbDatabaseReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The project the instance belongs to. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $project_id = ''; + /** + * Required. The region of the instance. + * + * Generated from protobuf field string region = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $region = ''; + /** + * Required. The cluster id. + * + * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cluster_id = ''; + /** + * Required. The instance id. + * + * Generated from protobuf field string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $instance_id = ''; + /** + * Required. The database id. + * + * Generated from protobuf field string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $database_id = ''; + /** + * Optional. The table ids. Denotes all tables if unset. + * + * Generated from protobuf field repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $table_ids; + /** + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $database_table_references; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Required. The project the instance belongs to. + * @type string $region + * Required. The region of the instance. + * @type string $cluster_id + * Required. The cluster id. + * @type string $instance_id + * Required. The instance id. + * @type string $database_id + * Required. The database id. + * @type string[] $table_ids + * Optional. The table ids. Denotes all tables if unset. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference[] $database_table_references + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Required. The project the instance belongs to. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * Required. The project the instance belongs to. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Required. The region of the instance. + * + * Generated from protobuf field string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getRegion() + { + return $this->region; + } + + /** + * Required. The region of the instance. + * + * Generated from protobuf field string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setRegion($var) + { + GPBUtil::checkString($var, True); + $this->region = $var; + + return $this; + } + + /** + * Required. The cluster id. + * + * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getClusterId() + { + return $this->cluster_id; + } + + /** + * Required. The cluster id. + * + * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setClusterId($var) + { + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The instance id. + * + * Generated from protobuf field string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getInstanceId() + { + return $this->instance_id; + } + + /** + * Required. The instance id. + * + * Generated from protobuf field string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setInstanceId($var) + { + GPBUtil::checkString($var, True); + $this->instance_id = $var; + + return $this; + } + + /** + * Required. The database id. + * + * Generated from protobuf field string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDatabaseId() + { + return $this->database_id; + } + + /** + * Required. The database id. + * + * Generated from protobuf field string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDatabaseId($var) + { + GPBUtil::checkString($var, True); + $this->database_id = $var; + + return $this; + } + + /** + * Optional. The table ids. Denotes all tables if unset. + * + * Generated from protobuf field repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getTableIds() + { + return $this->table_ids; + } + + /** + * Optional. The table ids. Denotes all tables if unset. + * + * Generated from protobuf field repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setTableIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->table_ids = $arr; + + return $this; + } + + /** + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference> + */ + public function getDatabaseTableReferences() + { + return $this->database_table_references; + } + + /** + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference[] $var + * @return $this + */ + public function setDatabaseTableReferences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference::class); + $this->database_table_references = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AlloyDbReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AlloyDbReference.php new file mode 100644 index 000000000000..f1a6afda0dc6 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AlloyDbReference.php @@ -0,0 +1,126 @@ +google.cloud.geminidataanalytics.v1beta.AlloyDbReference + */ +class AlloyDbReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Singular proto that supports specifying which database and tables + * to include. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $database_reference = null; + /** + * Optional. Parameters for retrieving data from Agent Context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $agent_context_reference = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbDatabaseReference $database_reference + * Required. Singular proto that supports specifying which database and tables + * to include. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference $agent_context_reference + * Optional. Parameters for retrieving data from Agent Context. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Required. Singular proto that supports specifying which database and tables + * to include. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbDatabaseReference|null + */ + public function getDatabaseReference() + { + return $this->database_reference; + } + + public function hasDatabaseReference() + { + return isset($this->database_reference); + } + + public function clearDatabaseReference() + { + unset($this->database_reference); + } + + /** + * Required. Singular proto that supports specifying which database and tables + * to include. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbDatabaseReference $var + * @return $this + */ + public function setDatabaseReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbDatabaseReference::class); + $this->database_reference = $var; + + return $this; + } + + /** + * Optional. Parameters for retrieving data from Agent Context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference|null + */ + public function getAgentContextReference() + { + return $this->agent_context_reference; + } + + public function hasAgentContextReference() + { + return isset($this->agent_context_reference); + } + + public function clearAgentContextReference() + { + unset($this->agent_context_reference); + } + + /** + * Optional. Parameters for retrieving data from Agent Context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference $var + * @return $this + */ + public function setAgentContextReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference::class); + $this->agent_context_reference = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisEvent.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisEvent.php new file mode 100644 index 000000000000..33fcf75cb90e --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisEvent.php @@ -0,0 +1,372 @@ +google.cloud.geminidataanalytics.v1beta.AnalysisEvent + */ +class AnalysisEvent extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $planner_reasoning + * Python codegen planner's reasoning. + * @type string $coder_instruction + * Instructions issued for code generation. + * @type string $code + * Generated code. + * @type string $execution_output + * Output from code execution. + * @type string $execution_error + * An error from code execution. + * @type string $result_vega_chart_json + * Result as Vega chart JSON string. + * @type string $result_natural_language + * Result as NL string. + * @type string $result_csv_data + * Result as CSV string. + * @type string $result_reference_data + * Result as a reference to a data source. + * @type string $error + * A generic error message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Python codegen planner's reasoning. + * + * Generated from protobuf field string planner_reasoning = 2; + * @return string + */ + public function getPlannerReasoning() + { + return $this->readOneof(2); + } + + public function hasPlannerReasoning() + { + return $this->hasOneof(2); + } + + /** + * Python codegen planner's reasoning. + * + * Generated from protobuf field string planner_reasoning = 2; + * @param string $var + * @return $this + */ + public function setPlannerReasoning($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Instructions issued for code generation. + * + * Generated from protobuf field string coder_instruction = 3; + * @return string + */ + public function getCoderInstruction() + { + return $this->readOneof(3); + } + + public function hasCoderInstruction() + { + return $this->hasOneof(3); + } + + /** + * Instructions issued for code generation. + * + * Generated from protobuf field string coder_instruction = 3; + * @param string $var + * @return $this + */ + public function setCoderInstruction($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Generated code. + * + * Generated from protobuf field string code = 4; + * @return string + */ + public function getCode() + { + return $this->readOneof(4); + } + + public function hasCode() + { + return $this->hasOneof(4); + } + + /** + * Generated code. + * + * Generated from protobuf field string code = 4; + * @param string $var + * @return $this + */ + public function setCode($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Output from code execution. + * + * Generated from protobuf field string execution_output = 5; + * @return string + */ + public function getExecutionOutput() + { + return $this->readOneof(5); + } + + public function hasExecutionOutput() + { + return $this->hasOneof(5); + } + + /** + * Output from code execution. + * + * Generated from protobuf field string execution_output = 5; + * @param string $var + * @return $this + */ + public function setExecutionOutput($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * An error from code execution. + * + * Generated from protobuf field string execution_error = 6; + * @return string + */ + public function getExecutionError() + { + return $this->readOneof(6); + } + + public function hasExecutionError() + { + return $this->hasOneof(6); + } + + /** + * An error from code execution. + * + * Generated from protobuf field string execution_error = 6; + * @param string $var + * @return $this + */ + public function setExecutionError($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Result as Vega chart JSON string. + * + * Generated from protobuf field string result_vega_chart_json = 7; + * @return string + */ + public function getResultVegaChartJson() + { + return $this->readOneof(7); + } + + public function hasResultVegaChartJson() + { + return $this->hasOneof(7); + } + + /** + * Result as Vega chart JSON string. + * + * Generated from protobuf field string result_vega_chart_json = 7; + * @param string $var + * @return $this + */ + public function setResultVegaChartJson($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Result as NL string. + * + * Generated from protobuf field string result_natural_language = 8; + * @return string + */ + public function getResultNaturalLanguage() + { + return $this->readOneof(8); + } + + public function hasResultNaturalLanguage() + { + return $this->hasOneof(8); + } + + /** + * Result as NL string. + * + * Generated from protobuf field string result_natural_language = 8; + * @param string $var + * @return $this + */ + public function setResultNaturalLanguage($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Result as CSV string. + * + * Generated from protobuf field string result_csv_data = 9; + * @return string + */ + public function getResultCsvData() + { + return $this->readOneof(9); + } + + public function hasResultCsvData() + { + return $this->hasOneof(9); + } + + /** + * Result as CSV string. + * + * Generated from protobuf field string result_csv_data = 9; + * @param string $var + * @return $this + */ + public function setResultCsvData($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Result as a reference to a data source. + * + * Generated from protobuf field string result_reference_data = 10; + * @return string + */ + public function getResultReferenceData() + { + return $this->readOneof(10); + } + + public function hasResultReferenceData() + { + return $this->hasOneof(10); + } + + /** + * Result as a reference to a data source. + * + * Generated from protobuf field string result_reference_data = 10; + * @param string $var + * @return $this + */ + public function setResultReferenceData($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * A generic error message. + * + * Generated from protobuf field string error = 11; + * @return string + */ + public function getError() + { + return $this->readOneof(11); + } + + public function hasError() + { + return $this->hasOneof(11); + } + + /** + * A generic error message. + * + * Generated from protobuf field string error = 11; + * @param string $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisMessage.php new file mode 100644 index 000000000000..676970984b1d --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisMessage.php @@ -0,0 +1,108 @@ +google.cloud.geminidataanalytics.v1beta.AnalysisMessage + */ +class AnalysisMessage extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisQuery $query + * An analysis query. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisEvent $progress_event + * An event indicating the progress of the analysis. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * An analysis query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisQuery query = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisQuery|null + */ + public function getQuery() + { + return $this->readOneof(1); + } + + public function hasQuery() + { + return $this->hasOneof(1); + } + + /** + * An analysis query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisQuery query = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisQuery $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisQuery::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * An event indicating the progress of the analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisEvent progress_event = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisEvent|null + */ + public function getProgressEvent() + { + return $this->readOneof(2); + } + + public function hasProgressEvent() + { + return $this->hasOneof(2); + } + + /** + * An event indicating the progress of the analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisEvent progress_event = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisEvent $var + * @return $this + */ + public function setProgressEvent($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisEvent::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisOptions.php new file mode 100644 index 000000000000..ceb84b788342 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisOptions.php @@ -0,0 +1,77 @@ +google.cloud.geminidataanalytics.v1beta.AnalysisOptions + */ +class AnalysisOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Options for Python analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisOptions.Python python = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $python = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisOptions\Python $python + * Optional. Options for Python analysis. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Options for Python analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisOptions.Python python = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisOptions\Python|null + */ + public function getPython() + { + return $this->python; + } + + public function hasPython() + { + return isset($this->python); + } + + public function clearPython() + { + unset($this->python); + } + + /** + * Optional. Options for Python analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisOptions.Python python = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisOptions\Python $var + * @return $this + */ + public function setPython($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisOptions\Python::class); + $this->python = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisOptions/Python.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisOptions/Python.php new file mode 100644 index 000000000000..c32483caa3e4 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisOptions/Python.php @@ -0,0 +1,71 @@ +google.cloud.geminidataanalytics.v1beta.AnalysisOptions.Python + */ +class Python extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether to enable Python analysis. + * Defaults to false. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Optional. Whether to enable Python analysis. + * Defaults to false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether to enable Python analysis. + * Defaults to false. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Optional. Whether to enable Python analysis. + * Defaults to false. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisQuery.php new file mode 100644 index 000000000000..e3d37c48964e --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisQuery.php @@ -0,0 +1,101 @@ +google.cloud.geminidataanalytics.v1beta.AnalysisQuery + */ +class AnalysisQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. An analysis question to help answer the user's original question. + * + * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $question = ''; + /** + * Optional. The names of previously retrieved data results to analyze. + * + * Generated from protobuf field repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $data_result_names; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $question + * Optional. An analysis question to help answer the user's original question. + * @type string[] $data_result_names + * Optional. The names of previously retrieved data results to analyze. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. An analysis question to help answer the user's original question. + * + * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getQuestion() + { + return $this->question; + } + + /** + * Optional. An analysis question to help answer the user's original question. + * + * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setQuestion($var) + { + GPBUtil::checkString($var, True); + $this->question = $var; + + return $this; + } + + /** + * Optional. The names of previously retrieved data results to analyze. + * + * Generated from protobuf field repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getDataResultNames() + { + return $this->data_result_names; + } + + /** + * Optional. The names of previously retrieved data results to analyze. + * + * Generated from protobuf field repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setDataResultNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->data_result_names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryJob.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryJob.php new file mode 100644 index 000000000000..9e85bf2007d9 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryJob.php @@ -0,0 +1,263 @@ +google.cloud.geminidataanalytics.v1beta.BigQueryJob + */ +class BigQueryJob extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The project that the job belongs to. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $project_id = ''; + /** + * Required. The ID of the job. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * + * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $job_id = ''; + /** + * Optional. The location of the job. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * + * Generated from protobuf field string location = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $location = ''; + /** + * Optional. A reference to the destination table of the job's query results. + * See + * [JobConfigurationQuery](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference destination_table = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $destination_table = null; + /** + * Optional. The schema of the job's query results. + * See + * [JobStatistics2](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobstatistics2). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $schema = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Required. The project that the job belongs to. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * @type string $job_id + * Required. The ID of the job. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * @type string $location + * Optional. The location of the job. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference $destination_table + * Optional. A reference to the destination table of the job's query results. + * See + * [JobConfigurationQuery](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery). + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $schema + * Optional. The schema of the job's query results. + * See + * [JobStatistics2](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobstatistics2). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The project that the job belongs to. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * Required. The project that the job belongs to. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Required. The ID of the job. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * + * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getJobId() + { + return $this->job_id; + } + + /** + * Required. The ID of the job. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * + * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setJobId($var) + { + GPBUtil::checkString($var, True); + $this->job_id = $var; + + return $this; + } + + /** + * Optional. The location of the job. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * + * Generated from protobuf field string location = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Optional. The location of the job. + * See + * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). + * + * Generated from protobuf field string location = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * Optional. A reference to the destination table of the job's query results. + * See + * [JobConfigurationQuery](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference destination_table = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference|null + */ + public function getDestinationTable() + { + return $this->destination_table; + } + + public function hasDestinationTable() + { + return isset($this->destination_table); + } + + public function clearDestinationTable() + { + unset($this->destination_table); + } + + /** + * Optional. A reference to the destination table of the job's query results. + * See + * [JobConfigurationQuery](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference destination_table = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference $var + * @return $this + */ + public function setDestinationTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference::class); + $this->destination_table = $var; + + return $this; + } + + /** + * Optional. The schema of the job's query results. + * See + * [JobStatistics2](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobstatistics2). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Schema|null + */ + public function getSchema() + { + return $this->schema; + } + + public function hasSchema() + { + return isset($this->schema); + } + + public function clearSchema() + { + unset($this->schema); + } + + /** + * Optional. The schema of the job's query results. + * See + * [JobStatistics2](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobstatistics2). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Schema::class); + $this->schema = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryPropertyGraphReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryPropertyGraphReference.php new file mode 100644 index 000000000000..cd0cc5dc319d --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryPropertyGraphReference.php @@ -0,0 +1,135 @@ +google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReference + */ +class BigQueryPropertyGraphReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The project that the property graph belongs to. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $project_id = ''; + /** + * Required. The dataset that the property graph belongs to. + * + * Generated from protobuf field string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $dataset_id = ''; + /** + * Required. The property graph id. + * + * Generated from protobuf field string property_graph_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $property_graph_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Required. The project that the property graph belongs to. + * @type string $dataset_id + * Required. The dataset that the property graph belongs to. + * @type string $property_graph_id + * Required. The property graph id. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Required. The project that the property graph belongs to. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * Required. The project that the property graph belongs to. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Required. The dataset that the property graph belongs to. + * + * Generated from protobuf field string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDatasetId() + { + return $this->dataset_id; + } + + /** + * Required. The dataset that the property graph belongs to. + * + * Generated from protobuf field string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDatasetId($var) + { + GPBUtil::checkString($var, True); + $this->dataset_id = $var; + + return $this; + } + + /** + * Required. The property graph id. + * + * Generated from protobuf field string property_graph_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPropertyGraphId() + { + return $this->property_graph_id; + } + + /** + * Required. The property graph id. + * + * Generated from protobuf field string property_graph_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPropertyGraphId($var) + { + GPBUtil::checkString($var, True); + $this->property_graph_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryRoutine.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryRoutine.php new file mode 100644 index 000000000000..ca52abb168f9 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryRoutine.php @@ -0,0 +1,115 @@ +google.cloud.geminidataanalytics.v1beta.BigQueryRoutine + */ +class BigQueryRoutine extends \Google\Protobuf\Internal\Message +{ + /** + * The reference to the BigQuery routine. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryRoutineReference routine_reference = 1; + */ + protected $routine_reference = null; + /** + * User override or addition to description, to tell the agent when to use the + * UDF. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryRoutineReference $routine_reference + * The reference to the BigQuery routine. + * @type string $description + * User override or addition to description, to tell the agent when to use the + * UDF. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * The reference to the BigQuery routine. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryRoutineReference routine_reference = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryRoutineReference|null + */ + public function getRoutineReference() + { + return $this->routine_reference; + } + + public function hasRoutineReference() + { + return isset($this->routine_reference); + } + + public function clearRoutineReference() + { + unset($this->routine_reference); + } + + /** + * The reference to the BigQuery routine. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryRoutineReference routine_reference = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryRoutineReference $var + * @return $this + */ + public function setRoutineReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryRoutineReference::class); + $this->routine_reference = $var; + + return $this; + } + + /** + * User override or addition to description, to tell the agent when to use the + * UDF. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * User override or addition to description, to tell the agent when to use the + * UDF. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryRoutineReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryRoutineReference.php new file mode 100644 index 000000000000..38628b7018c5 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryRoutineReference.php @@ -0,0 +1,135 @@ +google.cloud.geminidataanalytics.v1beta.BigQueryRoutineReference + */ +class BigQueryRoutineReference extends \Google\Protobuf\Internal\Message +{ + /** + * The project ID of the routine. + * + * Generated from protobuf field string project_id = 1; + */ + protected $project_id = ''; + /** + * The dataset ID of the routine. + * + * Generated from protobuf field string dataset_id = 2; + */ + protected $dataset_id = ''; + /** + * The routine ID of the routine. + * + * Generated from protobuf field string routine_id = 3; + */ + protected $routine_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * The project ID of the routine. + * @type string $dataset_id + * The dataset ID of the routine. + * @type string $routine_id + * The routine ID of the routine. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * The project ID of the routine. + * + * Generated from protobuf field string project_id = 1; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * The project ID of the routine. + * + * Generated from protobuf field string project_id = 1; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * The dataset ID of the routine. + * + * Generated from protobuf field string dataset_id = 2; + * @return string + */ + public function getDatasetId() + { + return $this->dataset_id; + } + + /** + * The dataset ID of the routine. + * + * Generated from protobuf field string dataset_id = 2; + * @param string $var + * @return $this + */ + public function setDatasetId($var) + { + GPBUtil::checkString($var, True); + $this->dataset_id = $var; + + return $this; + } + + /** + * The routine ID of the routine. + * + * Generated from protobuf field string routine_id = 3; + * @return string + */ + public function getRoutineId() + { + return $this->routine_id; + } + + /** + * The routine ID of the routine. + * + * Generated from protobuf field string routine_id = 3; + * @param string $var + * @return $this + */ + public function setRoutineId($var) + { + GPBUtil::checkString($var, True); + $this->routine_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryTableReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryTableReference.php new file mode 100644 index 000000000000..ec6fc3fa2e71 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryTableReference.php @@ -0,0 +1,179 @@ +google.cloud.geminidataanalytics.v1beta.BigQueryTableReference + */ +class BigQueryTableReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The project that the table belongs to. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $project_id = ''; + /** + * Required. The dataset that the table belongs to. + * + * Generated from protobuf field string dataset_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $dataset_id = ''; + /** + * Required. The table id. + * + * Generated from protobuf field string table_id = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $table_id = ''; + /** + * Optional. The schema of the datasource. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $schema = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Required. The project that the table belongs to. + * @type string $dataset_id + * Required. The dataset that the table belongs to. + * @type string $table_id + * Required. The table id. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $schema + * Optional. The schema of the datasource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Required. The project that the table belongs to. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * Required. The project that the table belongs to. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Required. The dataset that the table belongs to. + * + * Generated from protobuf field string dataset_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDatasetId() + { + return $this->dataset_id; + } + + /** + * Required. The dataset that the table belongs to. + * + * Generated from protobuf field string dataset_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDatasetId($var) + { + GPBUtil::checkString($var, True); + $this->dataset_id = $var; + + return $this; + } + + /** + * Required. The table id. + * + * Generated from protobuf field string table_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTableId() + { + return $this->table_id; + } + + /** + * Required. The table id. + * + * Generated from protobuf field string table_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTableId($var) + { + GPBUtil::checkString($var, True); + $this->table_id = $var; + + return $this; + } + + /** + * Optional. The schema of the datasource. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Schema|null + */ + public function getSchema() + { + return $this->schema; + } + + public function hasSchema() + { + return isset($this->schema); + } + + public function clearSchema() + { + unset($this->schema); + } + + /** + * Optional. The schema of the datasource. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Schema::class); + $this->schema = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryTableReferences.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryTableReferences.php new file mode 100644 index 000000000000..1bcd78e05ae5 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryTableReferences.php @@ -0,0 +1,115 @@ +google.cloud.geminidataanalytics.v1beta.BigQueryTableReferences + */ +class BigQueryTableReferences extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. References to BigQuery tables. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference table_references = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $table_references; + /** + * Optional. Preview feature. References to BigQuery property graphs. + * Note: Data sources must exclusively use either tables or property graphs, + * not both. When using property graphs, a maximum of one graph reference is + * supported. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReference property_graph_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $property_graph_references; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference[] $table_references + * Optional. References to BigQuery tables. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference[] $property_graph_references + * Optional. Preview feature. References to BigQuery property graphs. + * Note: Data sources must exclusively use either tables or property graphs, + * not both. When using property graphs, a maximum of one graph reference is + * supported. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Optional. References to BigQuery tables. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference table_references = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference> + */ + public function getTableReferences() + { + return $this->table_references; + } + + /** + * Optional. References to BigQuery tables. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference table_references = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference[] $var + * @return $this + */ + public function setTableReferences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference::class); + $this->table_references = $arr; + + return $this; + } + + /** + * Optional. Preview feature. References to BigQuery property graphs. + * Note: Data sources must exclusively use either tables or property graphs, + * not both. When using property graphs, a maximum of one graph reference is + * supported. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReference property_graph_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference> + */ + public function getPropertyGraphReferences() + { + return $this->property_graph_references; + } + + /** + * Optional. Preview feature. References to BigQuery property graphs. + * Note: Data sources must exclusively use either tables or property graphs, + * not both. When using property graphs, a maximum of one graph reference is + * supported. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReference property_graph_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference[] $var + * @return $this + */ + public function setPropertyGraphReferences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference::class); + $this->property_graph_references = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Blob.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Blob.php new file mode 100644 index 000000000000..663a7de8ea85 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Blob.php @@ -0,0 +1,101 @@ +google.cloud.geminidataanalytics.v1beta.Blob + */ +class Blob extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The IANA standard MIME type of the message data. + * + * Generated from protobuf field string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $mime_type = ''; + /** + * Required. The data represented as bytes. + * + * Generated from protobuf field bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $mime_type + * Required. The IANA standard MIME type of the message data. + * @type string $data + * Required. The data represented as bytes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The IANA standard MIME type of the message data. + * + * Generated from protobuf field string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getMimeType() + { + return $this->mime_type; + } + + /** + * Required. The IANA standard MIME type of the message data. + * + * Generated from protobuf field string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setMimeType($var) + { + GPBUtil::checkString($var, True); + $this->mime_type = $var; + + return $this; + } + + /** + * Required. The data represented as bytes. + * + * Generated from protobuf field bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getData() + { + return $this->data; + } + + /** + * Required. The data represented as bytes. + * + * Generated from protobuf field bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setData($var) + { + GPBUtil::checkString($var, False); + $this->data = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartMessage.php new file mode 100644 index 000000000000..47759cc581e6 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartMessage.php @@ -0,0 +1,108 @@ +google.cloud.geminidataanalytics.v1beta.ChartMessage + */ +class ChartMessage extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ChartQuery $query + * A query for generating a chart. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ChartResult $result + * The result of a chart generation query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * A query for generating a chart. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartQuery query = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ChartQuery|null + */ + public function getQuery() + { + return $this->readOneof(1); + } + + public function hasQuery() + { + return $this->hasOneof(1); + } + + /** + * A query for generating a chart. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartQuery query = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ChartQuery $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChartQuery::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The result of a chart generation query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartResult result = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ChartResult|null + */ + public function getResult() + { + return $this->readOneof(2); + } + + public function hasResult() + { + return $this->hasOneof(2); + } + + /** + * The result of a chart generation query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartResult result = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ChartResult $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChartResult::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions.php new file mode 100644 index 000000000000..cb66ad2b3ed5 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions.php @@ -0,0 +1,81 @@ +google.cloud.geminidataanalytics.v1beta.ChartOptions + */ +class ChartOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. When specified, the agent will render generated charts using the + * provided format. Defaults to no image. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions image = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $image = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions $image + * Optional. When specified, the agent will render generated charts using the + * provided format. Defaults to no image. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * Optional. When specified, the agent will render generated charts using the + * provided format. Defaults to no image. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions|null + */ + public function getImage() + { + return $this->image; + } + + public function hasImage() + { + return isset($this->image); + } + + public function clearImage() + { + unset($this->image); + } + + /** + * Optional. When specified, the agent will render generated charts using the + * provided format. Defaults to no image. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions $var + * @return $this + */ + public function setImage($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions::class); + $this->image = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions.php new file mode 100644 index 000000000000..726eb5a22e21 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions.php @@ -0,0 +1,108 @@ +google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions + */ +class ImageOptions extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions\NoImage $no_image + * No image. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions\SvgOptions $svg + * SVG format. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * No image. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImage no_image = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions\NoImage|null + */ + public function getNoImage() + { + return $this->readOneof(1); + } + + public function hasNoImage() + { + return $this->hasOneof(1); + } + + /** + * No image. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImage no_image = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions\NoImage $var + * @return $this + */ + public function setNoImage($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions\NoImage::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * SVG format. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.SvgOptions svg = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions\SvgOptions|null + */ + public function getSvg() + { + return $this->readOneof(2); + } + + public function hasSvg() + { + return $this->hasOneof(2); + } + + /** + * SVG format. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.SvgOptions svg = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions\SvgOptions $var + * @return $this + */ + public function setSvg($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions\SvgOptions::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions/NoImage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions/NoImage.php new file mode 100644 index 000000000000..0aeb01e41cdf --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions/NoImage.php @@ -0,0 +1,33 @@ +google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImage + */ +class NoImage extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions/SvgOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions/SvgOptions.php new file mode 100644 index 000000000000..ddb14ec7a43b --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions/SvgOptions.php @@ -0,0 +1,33 @@ +google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.SvgOptions + */ +class SvgOptions extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartQuery.php new file mode 100644 index 000000000000..e0a8c4690112 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartQuery.php @@ -0,0 +1,105 @@ +google.cloud.geminidataanalytics.v1beta.ChartQuery + */ +class ChartQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Natural language instructions for generating the chart. + * + * Generated from protobuf field string instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $instructions = ''; + /** + * Optional. The name of a previously retrieved data result to use in the + * chart. + * + * Generated from protobuf field string data_result_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_result_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $instructions + * Optional. Natural language instructions for generating the chart. + * @type string $data_result_name + * Optional. The name of a previously retrieved data result to use in the + * chart. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Natural language instructions for generating the chart. + * + * Generated from protobuf field string instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getInstructions() + { + return $this->instructions; + } + + /** + * Optional. Natural language instructions for generating the chart. + * + * Generated from protobuf field string instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setInstructions($var) + { + GPBUtil::checkString($var, True); + $this->instructions = $var; + + return $this; + } + + /** + * Optional. The name of a previously retrieved data result to use in the + * chart. + * + * Generated from protobuf field string data_result_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDataResultName() + { + return $this->data_result_name; + } + + /** + * Optional. The name of a previously retrieved data result to use in the + * chart. + * + * Generated from protobuf field string data_result_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDataResultName($var) + { + GPBUtil::checkString($var, True); + $this->data_result_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartResult.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartResult.php new file mode 100644 index 000000000000..fb40cd5844f8 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartResult.php @@ -0,0 +1,125 @@ +google.cloud.geminidataanalytics.v1beta.ChartResult + */ +class ChartResult extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A generated Vega chart config. + * See https://vega.github.io/vega/docs/config/ + * + * Generated from protobuf field .google.protobuf.Struct vega_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $vega_config = null; + /** + * Optional. A rendering of the chart if this was requested in the context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Blob image = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $image = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Struct $vega_config + * Optional. A generated Vega chart config. + * See https://vega.github.io/vega/docs/config/ + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Blob $image + * Optional. A rendering of the chart if this was requested in the context. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A generated Vega chart config. + * See https://vega.github.io/vega/docs/config/ + * + * Generated from protobuf field .google.protobuf.Struct vega_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Struct|null + */ + public function getVegaConfig() + { + return $this->vega_config; + } + + public function hasVegaConfig() + { + return isset($this->vega_config); + } + + public function clearVegaConfig() + { + unset($this->vega_config); + } + + /** + * Optional. A generated Vega chart config. + * See https://vega.github.io/vega/docs/config/ + * + * Generated from protobuf field .google.protobuf.Struct vega_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setVegaConfig($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->vega_config = $var; + + return $this; + } + + /** + * Optional. A rendering of the chart if this was requested in the context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Blob image = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Blob|null + */ + public function getImage() + { + return $this->image; + } + + public function hasImage() + { + return isset($this->image); + } + + public function clearImage() + { + unset($this->image); + } + + /** + * Optional. A rendering of the chart if this was requested in the context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Blob image = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Blob $var + * @return $this + */ + public function setImage($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Blob::class); + $this->image = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest.php new file mode 100644 index 000000000000..035f020fa760 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest.php @@ -0,0 +1,498 @@ +google.cloud.geminidataanalytics.v1beta.ChatRequest + */ +class ChatRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Deprecated: Use `parent` field instead. + * The Google Cloud project to be used for quota and billing. + * + * Generated from protobuf field string project = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @deprecated + */ + protected $project = ''; + /** + * Required. The parent value for chat request. + * Pattern: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Required. Content of current conversation. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Message messages = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $messages; + /** + * Optional. The credentials to use when calling the data source(s) specified + * in the context. + * This field can be used to provide credentials for various data sources. + * For example, when connecting to Looker, it currently supports both OAuth + * token and API key-based credentials, as described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $credentials = null; + /** + * Optional. The thinking mode to use for the agent loop. + * Defaults to THINKING_MODE_UNSPECIFIED if not specified. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChatRequest.ThinkingMode thinking_mode = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $thinking_mode = 0; + /** + * Optional. The model to use for the agent loop when processing the request. + * This setting only has an effect when context.options.model is not set. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChatRequest.Model model = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $model = 0; + protected $context_provider; + protected $datasource_settings; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Context $inline_context + * Optional. Inline context for the chat request. Use this to chat + * statelessly (without managed conversation persistence and without an + * Agent) by passing all context inline. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationReference $conversation_reference + * Optional. Reference to a persisted conversation and agent context. + * Use this to chat with an Agent using managed conversation persistence. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgentContext $data_agent_context + * Optional. Context for the chat request. Use this to chat with an Agent + * statelessly, without managed conversation persistence. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ClientManagedResourceContext $client_managed_resource_context + * Optional. Context with client managed resources. + * Some clients may not use GDA managed resources including + * conversations and agents, instead they create and manage their own + * conversations and agents resources. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerSettings $looker_settings + * Optional. Looker specific settings. + * @type string $project + * Optional. Deprecated: Use `parent` field instead. + * The Google Cloud project to be used for quota and billing. + * @type string $parent + * Required. The parent value for chat request. + * Pattern: `projects/{project}/locations/{location}` + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Message[] $messages + * Required. Content of current conversation. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials $credentials + * Optional. The credentials to use when calling the data source(s) specified + * in the context. + * This field can be used to provide credentials for various data sources. + * For example, when connecting to Looker, it currently supports both OAuth + * token and API key-based credentials, as described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * @type int $thinking_mode + * Optional. The thinking mode to use for the agent loop. + * Defaults to THINKING_MODE_UNSPECIFIED if not specified. + * @type int $model + * Optional. The model to use for the agent loop when processing the request. + * This setting only has an effect when context.options.model is not set. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Inline context for the chat request. Use this to chat + * statelessly (without managed conversation persistence and without an + * Agent) by passing all context inline. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context inline_context = 101 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Context|null + */ + public function getInlineContext() + { + return $this->readOneof(101); + } + + public function hasInlineContext() + { + return $this->hasOneof(101); + } + + /** + * Optional. Inline context for the chat request. Use this to chat + * statelessly (without managed conversation persistence and without an + * Agent) by passing all context inline. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context inline_context = 101 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Context $var + * @return $this + */ + public function setInlineContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Context::class); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * Optional. Reference to a persisted conversation and agent context. + * Use this to chat with an Agent using managed conversation persistence. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ConversationReference conversation_reference = 103 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationReference|null + */ + public function getConversationReference() + { + return $this->readOneof(103); + } + + public function hasConversationReference() + { + return $this->hasOneof(103); + } + + /** + * Optional. Reference to a persisted conversation and agent context. + * Use this to chat with an Agent using managed conversation persistence. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ConversationReference conversation_reference = 103 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationReference $var + * @return $this + */ + public function setConversationReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationReference::class); + $this->writeOneof(103, $var); + + return $this; + } + + /** + * Optional. Context for the chat request. Use this to chat with an Agent + * statelessly, without managed conversation persistence. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 104 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgentContext|null + */ + public function getDataAgentContext() + { + return $this->readOneof(104); + } + + public function hasDataAgentContext() + { + return $this->hasOneof(104); + } + + /** + * Optional. Context for the chat request. Use this to chat with an Agent + * statelessly, without managed conversation persistence. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 104 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgentContext $var + * @return $this + */ + public function setDataAgentContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgentContext::class); + $this->writeOneof(104, $var); + + return $this; + } + + /** + * Optional. Context with client managed resources. + * Some clients may not use GDA managed resources including + * conversations and agents, instead they create and manage their own + * conversations and agents resources. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ClientManagedResourceContext|null + */ + public function getClientManagedResourceContext() + { + return $this->readOneof(105); + } + + public function hasClientManagedResourceContext() + { + return $this->hasOneof(105); + } + + /** + * Optional. Context with client managed resources. + * Some clients may not use GDA managed resources including + * conversations and agents, instead they create and manage their own + * conversations and agents resources. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ClientManagedResourceContext $var + * @return $this + */ + public function setClientManagedResourceContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ClientManagedResourceContext::class); + $this->writeOneof(105, $var); + + return $this; + } + + /** + * Optional. Looker specific settings. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerSettings looker_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\LookerSettings|null + */ + public function getLookerSettings() + { + return $this->readOneof(13); + } + + public function hasLookerSettings() + { + return $this->hasOneof(13); + } + + /** + * Optional. Looker specific settings. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerSettings looker_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerSettings $var + * @return $this + */ + public function setLookerSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerSettings::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Optional. Deprecated: Use `parent` field instead. + * The Google Cloud project to be used for quota and billing. + * + * Generated from protobuf field string project = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + * @deprecated + */ + public function getProject() + { + if ($this->project !== '') { + @trigger_error('project is deprecated.', E_USER_DEPRECATED); + } + return $this->project; + } + + /** + * Optional. Deprecated: Use `parent` field instead. + * The Google Cloud project to be used for quota and billing. + * + * Generated from protobuf field string project = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + * @deprecated + */ + public function setProject($var) + { + @trigger_error('project is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project = $var; + + return $this; + } + + /** + * Required. The parent value for chat request. + * Pattern: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent value for chat request. + * Pattern: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Content of current conversation. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Message messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\Message> + */ + public function getMessages() + { + return $this->messages; + } + + /** + * Required. Content of current conversation. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Message messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Message[] $var + * @return $this + */ + public function setMessages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\Message::class); + $this->messages = $arr; + + return $this; + } + + /** + * Optional. The credentials to use when calling the data source(s) specified + * in the context. + * This field can be used to provide credentials for various data sources. + * For example, when connecting to Looker, it currently supports both OAuth + * token and API key-based credentials, as described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials|null + */ + public function getCredentials() + { + return $this->credentials; + } + + public function hasCredentials() + { + return isset($this->credentials); + } + + public function clearCredentials() + { + unset($this->credentials); + } + + /** + * Optional. The credentials to use when calling the data source(s) specified + * in the context. + * This field can be used to provide credentials for various data sources. + * For example, when connecting to Looker, it currently supports both OAuth + * token and API key-based credentials, as described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials $var + * @return $this + */ + public function setCredentials($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials::class); + $this->credentials = $var; + + return $this; + } + + /** + * Optional. The thinking mode to use for the agent loop. + * Defaults to THINKING_MODE_UNSPECIFIED if not specified. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChatRequest.ThinkingMode thinking_mode = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getThinkingMode() + { + return $this->thinking_mode; + } + + /** + * Optional. The thinking mode to use for the agent loop. + * Defaults to THINKING_MODE_UNSPECIFIED if not specified. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChatRequest.ThinkingMode thinking_mode = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setThinkingMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChatRequest\ThinkingMode::class); + $this->thinking_mode = $var; + + return $this; + } + + /** + * Optional. The model to use for the agent loop when processing the request. + * This setting only has an effect when context.options.model is not set. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChatRequest.Model model = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getModel() + { + return $this->model; + } + + /** + * Optional. The model to use for the agent loop when processing the request. + * This setting only has an effect when context.options.model is not set. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChatRequest.Model model = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setModel($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChatRequest\Model::class); + $this->model = $var; + + return $this; + } + + /** + * @return string + */ + public function getContextProvider() + { + return $this->whichOneof("context_provider"); + } + + /** + * @return string + */ + public function getDatasourceSettings() + { + return $this->whichOneof("datasource_settings"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest/Model.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest/Model.php new file mode 100644 index 000000000000..d47e3104e61a --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest/Model.php @@ -0,0 +1,55 @@ +google.cloud.geminidataanalytics.v1beta.ChatRequest.Model + */ +class Model +{ + /** + * No model specified. The default model will be used. + * + * Generated from protobuf enum MODEL_UNSPECIFIED = 0; + */ + const MODEL_UNSPECIFIED = 0; + /** + * Use the most up-to-date non-preview model. This may constrain certain + * request level settings. + * + * Generated from protobuf enum LATEST_GA_MODEL = 1; + */ + const LATEST_GA_MODEL = 1; + + private static $valueToName = [ + self::MODEL_UNSPECIFIED => 'MODEL_UNSPECIFIED', + self::LATEST_GA_MODEL => 'LATEST_GA_MODEL', + ]; + + 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest/ThinkingMode.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest/ThinkingMode.php new file mode 100644 index 000000000000..4509217a99cd --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest/ThinkingMode.php @@ -0,0 +1,61 @@ +google.cloud.geminidataanalytics.v1beta.ChatRequest.ThinkingMode + */ +class ThinkingMode +{ + /** + * Unspecified thinking mode, agent will use THINKING mode by default. + * + * Generated from protobuf enum THINKING_MODE_UNSPECIFIED = 0; + */ + const THINKING_MODE_UNSPECIFIED = 0; + /** + * Fast mode, answers quickly. + * + * Generated from protobuf enum FAST = 1; + */ + const FAST = 1; + /** + * Thinking mode, solves complex problems. + * + * Generated from protobuf enum THINKING = 2; + */ + const THINKING = 2; + + private static $valueToName = [ + self::THINKING_MODE_UNSPECIFIED => 'THINKING_MODE_UNSPECIFIED', + self::FAST => 'FAST', + self::THINKING => 'THINKING', + ]; + + 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Citation.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Citation.php new file mode 100644 index 000000000000..69fe0a7da556 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Citation.php @@ -0,0 +1,101 @@ +google.cloud.geminidataanalytics.v1beta.Citation + */ +class Citation extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. List of the sources being cited. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.CitationSource sources = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $sources; + /** + * Output only. List of the anchors of the citations. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.CitationAnchor anchors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $anchors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\CitationSource[] $sources + * Output only. List of the sources being cited. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\CitationAnchor[] $anchors + * Output only. List of the anchors of the citations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * Output only. List of the sources being cited. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.CitationSource sources = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\CitationSource> + */ + public function getSources() + { + return $this->sources; + } + + /** + * Output only. List of the sources being cited. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.CitationSource sources = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\CitationSource[] $var + * @return $this + */ + public function setSources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\CitationSource::class); + $this->sources = $arr; + + return $this; + } + + /** + * Output only. List of the anchors of the citations. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.CitationAnchor anchors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\CitationAnchor> + */ + public function getAnchors() + { + return $this->anchors; + } + + /** + * Output only. List of the anchors of the citations. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.CitationAnchor anchors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\CitationAnchor[] $var + * @return $this + */ + public function setAnchors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\CitationAnchor::class); + $this->anchors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CitationAnchor.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CitationAnchor.php new file mode 100644 index 000000000000..e76c1130dc1e --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CitationAnchor.php @@ -0,0 +1,75 @@ +google.cloud.geminidataanalytics.v1beta.CitationAnchor + */ +class CitationAnchor extends \Google\Protobuf\Internal\Message +{ + protected $anchor_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\CitationAnchor\TextMessageCitationAnchor $text_message_anchor + * Output only. Only set if the citation is for a TextMessage. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Only set if the citation is for a TextMessage. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CitationAnchor.TextMessageCitationAnchor text_message_anchor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\CitationAnchor\TextMessageCitationAnchor|null + */ + public function getTextMessageAnchor() + { + return $this->readOneof(1); + } + + public function hasTextMessageAnchor() + { + return $this->hasOneof(1); + } + + /** + * Output only. Only set if the citation is for a TextMessage. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CitationAnchor.TextMessageCitationAnchor text_message_anchor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\CitationAnchor\TextMessageCitationAnchor $var + * @return $this + */ + public function setTextMessageAnchor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\CitationAnchor\TextMessageCitationAnchor::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getAnchorType() + { + return $this->whichOneof("anchor_type"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CitationAnchor/TextMessageCitationAnchor.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CitationAnchor/TextMessageCitationAnchor.php new file mode 100644 index 000000000000..b151c8ba21f0 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CitationAnchor/TextMessageCitationAnchor.php @@ -0,0 +1,197 @@ +google.cloud.geminidataanalytics.v1beta.CitationAnchor.TextMessageCitationAnchor + */ +class TextMessageCitationAnchor extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The 0-based index of the part within the TextMessage.parts + * field. + * + * Generated from protobuf field int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $part_index = 0; + /** + * Output only. The offset, measured in UTF-8 bytes, within the part string + * where the citation begins (inclusive). Example: For the text "Hello, + * world" where "world" is cited, the start offset bytes (inclusive) is 7 + * and the end offset bytes (exclusive) is 12. + * + * Generated from protobuf field int32 start_offset_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_offset_bytes = 0; + /** + * Output only. The offset, measured in UTF-8 bytes, within the part string + * where the citation ends (exclusive). Example: For the text "Hello, world" + * where "world" is cited, the start offset bytes (inclusive) is 7 and the + * end offset bytes (exclusive) is 12. + * + * Generated from protobuf field int32 end_offset_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_offset_bytes = 0; + /** + * Output only. The ids of the sources that are cited. + * + * Generated from protobuf field repeated string source_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $source_ids; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $part_index + * Output only. The 0-based index of the part within the TextMessage.parts + * field. + * @type int $start_offset_bytes + * Output only. The offset, measured in UTF-8 bytes, within the part string + * where the citation begins (inclusive). Example: For the text "Hello, + * world" where "world" is cited, the start offset bytes (inclusive) is 7 + * and the end offset bytes (exclusive) is 12. + * @type int $end_offset_bytes + * Output only. The offset, measured in UTF-8 bytes, within the part string + * where the citation ends (exclusive). Example: For the text "Hello, world" + * where "world" is cited, the start offset bytes (inclusive) is 7 and the + * end offset bytes (exclusive) is 12. + * @type string[] $source_ids + * Output only. The ids of the sources that are cited. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The 0-based index of the part within the TextMessage.parts + * field. + * + * Generated from protobuf field int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getPartIndex() + { + return $this->part_index; + } + + /** + * Output only. The 0-based index of the part within the TextMessage.parts + * field. + * + * Generated from protobuf field int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setPartIndex($var) + { + GPBUtil::checkInt32($var); + $this->part_index = $var; + + return $this; + } + + /** + * Output only. The offset, measured in UTF-8 bytes, within the part string + * where the citation begins (inclusive). Example: For the text "Hello, + * world" where "world" is cited, the start offset bytes (inclusive) is 7 + * and the end offset bytes (exclusive) is 12. + * + * Generated from protobuf field int32 start_offset_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStartOffsetBytes() + { + return $this->start_offset_bytes; + } + + /** + * Output only. The offset, measured in UTF-8 bytes, within the part string + * where the citation begins (inclusive). Example: For the text "Hello, + * world" where "world" is cited, the start offset bytes (inclusive) is 7 + * and the end offset bytes (exclusive) is 12. + * + * Generated from protobuf field int32 start_offset_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStartOffsetBytes($var) + { + GPBUtil::checkInt32($var); + $this->start_offset_bytes = $var; + + return $this; + } + + /** + * Output only. The offset, measured in UTF-8 bytes, within the part string + * where the citation ends (exclusive). Example: For the text "Hello, world" + * where "world" is cited, the start offset bytes (inclusive) is 7 and the + * end offset bytes (exclusive) is 12. + * + * Generated from protobuf field int32 end_offset_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getEndOffsetBytes() + { + return $this->end_offset_bytes; + } + + /** + * Output only. The offset, measured in UTF-8 bytes, within the part string + * where the citation ends (exclusive). Example: For the text "Hello, world" + * where "world" is cited, the start offset bytes (inclusive) is 7 and the + * end offset bytes (exclusive) is 12. + * + * Generated from protobuf field int32 end_offset_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setEndOffsetBytes($var) + { + GPBUtil::checkInt32($var); + $this->end_offset_bytes = $var; + + return $this; + } + + /** + * Output only. The ids of the sources that are cited. + * + * Generated from protobuf field repeated string source_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getSourceIds() + { + return $this->source_ids; + } + + /** + * Output only. The ids of the sources that are cited. + * + * Generated from protobuf field repeated string source_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string[] $var + * @return $this + */ + public function setSourceIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->source_ids = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CitationSource.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CitationSource.php new file mode 100644 index 000000000000..ec63aebb08b9 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CitationSource.php @@ -0,0 +1,213 @@ +google.cloud.geminidataanalytics.v1beta.CitationSource + */ +class CitationSource extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Unique identifier of the source. This ID is service-generated + * and is unique within the scope of a single `Citation` message. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $id = ''; + /** + * Output only. The title of the source. + * + * Generated from protobuf field string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $title = ''; + protected $source_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $uri + * Output only. The uri used as the source, such as a web grounding URL. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery $example_query + * Output only. The example query used as the source. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\GlossaryTerm $glossary_term + * Output only. The glossary term used as the source. + * @type string $id + * Output only. Unique identifier of the source. This ID is service-generated + * and is unique within the scope of a single `Citation` message. + * @type string $title + * Output only. The title of the source. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The uri used as the source, such as a web grounding URL. + * + * Generated from protobuf field string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUri() + { + return $this->readOneof(3); + } + + public function hasUri() + { + return $this->hasOneof(3); + } + + /** + * Output only. The uri used as the source, such as a web grounding URL. + * + * Generated from protobuf field string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Output only. The example query used as the source. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_query = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery|null + */ + public function getExampleQuery() + { + return $this->readOneof(4); + } + + public function hasExampleQuery() + { + return $this->hasOneof(4); + } + + /** + * Output only. The example query used as the source. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_query = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery $var + * @return $this + */ + public function setExampleQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Output only. The glossary term used as the source. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_term = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\GlossaryTerm|null + */ + public function getGlossaryTerm() + { + return $this->readOneof(5); + } + + public function hasGlossaryTerm() + { + return $this->hasOneof(5); + } + + /** + * Output only. The glossary term used as the source. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_term = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\GlossaryTerm $var + * @return $this + */ + public function setGlossaryTerm($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\GlossaryTerm::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Output only. Unique identifier of the source. This ID is service-generated + * and is unique within the scope of a single `Citation` message. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Output only. Unique identifier of the source. This ID is service-generated + * and is unique within the scope of a single `Citation` message. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Output only. The title of the source. + * + * Generated from protobuf field string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * Output only. The title of the source. + * + * Generated from protobuf field string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTitle($var) + { + GPBUtil::checkString($var, True); + $this->title = $var; + + return $this; + } + + /** + * @return string + */ + public function getSourceType() + { + return $this->whichOneof("source_type"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationMessage.php new file mode 100644 index 000000000000..cef13305b11f --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationMessage.php @@ -0,0 +1,83 @@ +google.cloud.geminidataanalytics.v1beta.ClarificationMessage + */ +class ClarificationMessage extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Deprecated: The parent message is deprecated. + * A batch of clarification questions to ask the user. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated + */ + private $questions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationQuestion[] $questions + * Required. Deprecated: The parent message is deprecated. + * A batch of clarification questions to ask the user. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Deprecated: The parent message is deprecated. + * A batch of clarification questions to ask the user. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationQuestion> + * @deprecated + */ + public function getQuestions() + { + if ($this->questions->count() !== 0) { + @trigger_error('questions is deprecated.', E_USER_DEPRECATED); + } + return $this->questions; + } + + /** + * Required. Deprecated: The parent message is deprecated. + * A batch of clarification questions to ask the user. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationQuestion[] $var + * @return $this + * @deprecated + */ + public function setQuestions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationQuestion::class); + if ($arr->count() !== 0) { + @trigger_error('questions is deprecated.', E_USER_DEPRECATED); + } + $this->questions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion.php new file mode 100644 index 000000000000..0609695347c0 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion.php @@ -0,0 +1,221 @@ +google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + */ +class ClarificationQuestion extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Deprecated: The parent message is deprecated. + * The natural language question to ask the user. + * + * Generated from protobuf field string question = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated + */ + protected $question = ''; + /** + * Required. Deprecated: The parent message is deprecated. + * The selection mode for this question. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated + */ + protected $selection_mode = 0; + /** + * Required. Deprecated: The parent message is deprecated. + * A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + * + * Generated from protobuf field repeated string options = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated + */ + private $options; + /** + * Optional. Deprecated: The parent message is deprecated. + * The type of clarification question. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated + */ + protected $clarification_question_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $question + * Required. Deprecated: The parent message is deprecated. + * The natural language question to ask the user. + * @type int $selection_mode + * Required. Deprecated: The parent message is deprecated. + * The selection mode for this question. + * @type string[] $options + * Required. Deprecated: The parent message is deprecated. + * A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + * @type int $clarification_question_type + * Optional. Deprecated: The parent message is deprecated. + * The type of clarification question. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Deprecated: The parent message is deprecated. + * The natural language question to ask the user. + * + * Generated from protobuf field string question = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @return string + * @deprecated + */ + public function getQuestion() + { + if ($this->question !== '') { + @trigger_error('question is deprecated.', E_USER_DEPRECATED); + } + return $this->question; + } + + /** + * Required. Deprecated: The parent message is deprecated. + * The natural language question to ask the user. + * + * Generated from protobuf field string question = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + * @deprecated + */ + public function setQuestion($var) + { + @trigger_error('question is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->question = $var; + + return $this; + } + + /** + * Required. Deprecated: The parent message is deprecated. + * The selection mode for this question. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @return int + * @deprecated + */ + public function getSelectionMode() + { + if ($this->selection_mode !== 0) { + @trigger_error('selection_mode is deprecated.', E_USER_DEPRECATED); + } + return $this->selection_mode; + } + + /** + * Required. Deprecated: The parent message is deprecated. + * The selection mode for this question. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + * @deprecated + */ + public function setSelectionMode($var) + { + @trigger_error('selection_mode is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationQuestion\SelectionMode::class); + $this->selection_mode = $var; + + return $this; + } + + /** + * Required. Deprecated: The parent message is deprecated. + * A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + * + * Generated from protobuf field repeated string options = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField + * @deprecated + */ + public function getOptions() + { + if ($this->options->count() !== 0) { + @trigger_error('options is deprecated.', E_USER_DEPRECATED); + } + return $this->options; + } + + /** + * Required. Deprecated: The parent message is deprecated. + * A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + * + * Generated from protobuf field repeated string options = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @param string[] $var + * @return $this + * @deprecated + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + if ($arr->count() !== 0) { + @trigger_error('options is deprecated.', E_USER_DEPRECATED); + } + $this->options = $arr; + + return $this; + } + + /** + * Optional. Deprecated: The parent message is deprecated. + * The type of clarification question. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @return int + * @deprecated + */ + public function getClarificationQuestionType() + { + if ($this->clarification_question_type !== 0) { + @trigger_error('clarification_question_type is deprecated.', E_USER_DEPRECATED); + } + return $this->clarification_question_type; + } + + /** + * Optional. Deprecated: The parent message is deprecated. + * The type of clarification question. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + * @deprecated + */ + public function setClarificationQuestionType($var) + { + @trigger_error('clarification_question_type is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationQuestion\ClarificationQuestionType::class); + $this->clarification_question_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion/ClarificationQuestionType.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion/ClarificationQuestionType.php new file mode 100644 index 000000000000..f0d80de24953 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion/ClarificationQuestionType.php @@ -0,0 +1,69 @@ +google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType + */ +class ClarificationQuestionType +{ + /** + * Deprecated: The parent message is deprecated. + * Unspecified clarification question type. + * + * Generated from protobuf enum CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0 [deprecated = true]; + */ + const CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0; + /** + * Deprecated: The parent message is deprecated. + * The clarification question is for filter values. + * + * Generated from protobuf enum FILTER_VALUES = 1 [deprecated = true]; + */ + const FILTER_VALUES = 1; + /** + * Deprecated: The parent message is deprecated. + * The clarification question is for data fields. This is a generic term + * encompassing SQL columns, Looker fields (dimensions/measures), or + * nested data structure properties. + * + * Generated from protobuf enum FIELDS = 2 [deprecated = true]; + */ + const FIELDS = 2; + + private static $valueToName = [ + self::CLARIFICATION_QUESTION_TYPE_UNSPECIFIED => 'CLARIFICATION_QUESTION_TYPE_UNSPECIFIED', + self::FILTER_VALUES => 'FILTER_VALUES', + self::FIELDS => 'FIELDS', + ]; + + 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion/SelectionMode.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion/SelectionMode.php new file mode 100644 index 000000000000..31c4f4e53289 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion/SelectionMode.php @@ -0,0 +1,66 @@ +google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode + */ +class SelectionMode +{ + /** + * Deprecated: The parent message is deprecated. + * Unspecified selection mode. + * + * Generated from protobuf enum SELECTION_MODE_UNSPECIFIED = 0 [deprecated = true]; + */ + const SELECTION_MODE_UNSPECIFIED = 0; + /** + * Deprecated: The parent message is deprecated. + * The user can select only one option. + * + * Generated from protobuf enum SINGLE_SELECT = 1 [deprecated = true]; + */ + const SINGLE_SELECT = 1; + /** + * Deprecated: The parent message is deprecated. + * The user can select multiple options. + * + * Generated from protobuf enum MULTI_SELECT = 2 [deprecated = true]; + */ + const MULTI_SELECT = 2; + + private static $valueToName = [ + self::SELECTION_MODE_UNSPECIFIED => 'SELECTION_MODE_UNSPECIFIED', + self::SINGLE_SELECT => 'SINGLE_SELECT', + self::MULTI_SELECT => 'MULTI_SELECT', + ]; + + 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClientManagedResourceContext.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClientManagedResourceContext.php new file mode 100644 index 000000000000..c4ea48de3783 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClientManagedResourceContext.php @@ -0,0 +1,152 @@ +google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext + */ +class ClientManagedResourceContext extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Context for the chat request. Use this to chat without GDA API + * managed conversation and agent persistence by passing all context inline. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $inline_context = null; + /** + * Optional. The client managed conversation id. + * + * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $conversation_id = ''; + /** + * Optional. The client managed agent id. + * + * Generated from protobuf field string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $agent_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Context $inline_context + * Required. Context for the chat request. Use this to chat without GDA API + * managed conversation and agent persistence by passing all context inline. + * @type string $conversation_id + * Optional. The client managed conversation id. + * @type string $agent_id + * Optional. The client managed agent id. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Context for the chat request. Use this to chat without GDA API + * managed conversation and agent persistence by passing all context inline. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Context|null + */ + public function getInlineContext() + { + return $this->inline_context; + } + + public function hasInlineContext() + { + return isset($this->inline_context); + } + + public function clearInlineContext() + { + unset($this->inline_context); + } + + /** + * Required. Context for the chat request. Use this to chat without GDA API + * managed conversation and agent persistence by passing all context inline. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Context $var + * @return $this + */ + public function setInlineContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Context::class); + $this->inline_context = $var; + + return $this; + } + + /** + * Optional. The client managed conversation id. + * + * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getConversationId() + { + return $this->conversation_id; + } + + /** + * Optional. The client managed conversation id. + * + * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setConversationId($var) + { + GPBUtil::checkString($var, True); + $this->conversation_id = $var; + + return $this; + } + + /** + * Optional. The client managed agent id. + * + * Generated from protobuf field string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAgentId() + { + return $this->agent_id; + } + + /** + * Optional. The client managed agent id. + * + * Generated from protobuf field string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAgentId($var) + { + GPBUtil::checkString($var, True); + $this->agent_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlDatabaseReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlDatabaseReference.php new file mode 100644 index 000000000000..121a147ec7d8 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlDatabaseReference.php @@ -0,0 +1,279 @@ +google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference + */ +class CloudSqlDatabaseReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The engine of the Cloud SQL instance. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $engine = 0; + /** + * Required. The project the instance belongs to. + * + * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $project_id = ''; + /** + * Required. The region of the instance. + * + * Generated from protobuf field string region = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $region = ''; + /** + * Required. The instance id. + * + * Generated from protobuf field string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $instance_id = ''; + /** + * Required. The database id. + * + * Generated from protobuf field string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $database_id = ''; + /** + * Optional. The table ids. Denotes all tables if unset. + * + * Generated from protobuf field repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $table_ids; + /** + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $database_table_references; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $engine + * Required. The engine of the Cloud SQL instance. + * @type string $project_id + * Required. The project the instance belongs to. + * @type string $region + * Required. The region of the instance. + * @type string $instance_id + * Required. The instance id. + * @type string $database_id + * Required. The database id. + * @type string[] $table_ids + * Optional. The table ids. Denotes all tables if unset. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference[] $database_table_references + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Required. The engine of the Cloud SQL instance. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getEngine() + { + return $this->engine; + } + + /** + * Required. The engine of the Cloud SQL instance. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setEngine($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlDatabaseReference\Engine::class); + $this->engine = $var; + + return $this; + } + + /** + * Required. The project the instance belongs to. + * + * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * Required. The project the instance belongs to. + * + * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Required. The region of the instance. + * + * Generated from protobuf field string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getRegion() + { + return $this->region; + } + + /** + * Required. The region of the instance. + * + * Generated from protobuf field string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setRegion($var) + { + GPBUtil::checkString($var, True); + $this->region = $var; + + return $this; + } + + /** + * Required. The instance id. + * + * Generated from protobuf field string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getInstanceId() + { + return $this->instance_id; + } + + /** + * Required. The instance id. + * + * Generated from protobuf field string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setInstanceId($var) + { + GPBUtil::checkString($var, True); + $this->instance_id = $var; + + return $this; + } + + /** + * Required. The database id. + * + * Generated from protobuf field string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDatabaseId() + { + return $this->database_id; + } + + /** + * Required. The database id. + * + * Generated from protobuf field string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDatabaseId($var) + { + GPBUtil::checkString($var, True); + $this->database_id = $var; + + return $this; + } + + /** + * Optional. The table ids. Denotes all tables if unset. + * + * Generated from protobuf field repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getTableIds() + { + return $this->table_ids; + } + + /** + * Optional. The table ids. Denotes all tables if unset. + * + * Generated from protobuf field repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setTableIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->table_ids = $arr; + + return $this; + } + + /** + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference> + */ + public function getDatabaseTableReferences() + { + return $this->database_table_references; + } + + /** + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference[] $var + * @return $this + */ + public function setDatabaseTableReferences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference::class); + $this->database_table_references = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlDatabaseReference/Engine.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlDatabaseReference/Engine.php new file mode 100644 index 000000000000..e0e50ceda07d --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlDatabaseReference/Engine.php @@ -0,0 +1,61 @@ +google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine + */ +class Engine +{ + /** + * Engine is not specified. + * + * Generated from protobuf enum ENGINE_UNSPECIFIED = 0; + */ + const ENGINE_UNSPECIFIED = 0; + /** + * PostgreSQL + * + * Generated from protobuf enum POSTGRESQL = 1; + */ + const POSTGRESQL = 1; + /** + * MySQL + * + * Generated from protobuf enum MYSQL = 2; + */ + const MYSQL = 2; + + private static $valueToName = [ + self::ENGINE_UNSPECIFIED => 'ENGINE_UNSPECIFIED', + self::POSTGRESQL => 'POSTGRESQL', + self::MYSQL => 'MYSQL', + ]; + + 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlReference.php new file mode 100644 index 000000000000..c0687a1f27f3 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlReference.php @@ -0,0 +1,126 @@ +google.cloud.geminidataanalytics.v1beta.CloudSqlReference + */ +class CloudSqlReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Singular proto that supports specifying which database and tables + * to include. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $database_reference = null; + /** + * Optional. Parameters for retrieving data from Agent Context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $agent_context_reference = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlDatabaseReference $database_reference + * Required. Singular proto that supports specifying which database and tables + * to include. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference $agent_context_reference + * Optional. Parameters for retrieving data from Agent Context. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Required. Singular proto that supports specifying which database and tables + * to include. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlDatabaseReference|null + */ + public function getDatabaseReference() + { + return $this->database_reference; + } + + public function hasDatabaseReference() + { + return isset($this->database_reference); + } + + public function clearDatabaseReference() + { + unset($this->database_reference); + } + + /** + * Required. Singular proto that supports specifying which database and tables + * to include. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlDatabaseReference $var + * @return $this + */ + public function setDatabaseReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlDatabaseReference::class); + $this->database_reference = $var; + + return $this; + } + + /** + * Optional. Parameters for retrieving data from Agent Context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference|null + */ + public function getAgentContextReference() + { + return $this->agent_context_reference; + } + + public function hasAgentContextReference() + { + return isset($this->agent_context_reference); + } + + public function clearAgentContextReference() + { + unset($this->agent_context_reference); + } + + /** + * Optional. Parameters for retrieving data from Agent Context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference $var + * @return $this + */ + public function setAgentContextReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference::class); + $this->agent_context_reference = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context.php new file mode 100644 index 000000000000..7c639c3b017a --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context.php @@ -0,0 +1,379 @@ +google.cloud.geminidataanalytics.v1beta.Context + */ +class Context extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The basic entry point for data owners creating domain knowledge + * for Agent. + * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age + * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) + * can help the model understand the business context around a user question. + * + * Generated from protobuf field string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $system_instruction = ''; + /** + * Required. Data sources that are available for answering the question. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $datasource_references = null; + /** + * Optional. Additional options for the conversation. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $options = null; + /** + * Optional. A list of example queries, providing examples of relevant and + * commonly used SQL queries and their corresponding natural language queries + * optionally present. Currently only used for BigQuery data sources and + * databases (alloydb, cloudsql, spanner) data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $example_queries; + /** + * Optional. A list of golden queries, providing examples of relevant and + * commonly used Looker queries and their corresponding natural language + * queries optionally present. Only supported for Looker data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerGoldenQuery looker_golden_queries = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $looker_golden_queries; + /** + * Optional. Term definitions (currently, only user authored) + * Not supported for databases (alloydb, cloudsql, spanner) data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $glossary_terms; + /** + * Optional. Relationships between table schema, including referencing and + * referenced columns. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $schema_relationships; + /** + * Optional. A collection of user functions to be included in context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.UserFunctions user_functions = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $user_functions = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $system_instruction + * Optional. The basic entry point for data owners creating domain knowledge + * for Agent. + * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age + * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) + * can help the model understand the business context around a user question. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceReferences $datasource_references + * Required. Data sources that are available for answering the question. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationOptions $options + * Optional. Additional options for the conversation. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery[] $example_queries + * Optional. A list of example queries, providing examples of relevant and + * commonly used SQL queries and their corresponding natural language queries + * optionally present. Currently only used for BigQuery data sources and + * databases (alloydb, cloudsql, spanner) data sources. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerGoldenQuery[] $looker_golden_queries + * Optional. A list of golden queries, providing examples of relevant and + * commonly used Looker queries and their corresponding natural language + * queries optionally present. Only supported for Looker data sources. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\GlossaryTerm[] $glossary_terms + * Optional. Term definitions (currently, only user authored) + * Not supported for databases (alloydb, cloudsql, spanner) data sources. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship[] $schema_relationships + * Optional. Relationships between table schema, including referencing and + * referenced columns. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\UserFunctions $user_functions + * Optional. A collection of user functions to be included in context. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The basic entry point for data owners creating domain knowledge + * for Agent. + * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age + * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) + * can help the model understand the business context around a user question. + * + * Generated from protobuf field string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSystemInstruction() + { + return $this->system_instruction; + } + + /** + * Optional. The basic entry point for data owners creating domain knowledge + * for Agent. + * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age + * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) + * can help the model understand the business context around a user question. + * + * Generated from protobuf field string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSystemInstruction($var) + { + GPBUtil::checkString($var, True); + $this->system_instruction = $var; + + return $this; + } + + /** + * Required. Data sources that are available for answering the question. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceReferences|null + */ + public function getDatasourceReferences() + { + return $this->datasource_references; + } + + public function hasDatasourceReferences() + { + return isset($this->datasource_references); + } + + public function clearDatasourceReferences() + { + unset($this->datasource_references); + } + + /** + * Required. Data sources that are available for answering the question. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceReferences $var + * @return $this + */ + public function setDatasourceReferences($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceReferences::class); + $this->datasource_references = $var; + + return $this; + } + + /** + * Optional. Additional options for the conversation. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationOptions|null + */ + public function getOptions() + { + return $this->options; + } + + public function hasOptions() + { + return isset($this->options); + } + + public function clearOptions() + { + unset($this->options); + } + + /** + * Optional. Additional options for the conversation. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationOptions $var + * @return $this + */ + public function setOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationOptions::class); + $this->options = $var; + + return $this; + } + + /** + * Optional. A list of example queries, providing examples of relevant and + * commonly used SQL queries and their corresponding natural language queries + * optionally present. Currently only used for BigQuery data sources and + * databases (alloydb, cloudsql, spanner) data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery> + */ + public function getExampleQueries() + { + return $this->example_queries; + } + + /** + * Optional. A list of example queries, providing examples of relevant and + * commonly used SQL queries and their corresponding natural language queries + * optionally present. Currently only used for BigQuery data sources and + * databases (alloydb, cloudsql, spanner) data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery[] $var + * @return $this + */ + public function setExampleQueries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery::class); + $this->example_queries = $arr; + + return $this; + } + + /** + * Optional. A list of golden queries, providing examples of relevant and + * commonly used Looker queries and their corresponding natural language + * queries optionally present. Only supported for Looker data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerGoldenQuery looker_golden_queries = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\LookerGoldenQuery> + */ + public function getLookerGoldenQueries() + { + return $this->looker_golden_queries; + } + + /** + * Optional. A list of golden queries, providing examples of relevant and + * commonly used Looker queries and their corresponding natural language + * queries optionally present. Only supported for Looker data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerGoldenQuery looker_golden_queries = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerGoldenQuery[] $var + * @return $this + */ + public function setLookerGoldenQueries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerGoldenQuery::class); + $this->looker_golden_queries = $arr; + + return $this; + } + + /** + * Optional. Term definitions (currently, only user authored) + * Not supported for databases (alloydb, cloudsql, spanner) data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\GlossaryTerm> + */ + public function getGlossaryTerms() + { + return $this->glossary_terms; + } + + /** + * Optional. Term definitions (currently, only user authored) + * Not supported for databases (alloydb, cloudsql, spanner) data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\GlossaryTerm[] $var + * @return $this + */ + public function setGlossaryTerms($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\GlossaryTerm::class); + $this->glossary_terms = $arr; + + return $this; + } + + /** + * Optional. Relationships between table schema, including referencing and + * referenced columns. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship> + */ + public function getSchemaRelationships() + { + return $this->schema_relationships; + } + + /** + * Optional. Relationships between table schema, including referencing and + * referenced columns. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship[] $var + * @return $this + */ + public function setSchemaRelationships($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship::class); + $this->schema_relationships = $arr; + + return $this; + } + + /** + * Optional. A collection of user functions to be included in context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.UserFunctions user_functions = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\UserFunctions|null + */ + public function getUserFunctions() + { + return $this->user_functions; + } + + public function hasUserFunctions() + { + return isset($this->user_functions); + } + + public function clearUserFunctions() + { + unset($this->user_functions); + } + + /** + * Optional. A collection of user functions to be included in context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.UserFunctions user_functions = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\UserFunctions $var + * @return $this + */ + public function setUserFunctions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\UserFunctions::class); + $this->user_functions = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship.php new file mode 100644 index 000000000000..91d7350cd5f2 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship.php @@ -0,0 +1,219 @@ +google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + */ +class SchemaRelationship extends \Google\Protobuf\Internal\Message +{ + /** + * An ordered list of fields for the join from the first table. + * The size of this list must be the same as `right_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `right_schema_paths` list. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + */ + protected $left_schema_paths = null; + /** + * An ordered list of fields for the join from the second table. + * The size of this list must be the same as `left_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `left_schema_paths` list. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + */ + protected $right_schema_paths = null; + /** + * Optional. Sources which generated the schema relation edge. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $sources; + /** + * Optional. A confidence score for the suggested relationship. + * Manually added edges have the highest confidence score. + * + * Generated from protobuf field float confidence_score = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $confidence_score = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship\SchemaPaths $left_schema_paths + * An ordered list of fields for the join from the first table. + * The size of this list must be the same as `right_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `right_schema_paths` list. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship\SchemaPaths $right_schema_paths + * An ordered list of fields for the join from the second table. + * The size of this list must be the same as `left_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `left_schema_paths` list. + * @type int[] $sources + * Optional. Sources which generated the schema relation edge. + * @type float $confidence_score + * Optional. A confidence score for the suggested relationship. + * Manually added edges have the highest confidence score. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * An ordered list of fields for the join from the first table. + * The size of this list must be the same as `right_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `right_schema_paths` list. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship\SchemaPaths|null + */ + public function getLeftSchemaPaths() + { + return $this->left_schema_paths; + } + + public function hasLeftSchemaPaths() + { + return isset($this->left_schema_paths); + } + + public function clearLeftSchemaPaths() + { + unset($this->left_schema_paths); + } + + /** + * An ordered list of fields for the join from the first table. + * The size of this list must be the same as `right_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `right_schema_paths` list. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship\SchemaPaths $var + * @return $this + */ + public function setLeftSchemaPaths($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship\SchemaPaths::class); + $this->left_schema_paths = $var; + + return $this; + } + + /** + * An ordered list of fields for the join from the second table. + * The size of this list must be the same as `left_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `left_schema_paths` list. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship\SchemaPaths|null + */ + public function getRightSchemaPaths() + { + return $this->right_schema_paths; + } + + public function hasRightSchemaPaths() + { + return isset($this->right_schema_paths); + } + + public function clearRightSchemaPaths() + { + unset($this->right_schema_paths); + } + + /** + * An ordered list of fields for the join from the second table. + * The size of this list must be the same as `left_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `left_schema_paths` list. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship\SchemaPaths $var + * @return $this + */ + public function setRightSchemaPaths($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship\SchemaPaths::class); + $this->right_schema_paths = $var; + + return $this; + } + + /** + * Optional. Sources which generated the schema relation edge. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getSources() + { + return $this->sources; + } + + /** + * Optional. Sources which generated the schema relation edge. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int[] $var + * @return $this + */ + public function setSources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship\Source::class); + $this->sources = $arr; + + return $this; + } + + /** + * Optional. A confidence score for the suggested relationship. + * Manually added edges have the highest confidence score. + * + * Generated from protobuf field float confidence_score = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getConfidenceScore() + { + return $this->confidence_score; + } + + /** + * Optional. A confidence score for the suggested relationship. + * Manually added edges have the highest confidence score. + * + * Generated from protobuf field float confidence_score = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setConfidenceScore($var) + { + GPBUtil::checkFloat($var); + $this->confidence_score = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship/SchemaPaths.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship/SchemaPaths.php new file mode 100644 index 000000000000..896ef64e7ad5 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship/SchemaPaths.php @@ -0,0 +1,109 @@ +google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + */ +class SchemaPaths extends \Google\Protobuf\Internal\Message +{ + /** + * The service-qualified full resource name of the table + * Ex: + * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * + * Generated from protobuf field string table_fqn = 1; + */ + protected $table_fqn = ''; + /** + * The ordered list of paths within the table schema. + * + * Generated from protobuf field repeated string paths = 2; + */ + private $paths; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $table_fqn + * The service-qualified full resource name of the table + * Ex: + * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * @type string[] $paths + * The ordered list of paths within the table schema. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * The service-qualified full resource name of the table + * Ex: + * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * + * Generated from protobuf field string table_fqn = 1; + * @return string + */ + public function getTableFqn() + { + return $this->table_fqn; + } + + /** + * The service-qualified full resource name of the table + * Ex: + * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * + * Generated from protobuf field string table_fqn = 1; + * @param string $var + * @return $this + */ + public function setTableFqn($var) + { + GPBUtil::checkString($var, True); + $this->table_fqn = $var; + + return $this; + } + + /** + * The ordered list of paths within the table schema. + * + * Generated from protobuf field repeated string paths = 2; + * @return RepeatedField + */ + public function getPaths() + { + return $this->paths; + } + + /** + * The ordered list of paths within the table schema. + * + * Generated from protobuf field repeated string paths = 2; + * @param string[] $var + * @return $this + */ + public function setPaths($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->paths = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship/Source.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship/Source.php new file mode 100644 index 000000000000..4372bcc74fc5 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship/Source.php @@ -0,0 +1,68 @@ +google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source + */ +class Source +{ + /** + * The source of the schema relationship is unspecified. + * + * Generated from protobuf enum SOURCE_UNSPECIFIED = 0; + */ + const SOURCE_UNSPECIFIED = 0; + /** + * The source of the schema relationship is BigQuery job history. + * + * Generated from protobuf enum BIGQUERY_JOB_HISTORY = 1; + */ + const BIGQUERY_JOB_HISTORY = 1; + /** + * The source of the schema relationship is LLM suggested. + * + * Generated from protobuf enum LLM_SUGGESTED = 2; + */ + const LLM_SUGGESTED = 2; + /** + * The source of the schema relationship is BigQuery table constraints. + * + * Generated from protobuf enum BIGQUERY_TABLE_CONSTRAINTS = 3; + */ + const BIGQUERY_TABLE_CONSTRAINTS = 3; + + private static $valueToName = [ + self::SOURCE_UNSPECIFIED => 'SOURCE_UNSPECIFIED', + self::BIGQUERY_JOB_HISTORY => 'BIGQUERY_JOB_HISTORY', + self::LLM_SUGGESTED => 'LLM_SUGGESTED', + self::BIGQUERY_TABLE_CONSTRAINTS => 'BIGQUERY_TABLE_CONSTRAINTS', + ]; + + 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Conversation.php new file mode 100644 index 000000000000..7998a3c31727 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Conversation.php @@ -0,0 +1,383 @@ +google.cloud.geminidataanalytics.v1beta.Conversation + */ +class Conversation extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Identifier. The unique resource name of a conversation. Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * `{conversation_id}` is the resource id and should be 63 characters or less + * and must match the format described in + * https://google.aip.dev/122#resource-id-segments + * Example: + * `projects/1234567890/locations/global/conversations/my-conversation`. + * It is recommended to skip setting this field during conversation creation + * as it will be inferred automatically and overwritten with the + * {parent}/conversations/{conversation_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. Agent(s) in the conversation. + * Currently, only one agent is supported. This field is repeated to allow + * for future support of multiple agents in a conversation. + * Format: `projects/{project}/locations/{location}/dataAgents/{agent}` + * + * Generated from protobuf field repeated string agents = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $agents; + /** + * Output only. Creation timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp of the last used conversation. + * + * Generated from protobuf field .google.protobuf.Timestamp last_used_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_used_time = null; + /** + * Optional. Open-ended and user-defined labels that can be set by the client + * to tag a conversation (e.g. to filter conversations for specific + * surfaces/products). + * + * Generated from protobuf field map labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * Conversation resources. Encryption will happen at Titan layer, we will pass + * the KMS key to Titan. + * Format: + * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. + * + * Generated from protobuf field optional string kms_key = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $kms_key = null; + /** + * Optional. Whether memory is paused for this conversation. + * + * Generated from protobuf field optional bool memory_paused = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $memory_paused = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Optional. Identifier. The unique resource name of a conversation. Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * `{conversation_id}` is the resource id and should be 63 characters or less + * and must match the format described in + * https://google.aip.dev/122#resource-id-segments + * Example: + * `projects/1234567890/locations/global/conversations/my-conversation`. + * It is recommended to skip setting this field during conversation creation + * as it will be inferred automatically and overwritten with the + * {parent}/conversations/{conversation_id}. + * @type string[] $agents + * Required. Agent(s) in the conversation. + * Currently, only one agent is supported. This field is repeated to allow + * for future support of multiple agents in a conversation. + * Format: `projects/{project}/locations/{location}/dataAgents/{agent}` + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Creation timestamp. + * @type \Google\Protobuf\Timestamp $last_used_time + * Output only. Timestamp of the last used conversation. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. Open-ended and user-defined labels that can be set by the client + * to tag a conversation (e.g. to filter conversations for specific + * surfaces/products). + * @type string $kms_key + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * Conversation resources. Encryption will happen at Titan layer, we will pass + * the KMS key to Titan. + * Format: + * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. + * @type bool $memory_paused + * Optional. Whether memory is paused for this conversation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Conversation::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Identifier. The unique resource name of a conversation. Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * `{conversation_id}` is the resource id and should be 63 characters or less + * and must match the format described in + * https://google.aip.dev/122#resource-id-segments + * Example: + * `projects/1234567890/locations/global/conversations/my-conversation`. + * It is recommended to skip setting this field during conversation creation + * as it will be inferred automatically and overwritten with the + * {parent}/conversations/{conversation_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. Identifier. The unique resource name of a conversation. Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * `{conversation_id}` is the resource id and should be 63 characters or less + * and must match the format described in + * https://google.aip.dev/122#resource-id-segments + * Example: + * `projects/1234567890/locations/global/conversations/my-conversation`. + * It is recommended to skip setting this field during conversation creation + * as it will be inferred automatically and overwritten with the + * {parent}/conversations/{conversation_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Agent(s) in the conversation. + * Currently, only one agent is supported. This field is repeated to allow + * for future support of multiple agents in a conversation. + * Format: `projects/{project}/locations/{location}/dataAgents/{agent}` + * + * Generated from protobuf field repeated string agents = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField + */ + public function getAgents() + { + return $this->agents; + } + + /** + * Required. Agent(s) in the conversation. + * Currently, only one agent is supported. This field is repeated to allow + * for future support of multiple agents in a conversation. + * Format: `projects/{project}/locations/{location}/dataAgents/{agent}` + * + * Generated from protobuf field repeated string agents = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string[] $var + * @return $this + */ + public function setAgents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->agents = $arr; + + return $this; + } + + /** + * Output only. Creation timestamp. + * + * 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. Creation timestamp. + * + * 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 of the last used conversation. + * + * Generated from protobuf field .google.protobuf.Timestamp last_used_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastUsedTime() + { + return $this->last_used_time; + } + + public function hasLastUsedTime() + { + return isset($this->last_used_time); + } + + public function clearLastUsedTime() + { + unset($this->last_used_time); + } + + /** + * Output only. Timestamp of the last used conversation. + * + * Generated from protobuf field .google.protobuf.Timestamp last_used_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastUsedTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_used_time = $var; + + return $this; + } + + /** + * Optional. Open-ended and user-defined labels that can be set by the client + * to tag a conversation (e.g. to filter conversations for specific + * surfaces/products). + * + * Generated from protobuf field map labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. Open-ended and user-defined labels that can be set by the client + * to tag a conversation (e.g. to filter conversations for specific + * surfaces/products). + * + * Generated from protobuf field map labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * Conversation resources. Encryption will happen at Titan layer, we will pass + * the KMS key to Titan. + * Format: + * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. + * + * Generated from protobuf field optional string kms_key = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getKmsKey() + { + return isset($this->kms_key) ? $this->kms_key : ''; + } + + public function hasKmsKey() + { + return isset($this->kms_key); + } + + public function clearKmsKey() + { + unset($this->kms_key); + } + + /** + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * Conversation resources. Encryption will happen at Titan layer, we will pass + * the KMS key to Titan. + * Format: + * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. + * + * Generated from protobuf field optional string kms_key = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setKmsKey($var) + { + GPBUtil::checkString($var, True); + $this->kms_key = $var; + + return $this; + } + + /** + * Optional. Whether memory is paused for this conversation. + * + * Generated from protobuf field optional bool memory_paused = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getMemoryPaused() + { + return isset($this->memory_paused) ? $this->memory_paused : false; + } + + public function hasMemoryPaused() + { + return isset($this->memory_paused); + } + + public function clearMemoryPaused() + { + unset($this->memory_paused); + } + + /** + * Optional. Whether memory is paused for this conversation. + * + * Generated from protobuf field optional bool memory_paused = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setMemoryPaused($var) + { + GPBUtil::checkBool($var); + $this->memory_paused = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationOptions.php new file mode 100644 index 000000000000..cc5be0c1684c --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationOptions.php @@ -0,0 +1,209 @@ +google.cloud.geminidataanalytics.v1beta.ConversationOptions + */ +class ConversationOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Options for chart generation. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions chart = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $chart = null; + /** + * Optional. Options for analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisOptions analysis = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $analysis = null; + /** + * Optional. Options for datasources. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $datasource = null; + /** + * Optional. The model to use for the agent loop. + * + * Generated from protobuf field optional .google.cloud.geminidataanalytics.v1beta.ConversationOptions.Model model = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $model = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions $chart + * Optional. Options for chart generation. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisOptions $analysis + * Optional. Options for analysis. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceOptions $datasource + * Optional. Options for datasources. + * @type int $model + * Optional. The model to use for the agent loop. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Options for chart generation. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions chart = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions|null + */ + public function getChart() + { + return $this->chart; + } + + public function hasChart() + { + return isset($this->chart); + } + + public function clearChart() + { + unset($this->chart); + } + + /** + * Optional. Options for chart generation. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions chart = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions $var + * @return $this + */ + public function setChart($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions::class); + $this->chart = $var; + + return $this; + } + + /** + * Optional. Options for analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisOptions analysis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisOptions|null + */ + public function getAnalysis() + { + return $this->analysis; + } + + public function hasAnalysis() + { + return isset($this->analysis); + } + + public function clearAnalysis() + { + unset($this->analysis); + } + + /** + * Optional. Options for analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisOptions analysis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisOptions $var + * @return $this + */ + public function setAnalysis($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisOptions::class); + $this->analysis = $var; + + return $this; + } + + /** + * Optional. Options for datasources. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceOptions|null + */ + public function getDatasource() + { + return $this->datasource; + } + + public function hasDatasource() + { + return isset($this->datasource); + } + + public function clearDatasource() + { + unset($this->datasource); + } + + /** + * Optional. Options for datasources. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceOptions $var + * @return $this + */ + public function setDatasource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceOptions::class); + $this->datasource = $var; + + return $this; + } + + /** + * Optional. The model to use for the agent loop. + * + * Generated from protobuf field optional .google.cloud.geminidataanalytics.v1beta.ConversationOptions.Model model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getModel() + { + return isset($this->model) ? $this->model : 0; + } + + public function hasModel() + { + return isset($this->model); + } + + public function clearModel() + { + unset($this->model); + } + + /** + * Optional. The model to use for the agent loop. + * + * Generated from protobuf field optional .google.cloud.geminidataanalytics.v1beta.ConversationOptions.Model model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setModel($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationOptions\Model::class); + $this->model = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationOptions/Model.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationOptions/Model.php new file mode 100644 index 000000000000..d509ddedd62b --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationOptions/Model.php @@ -0,0 +1,56 @@ +google.cloud.geminidataanalytics.v1beta.ConversationOptions.Model + */ +class Model +{ + /** + * No model specified. The model may be set on the chat request, or the + * default model will be used. + * + * Generated from protobuf enum MODEL_UNSPECIFIED = 0; + */ + const MODEL_UNSPECIFIED = 0; + /** + * Use the most up-to-date non-preview model. This may constrain certain + * request level settings. + * + * Generated from protobuf enum LATEST_GA_MODEL = 1; + */ + const LATEST_GA_MODEL = 1; + + private static $valueToName = [ + self::MODEL_UNSPECIFIED => 'MODEL_UNSPECIFIED', + self::LATEST_GA_MODEL => 'LATEST_GA_MODEL', + ]; + + 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationReference.php new file mode 100644 index 000000000000..b8da0d101b3e --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationReference.php @@ -0,0 +1,119 @@ +google.cloud.geminidataanalytics.v1beta.ConversationReference + */ +class ConversationReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the conversation resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * + * Generated from protobuf field string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $conversation = ''; + /** + * Required. Context for the chat request using a data agent. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_agent_context = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $conversation + * Required. Name of the conversation resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgentContext $data_agent_context + * Required. Context for the chat request using a data agent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the conversation resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * + * Generated from protobuf field string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getConversation() + { + return $this->conversation; + } + + /** + * Required. Name of the conversation resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * + * Generated from protobuf field string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setConversation($var) + { + GPBUtil::checkString($var, True); + $this->conversation = $var; + + return $this; + } + + /** + * Required. Context for the chat request using a data agent. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgentContext|null + */ + public function getDataAgentContext() + { + return $this->data_agent_context; + } + + public function hasDataAgentContext() + { + return isset($this->data_agent_context); + } + + public function clearDataAgentContext() + { + unset($this->data_agent_context); + } + + /** + * Required. Context for the chat request using a data agent. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgentContext $var + * @return $this + */ + public function setDataAgentContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgentContext::class); + $this->data_agent_context = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CreateConversationRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CreateConversationRequest.php new file mode 100644 index 000000000000..6a14dc20360e --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CreateConversationRequest.php @@ -0,0 +1,229 @@ +google.cloud.geminidataanalytics.v1beta.CreateConversationRequest + */ +class CreateConversationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent value for CreateConversationRequest. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The conversation id of the conversation to create. + * Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * + * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $conversation_id = ''; + /** + * Required. The conversation to create. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Conversation conversation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $conversation = null; + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $parent Required. Parent value for CreateConversationRequest. + * Format: `projects/{project}/locations/{location}` + * Please see {@see DataChatServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Conversation $conversation Required. The conversation to create. + * @param string $conversationId Optional. The conversation id of the conversation to create. + * Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\CreateConversationRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\GeminiDataAnalytics\V1beta\Conversation $conversation, string $conversationId): self + { + return (new self()) + ->setParent($parent) + ->setConversation($conversation) + ->setConversationId($conversationId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent value for CreateConversationRequest. + * Format: `projects/{project}/locations/{location}` + * @type string $conversation_id + * Optional. The conversation id of the conversation to create. + * Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Conversation $conversation + * Required. The conversation to create. + * @type string $request_id + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Conversation::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent value for CreateConversationRequest. + * Format: `projects/{project}/locations/{location}` + * + * 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. Parent value for CreateConversationRequest. + * Format: `projects/{project}/locations/{location}` + * + * 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 conversation id of the conversation to create. + * Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * + * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getConversationId() + { + return $this->conversation_id; + } + + /** + * Optional. The conversation id of the conversation to create. + * Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * + * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setConversationId($var) + { + GPBUtil::checkString($var, True); + $this->conversation_id = $var; + + return $this; + } + + /** + * Required. The conversation to create. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Conversation conversation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Conversation|null + */ + public function getConversation() + { + return $this->conversation; + } + + public function hasConversation() + { + return isset($this->conversation); + } + + public function clearConversation() + { + unset($this->conversation); + } + + /** + * Required. The conversation to create. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Conversation conversation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Conversation $var + * @return $this + */ + public function setConversation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Conversation::class); + $this->conversation = $var; + + return $this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CreateDataAgentRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CreateDataAgentRequest.php new file mode 100644 index 000000000000..81ab839c54cf --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CreateDataAgentRequest.php @@ -0,0 +1,247 @@ +google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest + */ +class CreateDataAgentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Value for parent. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Id of the requesting object. Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * + * Generated from protobuf field string data_agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_agent_id = ''; + /** + * Required. The resource being created. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgent data_agent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_agent = null; + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $parent Required. Value for parent. Please see + * {@see DataAgentServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent $dataAgent Required. The resource being created. + * @param string $dataAgentId Optional. Id of the requesting object. Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\CreateDataAgentRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent $dataAgent, string $dataAgentId): self + { + return (new self()) + ->setParent($parent) + ->setDataAgent($dataAgent) + ->setDataAgentId($dataAgentId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Value for parent. + * @type string $data_agent_id + * Optional. Id of the requesting object. Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent $data_agent + * Required. The resource being created. + * @type string $request_id + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgentService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Value for parent. + * + * 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. Value for parent. + * + * 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. Id of the requesting object. Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * + * Generated from protobuf field string data_agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDataAgentId() + { + return $this->data_agent_id; + } + + /** + * Optional. Id of the requesting object. Must be unique within the parent. + * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * If not provided, the server will auto-generate a value for the id. + * + * Generated from protobuf field string data_agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDataAgentId($var) + { + GPBUtil::checkString($var, True); + $this->data_agent_id = $var; + + return $this; + } + + /** + * Required. The resource being created. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgent data_agent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent|null + */ + public function getDataAgent() + { + return $this->data_agent; + } + + public function hasDataAgent() + { + return isset($this->data_agent); + } + + public function clearDataAgent() + { + unset($this->data_agent); + } + + /** + * Required. The resource being created. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgent data_agent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent $var + * @return $this + */ + public function setDataAgent($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent::class); + $this->data_agent = $var; + + return $this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Credentials.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Credentials.php new file mode 100644 index 000000000000..109a1091feea --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Credentials.php @@ -0,0 +1,75 @@ +google.cloud.geminidataanalytics.v1beta.Credentials + */ +class Credentials extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials $oauth + * OAuth credentials. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Credentials::initOnce(); + parent::__construct($data); + } + + /** + * OAuth credentials. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.OAuthCredentials oauth = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials|null + */ + public function getOauth() + { + return $this->readOneof(1); + } + + public function hasOauth() + { + return $this->hasOneof(1); + } + + /** + * OAuth credentials. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.OAuthCredentials oauth = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials $var + * @return $this + */ + public function setOauth($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgent.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgent.php new file mode 100644 index 000000000000..2b7479ea2d1b --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgent.php @@ -0,0 +1,515 @@ +google.cloud.geminidataanalytics.v1beta.DataAgent + */ +class DataAgent extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Identifier. The unique resource name of a DataAgent. + * Format: + * `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` + * `{data_agent}` is the resource id and should be 63 characters or less and + * must match the format described in + * https://google.aip.dev/122#resource-id-segments + * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. + * It is recommended to skip setting this field during agent creation as it + * will be inferred automatically and overwritten with the + * {parent}/dataAgents/{data_agent_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. User friendly display name. + * * Must be between 1-256 characters. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. Description of the agent. + * * Must be between 1-1024 characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. Labels to help users filter related agents. + * For example, "sales", "business", "etl", and so on. + * Note labels are used only for filtering and not for policies. + * See the [labels + * documentation](https://cloud.google.com/resource-manager/docs/labels-overview) + * for more details on label usage. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Output only. The time when the data agent was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the data agent was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. [Output only] The time the data agent was soft deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $delete_time = null; + /** + * Output only. Timestamp in UTC of when this data agent is considered + * expired. This is *always* provided on output, regardless of what was sent + * on input. + * + * Generated from protobuf field .google.protobuf.Timestamp purge_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $purge_time = null; + /** + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location + * as the DataAgent. The expected format is + * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. + * + * Generated from protobuf field optional string kms_key = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $kms_key = null; + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataAnalyticsAgent $data_analytics_agent + * Data analytics agent. + * @type string $name + * Optional. Identifier. The unique resource name of a DataAgent. + * Format: + * `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` + * `{data_agent}` is the resource id and should be 63 characters or less and + * must match the format described in + * https://google.aip.dev/122#resource-id-segments + * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. + * It is recommended to skip setting this field during agent creation as it + * will be inferred automatically and overwritten with the + * {parent}/dataAgents/{data_agent_id}. + * @type string $display_name + * Optional. User friendly display name. + * * Must be between 1-256 characters. + * @type string $description + * Optional. Description of the agent. + * * Must be between 1-1024 characters. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. Labels to help users filter related agents. + * For example, "sales", "business", "etl", and so on. + * Note labels are used only for filtering and not for policies. + * See the [labels + * documentation](https://cloud.google.com/resource-manager/docs/labels-overview) + * for more details on label usage. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the data agent was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the data agent was last updated. + * @type \Google\Protobuf\Timestamp $delete_time + * Output only. [Output only] The time the data agent was soft deleted. + * @type \Google\Protobuf\Timestamp $purge_time + * Output only. Timestamp in UTC of when this data agent is considered + * expired. This is *always* provided on output, regardless of what was sent + * on input. + * @type string $kms_key + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location + * as the DataAgent. The expected format is + * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgent::initOnce(); + parent::__construct($data); + } + + /** + * Data analytics agent. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAnalyticsAgent data_analytics_agent = 101; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DataAnalyticsAgent|null + */ + public function getDataAnalyticsAgent() + { + return $this->readOneof(101); + } + + public function hasDataAnalyticsAgent() + { + return $this->hasOneof(101); + } + + /** + * Data analytics agent. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAnalyticsAgent data_analytics_agent = 101; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataAnalyticsAgent $var + * @return $this + */ + public function setDataAnalyticsAgent($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataAnalyticsAgent::class); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * Optional. Identifier. The unique resource name of a DataAgent. + * Format: + * `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` + * `{data_agent}` is the resource id and should be 63 characters or less and + * must match the format described in + * https://google.aip.dev/122#resource-id-segments + * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. + * It is recommended to skip setting this field during agent creation as it + * will be inferred automatically and overwritten with the + * {parent}/dataAgents/{data_agent_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. Identifier. The unique resource name of a DataAgent. + * Format: + * `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` + * `{data_agent}` is the resource id and should be 63 characters or less and + * must match the format described in + * https://google.aip.dev/122#resource-id-segments + * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. + * It is recommended to skip setting this field during agent creation as it + * will be inferred automatically and overwritten with the + * {parent}/dataAgents/{data_agent_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. User friendly display name. + * * Must be between 1-256 characters. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly display name. + * * Must be between 1-256 characters. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Description of the agent. + * * Must be between 1-1024 characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the agent. + * * Must be between 1-1024 characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. Labels to help users filter related agents. + * For example, "sales", "business", "etl", and so on. + * Note labels are used only for filtering and not for policies. + * See the [labels + * documentation](https://cloud.google.com/resource-manager/docs/labels-overview) + * for more details on label usage. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. Labels to help users filter related agents. + * For example, "sales", "business", "etl", and so on. + * Note labels are used only for filtering and not for policies. + * See the [labels + * documentation](https://cloud.google.com/resource-manager/docs/labels-overview) + * for more details on label usage. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. The time when the data agent was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.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 when the data agent was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.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 when the data agent was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.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 when the data agent was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.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. [Output only] The time the data agent was soft deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDeleteTime() + { + return $this->delete_time; + } + + public function hasDeleteTime() + { + return isset($this->delete_time); + } + + public function clearDeleteTime() + { + unset($this->delete_time); + } + + /** + * Output only. [Output only] The time the data agent was soft deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDeleteTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->delete_time = $var; + + return $this; + } + + /** + * Output only. Timestamp in UTC of when this data agent is considered + * expired. This is *always* provided on output, regardless of what was sent + * on input. + * + * Generated from protobuf field .google.protobuf.Timestamp purge_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getPurgeTime() + { + return $this->purge_time; + } + + public function hasPurgeTime() + { + return isset($this->purge_time); + } + + public function clearPurgeTime() + { + unset($this->purge_time); + } + + /** + * Output only. Timestamp in UTC of when this data agent is considered + * expired. This is *always* provided on output, regardless of what was sent + * on input. + * + * Generated from protobuf field .google.protobuf.Timestamp purge_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setPurgeTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->purge_time = $var; + + return $this; + } + + /** + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location + * as the DataAgent. The expected format is + * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. + * + * Generated from protobuf field optional string kms_key = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getKmsKey() + { + return isset($this->kms_key) ? $this->kms_key : ''; + } + + public function hasKmsKey() + { + return isset($this->kms_key); + } + + public function clearKmsKey() + { + unset($this->kms_key); + } + + /** + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location + * as the DataAgent. The expected format is + * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. + * + * Generated from protobuf field optional string kms_key = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setKmsKey($var) + { + GPBUtil::checkString($var, True); + $this->kms_key = $var; + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgentContext.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgentContext.php new file mode 100644 index 000000000000..0a4f9414e7ff --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgentContext.php @@ -0,0 +1,176 @@ +google.cloud.geminidataanalytics.v1beta.DataAgentContext + */ +class DataAgentContext extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the data agent resource. + * + * Generated from protobuf field string data_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $data_agent = ''; + /** + * Optional. Deprecated: Use credentials in ChatRequest. + * The credentials to use when calling the Looker data source. + * Currently supports both OAuth token and API key-based credentials, as + * described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated + */ + protected $credentials = null; + /** + * Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED) + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $context_version = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $data_agent + * Required. The name of the data agent resource. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials $credentials + * Optional. Deprecated: Use credentials in ChatRequest. + * The credentials to use when calling the Looker data source. + * Currently supports both OAuth token and API key-based credentials, as + * described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * @type int $context_version + * Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the data agent resource. + * + * Generated from protobuf field string data_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getDataAgent() + { + return $this->data_agent; + } + + /** + * Required. The name of the data agent resource. + * + * Generated from protobuf field string data_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDataAgent($var) + { + GPBUtil::checkString($var, True); + $this->data_agent = $var; + + return $this; + } + + /** + * Optional. Deprecated: Use credentials in ChatRequest. + * The credentials to use when calling the Looker data source. + * Currently supports both OAuth token and API key-based credentials, as + * described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials|null + * @deprecated + */ + public function getCredentials() + { + if (isset($this->credentials)) { + @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); + } + return $this->credentials; + } + + public function hasCredentials() + { + if (isset($this->credentials)) { + @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); + } + return isset($this->credentials); + } + + public function clearCredentials() + { + @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); + unset($this->credentials); + } + + /** + * Optional. Deprecated: Use credentials in ChatRequest. + * The credentials to use when calling the Looker data source. + * Currently supports both OAuth token and API key-based credentials, as + * described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials $var + * @return $this + * @deprecated + */ + public function setCredentials($var) + { + @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials::class); + $this->credentials = $var; + + return $this; + } + + /** + * Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED) + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getContextVersion() + { + return $this->context_version; + } + + /** + * Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED) + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setContextVersion($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgentContext\ContextVersion::class); + $this->context_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgentContext/ContextVersion.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgentContext/ContextVersion.php new file mode 100644 index 000000000000..78b061645ae1 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgentContext/ContextVersion.php @@ -0,0 +1,65 @@ +google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersion + */ +class ContextVersion +{ + /** + * Unspecified or unrecognized. + * + * Generated from protobuf enum CONTEXT_VERSION_UNSPECIFIED = 0; + */ + const CONTEXT_VERSION_UNSPECIFIED = 0; + /** + * Using this version, DCS will use the latest staging context for the + * data agent. + * + * Generated from protobuf enum STAGING = 1; + */ + const STAGING = 1; + /** + * Using this version, DCS will use the latest published context for the + * data agent. + * + * Generated from protobuf enum PUBLISHED = 2; + */ + const PUBLISHED = 2; + + private static $valueToName = [ + self::CONTEXT_VERSION_UNSPECIFIED => 'CONTEXT_VERSION_UNSPECIFIED', + self::STAGING => 'STAGING', + self::PUBLISHED => 'PUBLISHED', + ]; + + 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAnalyticsAgent.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAnalyticsAgent.php new file mode 100644 index 000000000000..3148ed813d32 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAnalyticsAgent.php @@ -0,0 +1,185 @@ +google.cloud.geminidataanalytics.v1beta.DataAnalyticsAgent + */ +class DataAnalyticsAgent extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The staging context for the agent. + * This context is used to test and validate changes before publishing. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context staging_context = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $staging_context = null; + /** + * Optional. The published context for the agent. + * This context is used by the Chat API in production. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context published_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $published_context = null; + /** + * Output only. The last published context for the agent. + * This is an output-only field populated by the system when the + * published context is updated. It is used to restore the agent to a + * previous state. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context last_published_context = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_published_context = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Context $staging_context + * Optional. The staging context for the agent. + * This context is used to test and validate changes before publishing. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Context $published_context + * Optional. The published context for the agent. + * This context is used by the Chat API in production. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Context $last_published_context + * Output only. The last published context for the agent. + * This is an output-only field populated by the system when the + * published context is updated. It is used to restore the agent to a + * previous state. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAnalyticsAgent::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The staging context for the agent. + * This context is used to test and validate changes before publishing. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context staging_context = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Context|null + */ + public function getStagingContext() + { + return $this->staging_context; + } + + public function hasStagingContext() + { + return isset($this->staging_context); + } + + public function clearStagingContext() + { + unset($this->staging_context); + } + + /** + * Optional. The staging context for the agent. + * This context is used to test and validate changes before publishing. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context staging_context = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Context $var + * @return $this + */ + public function setStagingContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Context::class); + $this->staging_context = $var; + + return $this; + } + + /** + * Optional. The published context for the agent. + * This context is used by the Chat API in production. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context published_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Context|null + */ + public function getPublishedContext() + { + return $this->published_context; + } + + public function hasPublishedContext() + { + return isset($this->published_context); + } + + public function clearPublishedContext() + { + unset($this->published_context); + } + + /** + * Optional. The published context for the agent. + * This context is used by the Chat API in production. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context published_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Context $var + * @return $this + */ + public function setPublishedContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Context::class); + $this->published_context = $var; + + return $this; + } + + /** + * Output only. The last published context for the agent. + * This is an output-only field populated by the system when the + * published context is updated. It is used to restore the agent to a + * previous state. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context last_published_context = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Context|null + */ + public function getLastPublishedContext() + { + return $this->last_published_context; + } + + public function hasLastPublishedContext() + { + return isset($this->last_published_context); + } + + public function clearLastPublishedContext() + { + unset($this->last_published_context); + } + + /** + * Output only. The last published context for the agent. + * This is an output-only field populated by the system when the + * published context is updated. It is used to restore the agent to a + * previous state. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context last_published_context = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Context $var + * @return $this + */ + public function setLastPublishedContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Context::class); + $this->last_published_context = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataFilter.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataFilter.php new file mode 100644 index 000000000000..06fce16057c0 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataFilter.php @@ -0,0 +1,148 @@ +google.cloud.geminidataanalytics.v1beta.DataFilter + */ +class DataFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The field to filter on. For example: ["event_date", + * "customer_id", "product_category"] + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $field = ''; + /** + * Optional. The default value used for this filter if the filter is not + * overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"] + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $value = ''; + /** + * Optional. The type of filter present on a datasource, such as + * ALWAYS_FILTER. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field + * Optional. The field to filter on. For example: ["event_date", + * "customer_id", "product_category"] + * @type string $value + * Optional. The default value used for this filter if the filter is not + * overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"] + * @type int $type + * Optional. The type of filter present on a datasource, such as + * ALWAYS_FILTER. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The field to filter on. For example: ["event_date", + * "customer_id", "product_category"] + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getField() + { + return $this->field; + } + + /** + * Optional. The field to filter on. For example: ["event_date", + * "customer_id", "product_category"] + * + * 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. The default value used for this filter if the filter is not + * overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"] + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Optional. The default value used for this filter if the filter is not + * overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"] + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * Optional. The type of filter present on a datasource, such as + * ALWAYS_FILTER. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Optional. The type of filter present on a datasource, such as + * ALWAYS_FILTER. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataFilterType::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataFilterType.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataFilterType.php new file mode 100644 index 000000000000..c554a0b3b5f1 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataFilterType.php @@ -0,0 +1,56 @@ +google.cloud.geminidataanalytics.v1beta.DataFilterType + */ +class DataFilterType +{ + /** + * The filter type was not specified. + * + * Generated from protobuf enum DATA_FILTER_TYPE_UNSPECIFIED = 0; + */ + const DATA_FILTER_TYPE_UNSPECIFIED = 0; + /** + * A filter that the user configures, and any queries to the Explore will + * always apply this filter by default. Currently only used for Looker data + * sources. + * + * Generated from protobuf enum ALWAYS_FILTER = 1; + */ + const ALWAYS_FILTER = 1; + + private static $valueToName = [ + self::DATA_FILTER_TYPE_UNSPECIFIED => 'DATA_FILTER_TYPE_UNSPECIFIED', + self::ALWAYS_FILTER => 'ALWAYS_FILTER', + ]; + + 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataMessage.php new file mode 100644 index 000000000000..0e7f2551c8da --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataMessage.php @@ -0,0 +1,252 @@ +google.cloud.geminidataanalytics.v1beta.DataMessage + */ +class DataMessage extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataQuery $query + * A data retrieval query. + * @type string $generated_sql + * SQL generated by the system to retrieve data. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataResult $result + * Retrieved data. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery $generated_looker_query + * Deprecated: generated looker query is now under DataQuery.looker. + * Looker Query generated by the system to retrieve data. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryJob $big_query_job + * A BigQuery job executed by the system to retrieve data. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\MatchedQuery $matched_query + * A pre-existing query that was matched to retrieve data. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * A data retrieval query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataQuery query = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DataQuery|null + */ + public function getQuery() + { + return $this->readOneof(1); + } + + public function hasQuery() + { + return $this->hasOneof(1); + } + + /** + * A data retrieval query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataQuery query = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataQuery $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataQuery::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * SQL generated by the system to retrieve data. + * + * Generated from protobuf field string generated_sql = 2; + * @return string + */ + public function getGeneratedSql() + { + return $this->readOneof(2); + } + + public function hasGeneratedSql() + { + return $this->hasOneof(2); + } + + /** + * SQL generated by the system to retrieve data. + * + * Generated from protobuf field string generated_sql = 2; + * @param string $var + * @return $this + */ + public function setGeneratedSql($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Retrieved data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataResult result = 3; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DataResult|null + */ + public function getResult() + { + return $this->readOneof(3); + } + + public function hasResult() + { + return $this->hasOneof(3); + } + + /** + * Retrieved data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataResult result = 3; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataResult $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataResult::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Deprecated: generated looker query is now under DataQuery.looker. + * Looker Query generated by the system to retrieve data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery|null + * @deprecated + */ + public function getGeneratedLookerQuery() + { + if ($this->hasOneof(4)) { + @trigger_error('generated_looker_query is deprecated.', E_USER_DEPRECATED); + } + return $this->readOneof(4); + } + + public function hasGeneratedLookerQuery() + { + if ($this->hasOneof(4)) { + @trigger_error('generated_looker_query is deprecated.', E_USER_DEPRECATED); + } + return $this->hasOneof(4); + } + + /** + * Deprecated: generated looker query is now under DataQuery.looker. + * Looker Query generated by the system to retrieve data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery $var + * @return $this + * @deprecated + */ + public function setGeneratedLookerQuery($var) + { + @trigger_error('generated_looker_query is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * A BigQuery job executed by the system to retrieve data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryJob big_query_job = 5; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryJob|null + */ + public function getBigQueryJob() + { + return $this->readOneof(5); + } + + public function hasBigQueryJob() + { + return $this->hasOneof(5); + } + + /** + * A BigQuery job executed by the system to retrieve data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryJob big_query_job = 5; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryJob $var + * @return $this + */ + public function setBigQueryJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryJob::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * A pre-existing query that was matched to retrieve data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.MatchedQuery matched_query = 6; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\MatchedQuery|null + */ + public function getMatchedQuery() + { + return $this->readOneof(6); + } + + public function hasMatchedQuery() + { + return $this->hasOneof(6); + } + + /** + * A pre-existing query that was matched to retrieve data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.MatchedQuery matched_query = 6; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\MatchedQuery $var + * @return $this + */ + public function setMatchedQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\MatchedQuery::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataQuery.php new file mode 100644 index 000000000000..f46b7f983940 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataQuery.php @@ -0,0 +1,193 @@ +google.cloud.geminidataanalytics.v1beta.DataQuery + */ +class DataQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A natural language question to answer. + * + * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $question = ''; + /** + * Optional. A snake-case name for the query that reflects its intent. It is + * used to name the corresponding data result, so that it can be referenced in + * later steps. + * * Example: "total_sales_by_product" + * * Example: "sales_for_product_12345" + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $name = ''; + /** + * Optional. The datasources available to answer the question. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $datasources; + protected $query_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery $looker + * Optional. A query for retrieving data from a Looker explore. + * @type string $question + * Optional. A natural language question to answer. + * @type string $name + * Optional. A snake-case name for the query that reflects its intent. It is + * used to name the corresponding data result, so that it can be referenced in + * later steps. + * * Example: "total_sales_by_product" + * * Example: "sales_for_product_12345" + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Datasource[] $datasources + * Optional. The datasources available to answer the question. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A query for retrieving data from a Looker explore. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery|null + */ + public function getLooker() + { + return $this->readOneof(4); + } + + public function hasLooker() + { + return $this->hasOneof(4); + } + + /** + * Optional. A query for retrieving data from a Looker explore. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery $var + * @return $this + */ + public function setLooker($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Optional. A natural language question to answer. + * + * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getQuestion() + { + return $this->question; + } + + /** + * Optional. A natural language question to answer. + * + * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setQuestion($var) + { + GPBUtil::checkString($var, True); + $this->question = $var; + + return $this; + } + + /** + * Optional. A snake-case name for the query that reflects its intent. It is + * used to name the corresponding data result, so that it can be referenced in + * later steps. + * * Example: "total_sales_by_product" + * * Example: "sales_for_product_12345" + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. A snake-case name for the query that reflects its intent. It is + * used to name the corresponding data result, so that it can be referenced in + * later steps. + * * Example: "total_sales_by_product" + * * Example: "sales_for_product_12345" + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The datasources available to answer the question. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\Datasource> + */ + public function getDatasources() + { + return $this->datasources; + } + + /** + * Optional. The datasources available to answer the question. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Datasource[] $var + * @return $this + */ + public function setDatasources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\Datasource::class); + $this->datasources = $arr; + + return $this; + } + + /** + * @return string + */ + public function getQueryType() + { + return $this->whichOneof("query_type"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataResult.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataResult.php new file mode 100644 index 000000000000..f932924f5f71 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataResult.php @@ -0,0 +1,227 @@ +google.cloud.geminidataanalytics.v1beta.DataResult + */ +class DataResult extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A snake-case name for the data result that reflects its contents. + * The name is used to pass the result around by reference, and serves as a + * signal about its meaning. + * * Example: "total_sales_by_product" + * * Example: "sales_for_product_12345" + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $name = ''; + /** + * Optional. The schema of the data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $schema = null; + /** + * Optional. The content of the data. Each row is a struct that matches the + * schema. Simple values are represented as strings, while nested structures + * are represented as lists or structs. + * + * Generated from protobuf field repeated .google.protobuf.Struct data = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $data; + /** + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + * + * Generated from protobuf field repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $formatted_data; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Optional. A snake-case name for the data result that reflects its contents. + * The name is used to pass the result around by reference, and serves as a + * signal about its meaning. + * * Example: "total_sales_by_product" + * * Example: "sales_for_product_12345" + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $schema + * Optional. The schema of the data. + * @type \Google\Protobuf\Struct[] $data + * Optional. The content of the data. Each row is a struct that matches the + * schema. Simple values are represented as strings, while nested structures + * are represented as lists or structs. + * @type \Google\Protobuf\Struct[] $formatted_data + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A snake-case name for the data result that reflects its contents. + * The name is used to pass the result around by reference, and serves as a + * signal about its meaning. + * * Example: "total_sales_by_product" + * * Example: "sales_for_product_12345" + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. A snake-case name for the data result that reflects its contents. + * The name is used to pass the result around by reference, and serves as a + * signal about its meaning. + * * Example: "total_sales_by_product" + * * Example: "sales_for_product_12345" + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The schema of the data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Schema|null + */ + public function getSchema() + { + return $this->schema; + } + + public function hasSchema() + { + return isset($this->schema); + } + + public function clearSchema() + { + unset($this->schema); + } + + /** + * Optional. The schema of the data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Schema::class); + $this->schema = $var; + + return $this; + } + + /** + * Optional. The content of the data. Each row is a struct that matches the + * schema. Simple values are represented as strings, while nested structures + * are represented as lists or structs. + * + * Generated from protobuf field repeated .google.protobuf.Struct data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Protobuf\Struct> + */ + public function getData() + { + return $this->data; + } + + /** + * Optional. The content of the data. Each row is a struct that matches the + * schema. Simple values are represented as strings, while nested structures + * are represented as lists or structs. + * + * Generated from protobuf field repeated .google.protobuf.Struct data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Struct[] $var + * @return $this + */ + public function setData($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Struct::class); + $this->data = $arr; + + return $this; + } + + /** + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + * + * Generated from protobuf field repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Protobuf\Struct> + */ + public function getFormattedData() + { + return $this->formatted_data; + } + + /** + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + * + * Generated from protobuf field repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Struct[] $var + * @return $this + */ + public function setFormattedData($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Struct::class); + $this->formatted_data = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatabaseTableReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatabaseTableReference.php new file mode 100644 index 000000000000..2a9bbed9075d --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatabaseTableReference.php @@ -0,0 +1,195 @@ +google.cloud.geminidataanalytics.v1beta.DatabaseTableReference + */ +class DatabaseTableReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the table as defined in the database. + * Note: The precise rules for table naming, including valid characters, + * length limits, and case sensitivity, are determined by the specific + * database system. + * Requirements: + * - Exact Match: The provided name must be identical to the name stored + * in the database. + * - Case Sensitivity: Respect the case sensitivity rules of the specific + * database system and how the table was created. For example, "Orders" + * and "orders" may be distinct table names. + * - Special Characters/Keywords: If the table name includes spaces, special + * characters, or is a database reserved keyword, provide the literal name + * as it is stored. Do not add any database-specific identifier quoting + * characters (e.g., ", `, []). + * Examples: + * - Simple name: "orders", "UserActivity" + * - Case sensitive: "MyTable" + * - Name with spaces: "Order Details" + * - Name with other special characters: "user/data", "order-items" + * - Name that is a keyword: "Group", "Order" + * Permissions: The caller's credentials must have the necessary database + * permissions to access the table's schema and data. + * + * Generated from protobuf field string table_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $table_id = ''; + /** + * Optional. The schema of the table. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $schema = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $table_id + * Required. The name of the table as defined in the database. + * Note: The precise rules for table naming, including valid characters, + * length limits, and case sensitivity, are determined by the specific + * database system. + * Requirements: + * - Exact Match: The provided name must be identical to the name stored + * in the database. + * - Case Sensitivity: Respect the case sensitivity rules of the specific + * database system and how the table was created. For example, "Orders" + * and "orders" may be distinct table names. + * - Special Characters/Keywords: If the table name includes spaces, special + * characters, or is a database reserved keyword, provide the literal name + * as it is stored. Do not add any database-specific identifier quoting + * characters (e.g., ", `, []). + * Examples: + * - Simple name: "orders", "UserActivity" + * - Case sensitive: "MyTable" + * - Name with spaces: "Order Details" + * - Name with other special characters: "user/data", "order-items" + * - Name that is a keyword: "Group", "Order" + * Permissions: The caller's credentials must have the necessary database + * permissions to access the table's schema and data. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $schema + * Optional. The schema of the table. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the table as defined in the database. + * Note: The precise rules for table naming, including valid characters, + * length limits, and case sensitivity, are determined by the specific + * database system. + * Requirements: + * - Exact Match: The provided name must be identical to the name stored + * in the database. + * - Case Sensitivity: Respect the case sensitivity rules of the specific + * database system and how the table was created. For example, "Orders" + * and "orders" may be distinct table names. + * - Special Characters/Keywords: If the table name includes spaces, special + * characters, or is a database reserved keyword, provide the literal name + * as it is stored. Do not add any database-specific identifier quoting + * characters (e.g., ", `, []). + * Examples: + * - Simple name: "orders", "UserActivity" + * - Case sensitive: "MyTable" + * - Name with spaces: "Order Details" + * - Name with other special characters: "user/data", "order-items" + * - Name that is a keyword: "Group", "Order" + * Permissions: The caller's credentials must have the necessary database + * permissions to access the table's schema and data. + * + * Generated from protobuf field string table_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTableId() + { + return $this->table_id; + } + + /** + * Required. The name of the table as defined in the database. + * Note: The precise rules for table naming, including valid characters, + * length limits, and case sensitivity, are determined by the specific + * database system. + * Requirements: + * - Exact Match: The provided name must be identical to the name stored + * in the database. + * - Case Sensitivity: Respect the case sensitivity rules of the specific + * database system and how the table was created. For example, "Orders" + * and "orders" may be distinct table names. + * - Special Characters/Keywords: If the table name includes spaces, special + * characters, or is a database reserved keyword, provide the literal name + * as it is stored. Do not add any database-specific identifier quoting + * characters (e.g., ", `, []). + * Examples: + * - Simple name: "orders", "UserActivity" + * - Case sensitive: "MyTable" + * - Name with spaces: "Order Details" + * - Name with other special characters: "user/data", "order-items" + * - Name that is a keyword: "Group", "Order" + * Permissions: The caller's credentials must have the necessary database + * permissions to access the table's schema and data. + * + * Generated from protobuf field string table_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTableId($var) + { + GPBUtil::checkString($var, True); + $this->table_id = $var; + + return $this; + } + + /** + * Optional. The schema of the table. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Schema|null + */ + public function getSchema() + { + return $this->schema; + } + + public function hasSchema() + { + return isset($this->schema); + } + + public function clearSchema() + { + unset($this->schema); + } + + /** + * Optional. The schema of the table. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Schema::class); + $this->schema = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Datasource.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Datasource.php new file mode 100644 index 000000000000..c2bffe5ab7b5 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Datasource.php @@ -0,0 +1,377 @@ +google.cloud.geminidataanalytics.v1beta.Datasource + */ +class Datasource extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The schema of the datasource. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $schema = null; + /** + * Optional. A struct representation of the schema. + * This is populated for datasources with schemas that cannot be + * fully represented by the strongly-typed `schema` field. + * For Looker datasources, this maps to the LookmlModelExplore type: + * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore + * + * Generated from protobuf field .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $struct_schema = null; + protected $reference; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference $bigquery_table_reference + * A reference to a BigQuery table. + * @type string $studio_datasource_id + * A reference to a Looker Studio datasource. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReference $looker_explore_reference + * A reference to a Looker explore. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbReference $alloy_db_reference + * A reference to an AlloyDB database. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerReference $spanner_reference + * A reference to a Spanner database. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlReference $cloud_sql_reference + * A reference to a CloudSQL database. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference $bigquery_property_graph_reference + * A reference to a BigQuery property graph. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $schema + * Optional. The schema of the datasource. + * @type \Google\Protobuf\Struct $struct_schema + * Optional. A struct representation of the schema. + * This is populated for datasources with schemas that cannot be + * fully represented by the strongly-typed `schema` field. + * For Looker datasources, this maps to the LookmlModelExplore type: + * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * A reference to a BigQuery table. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference bigquery_table_reference = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference|null + */ + public function getBigqueryTableReference() + { + return $this->readOneof(1); + } + + public function hasBigqueryTableReference() + { + return $this->hasOneof(1); + } + + /** + * A reference to a BigQuery table. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference bigquery_table_reference = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference $var + * @return $this + */ + public function setBigqueryTableReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A reference to a Looker Studio datasource. + * + * Generated from protobuf field string studio_datasource_id = 2; + * @return string + */ + public function getStudioDatasourceId() + { + return $this->readOneof(2); + } + + public function hasStudioDatasourceId() + { + return $this->hasOneof(2); + } + + /** + * A reference to a Looker Studio datasource. + * + * Generated from protobuf field string studio_datasource_id = 2; + * @param string $var + * @return $this + */ + public function setStudioDatasourceId($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A reference to a Looker explore. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerExploreReference looker_explore_reference = 4; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReference|null + */ + public function getLookerExploreReference() + { + return $this->readOneof(4); + } + + public function hasLookerExploreReference() + { + return $this->hasOneof(4); + } + + /** + * A reference to a Looker explore. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerExploreReference looker_explore_reference = 4; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReference $var + * @return $this + */ + public function setLookerExploreReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReference::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * A reference to an AlloyDB database. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbReference|null + */ + public function getAlloyDbReference() + { + return $this->readOneof(12); + } + + public function hasAlloyDbReference() + { + return $this->hasOneof(12); + } + + /** + * A reference to an AlloyDB database. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbReference $var + * @return $this + */ + public function setAlloyDbReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbReference::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * A reference to a Spanner database. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerReference|null + */ + public function getSpannerReference() + { + return $this->readOneof(13); + } + + public function hasSpannerReference() + { + return $this->hasOneof(13); + } + + /** + * A reference to a Spanner database. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerReference $var + * @return $this + */ + public function setSpannerReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerReference::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * A reference to a CloudSQL database. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlReference|null + */ + public function getCloudSqlReference() + { + return $this->readOneof(14); + } + + public function hasCloudSqlReference() + { + return $this->hasOneof(14); + } + + /** + * A reference to a CloudSQL database. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlReference $var + * @return $this + */ + public function setCloudSqlReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlReference::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * A reference to a BigQuery property graph. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReference bigquery_property_graph_reference = 16; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference|null + */ + public function getBigqueryPropertyGraphReference() + { + return $this->readOneof(16); + } + + public function hasBigqueryPropertyGraphReference() + { + return $this->hasOneof(16); + } + + /** + * A reference to a BigQuery property graph. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReference bigquery_property_graph_reference = 16; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference $var + * @return $this + */ + public function setBigqueryPropertyGraphReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference::class); + $this->writeOneof(16, $var); + + return $this; + } + + /** + * Optional. The schema of the datasource. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Schema|null + */ + public function getSchema() + { + return $this->schema; + } + + public function hasSchema() + { + return isset($this->schema); + } + + public function clearSchema() + { + unset($this->schema); + } + + /** + * Optional. The schema of the datasource. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Schema::class); + $this->schema = $var; + + return $this; + } + + /** + * Optional. A struct representation of the schema. + * This is populated for datasources with schemas that cannot be + * fully represented by the strongly-typed `schema` field. + * For Looker datasources, this maps to the LookmlModelExplore type: + * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore + * + * Generated from protobuf field .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Struct|null + */ + public function getStructSchema() + { + return $this->struct_schema; + } + + public function hasStructSchema() + { + return isset($this->struct_schema); + } + + public function clearStructSchema() + { + unset($this->struct_schema); + } + + /** + * Optional. A struct representation of the schema. + * This is populated for datasources with schemas that cannot be + * fully represented by the strongly-typed `schema` field. + * For Looker datasources, this maps to the LookmlModelExplore type: + * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore + * + * Generated from protobuf field .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setStructSchema($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->struct_schema = $var; + + return $this; + } + + /** + * @return string + */ + public function getReference() + { + return $this->whichOneof("reference"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatasourceOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatasourceOptions.php new file mode 100644 index 000000000000..df74e31074ab --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatasourceOptions.php @@ -0,0 +1,122 @@ +google.cloud.geminidataanalytics.v1beta.DatasourceOptions + */ +class DatasourceOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. This option applies to datasources that require BigQuery queries + * only. Limits the bytes billed for each BQ query job. Queries that will have + * bytes billed beyond this limit will fail (without incurring a charge). + * If unspecified, no limit will be applied. + * + * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $big_query_max_billed_bytes = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Int64Value $big_query_max_billed_bytes + * Optional. This option applies to datasources that require BigQuery queries + * only. Limits the bytes billed for each BQ query job. Queries that will have + * bytes billed beyond this limit will fail (without incurring a charge). + * If unspecified, no limit will be applied. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * Optional. This option applies to datasources that require BigQuery queries + * only. Limits the bytes billed for each BQ query job. Queries that will have + * bytes billed beyond this limit will fail (without incurring a charge). + * If unspecified, no limit will be applied. + * + * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Int64Value|null + */ + public function getBigQueryMaxBilledBytes() + { + return $this->big_query_max_billed_bytes; + } + + public function hasBigQueryMaxBilledBytes() + { + return isset($this->big_query_max_billed_bytes); + } + + public function clearBigQueryMaxBilledBytes() + { + unset($this->big_query_max_billed_bytes); + } + + /** + * Returns the unboxed value from getBigQueryMaxBilledBytes() + + * Optional. This option applies to datasources that require BigQuery queries + * only. Limits the bytes billed for each BQ query job. Queries that will have + * bytes billed beyond this limit will fail (without incurring a charge). + * If unspecified, no limit will be applied. + * + * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string|null + */ + public function getBigQueryMaxBilledBytesUnwrapped() + { + return $this->readWrapperValue("big_query_max_billed_bytes"); + } + + /** + * Optional. This option applies to datasources that require BigQuery queries + * only. Limits the bytes billed for each BQ query job. Queries that will have + * bytes billed beyond this limit will fail (without incurring a charge). + * If unspecified, no limit will be applied. + * + * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Int64Value $var + * @return $this + */ + public function setBigQueryMaxBilledBytes($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int64Value::class); + $this->big_query_max_billed_bytes = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object. + + * Optional. This option applies to datasources that require BigQuery queries + * only. Limits the bytes billed for each BQ query job. Queries that will have + * bytes billed beyond this limit will fail (without incurring a charge). + * If unspecified, no limit will be applied. + * + * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string|null $var + * @return $this + */ + public function setBigQueryMaxBilledBytesUnwrapped($var) + { + $this->writeWrapperValue("big_query_max_billed_bytes", $var); + return $this;} + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatasourceReferences.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatasourceReferences.php new file mode 100644 index 000000000000..1290eb24325f --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatasourceReferences.php @@ -0,0 +1,249 @@ +google.cloud.geminidataanalytics.v1beta.DatasourceReferences + */ +class DatasourceReferences extends \Google\Protobuf\Internal\Message +{ + protected $references; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReferences $bq + * References to BigQuery tables. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReferences $studio + * References to Looker Studio datasources. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReferences $looker + * References to Looker Explores. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbReference $alloydb + * Reference to an AlloyDB database. Only supported for the `QueryData` + * method. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerReference $spanner_reference + * Reference to a Spanner database. Only supported for the `QueryData` + * method. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlReference $cloud_sql_reference + * Reference to a CloudSql database. Only supported for the `QueryData` + * method. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * References to BigQuery tables. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryTableReferences bq = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReferences|null + */ + public function getBq() + { + return $this->readOneof(1); + } + + public function hasBq() + { + return $this->hasOneof(1); + } + + /** + * References to BigQuery tables. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryTableReferences bq = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReferences $var + * @return $this + */ + public function setBq($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReferences::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * References to Looker Studio datasources. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferences studio = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReferences|null + */ + public function getStudio() + { + return $this->readOneof(2); + } + + public function hasStudio() + { + return $this->hasOneof(2); + } + + /** + * References to Looker Studio datasources. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferences studio = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReferences $var + * @return $this + */ + public function setStudio($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReferences::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * References to Looker Explores. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerExploreReferences looker = 3; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReferences|null + */ + public function getLooker() + { + return $this->readOneof(3); + } + + public function hasLooker() + { + return $this->hasOneof(3); + } + + /** + * References to Looker Explores. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerExploreReferences looker = 3; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReferences $var + * @return $this + */ + public function setLooker($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReferences::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Reference to an AlloyDB database. Only supported for the `QueryData` + * method. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbReference|null + */ + public function getAlloydb() + { + return $this->readOneof(8); + } + + public function hasAlloydb() + { + return $this->hasOneof(8); + } + + /** + * Reference to an AlloyDB database. Only supported for the `QueryData` + * method. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbReference $var + * @return $this + */ + public function setAlloydb($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbReference::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Reference to a Spanner database. Only supported for the `QueryData` + * method. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerReference|null + */ + public function getSpannerReference() + { + return $this->readOneof(9); + } + + public function hasSpannerReference() + { + return $this->hasOneof(9); + } + + /** + * Reference to a Spanner database. Only supported for the `QueryData` + * method. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerReference $var + * @return $this + */ + public function setSpannerReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerReference::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Reference to a CloudSql database. Only supported for the `QueryData` + * method. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlReference|null + */ + public function getCloudSqlReference() + { + return $this->readOneof(10); + } + + public function hasCloudSqlReference() + { + return $this->hasOneof(10); + } + + /** + * Reference to a CloudSql database. Only supported for the `QueryData` + * method. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlReference $var + * @return $this + */ + public function setCloudSqlReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlReference::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * @return string + */ + public function getReferences() + { + return $this->whichOneof("references"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DeleteConversationRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DeleteConversationRequest.php new file mode 100644 index 000000000000..b94bcfca774c --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DeleteConversationRequest.php @@ -0,0 +1,91 @@ +google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest + */ +class DeleteConversationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * Please see {@see DataChatServiceClient::conversationName()} for help formatting this field. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DeleteConversationRequest + * + * @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. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Conversation::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * + * 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. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * + * 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DeleteDataAgentRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DeleteDataAgentRequest.php new file mode 100644 index 000000000000..e0f0acd275f6 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DeleteDataAgentRequest.php @@ -0,0 +1,155 @@ +google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest + */ +class DeleteDataAgentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $name Required. Name of the resource. Please see + * {@see DataAgentServiceClient::dataAgentName()} for help formatting this field. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DeleteDataAgentRequest + * + * @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. Name of the resource. + * @type string $request_id + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgentService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the resource. + * + * 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. Name of the resource. + * + * 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. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ErrorMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ErrorMessage.php new file mode 100644 index 000000000000..4a33f7fb82f4 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ErrorMessage.php @@ -0,0 +1,78 @@ +google.cloud.geminidataanalytics.v1beta.ErrorMessage + */ +class ErrorMessage extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The text of the error. + * + * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $text = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $text + * Output only. The text of the error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The text of the error. + * + * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * Output only. The text of the error. + * + * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->text = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExampleQueries.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExampleQueries.php new file mode 100644 index 000000000000..362a27ec356b --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExampleQueries.php @@ -0,0 +1,79 @@ +google.cloud.geminidataanalytics.v1beta.ExampleQueries + */ +class ExampleQueries extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A list of derived and authored example queries, providing + * examples of relevant and commonly used SQL queries and their corresponding + * natural language queries optionally present. Currently only used for + * BigQuery data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $example_queries; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery[] $example_queries + * Optional. A list of derived and authored example queries, providing + * examples of relevant and commonly used SQL queries and their corresponding + * natural language queries optionally present. Currently only used for + * BigQuery data sources. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A list of derived and authored example queries, providing + * examples of relevant and commonly used SQL queries and their corresponding + * natural language queries optionally present. Currently only used for + * BigQuery data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery> + */ + public function getExampleQueries() + { + return $this->example_queries; + } + + /** + * Optional. A list of derived and authored example queries, providing + * examples of relevant and commonly used SQL queries and their corresponding + * natural language queries optionally present. Currently only used for + * BigQuery data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery[] $var + * @return $this + */ + public function setExampleQueries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery::class); + $this->example_queries = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExampleQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExampleQuery.php new file mode 100644 index 000000000000..8fa837a7aed7 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExampleQuery.php @@ -0,0 +1,167 @@ +google.cloud.geminidataanalytics.v1beta.ExampleQuery + */ +class ExampleQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A natural language question that a user might ask. + * For example: "How many orders were placed last month?" + * + * Generated from protobuf field string natural_language_question = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $natural_language_question = ''; + /** + * Optional. The list of query parameters. + * Example: The parameterized SQL query + * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of + * id. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.QueryParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $parameters; + protected $query; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $sql_query + * Optional. The SQL query that should be generated to answer the natural + * language question. For example: "SELECT COUNT(*) FROM orders WHERE + * order_date BETWEEN '2024-01-01' AND '2024-01-31'" + * @type string $natural_language_question + * Optional. A natural language question that a user might ask. + * For example: "How many orders were placed last month?" + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\QueryParameter[] $parameters + * Optional. The list of query parameters. + * Example: The parameterized SQL query + * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of + * id. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The SQL query that should be generated to answer the natural + * language question. For example: "SELECT COUNT(*) FROM orders WHERE + * order_date BETWEEN '2024-01-01' AND '2024-01-31'" + * + * Generated from protobuf field string sql_query = 101 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSqlQuery() + { + return $this->readOneof(101); + } + + public function hasSqlQuery() + { + return $this->hasOneof(101); + } + + /** + * Optional. The SQL query that should be generated to answer the natural + * language question. For example: "SELECT COUNT(*) FROM orders WHERE + * order_date BETWEEN '2024-01-01' AND '2024-01-31'" + * + * Generated from protobuf field string sql_query = 101 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSqlQuery($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * Optional. A natural language question that a user might ask. + * For example: "How many orders were placed last month?" + * + * Generated from protobuf field string natural_language_question = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getNaturalLanguageQuestion() + { + return $this->natural_language_question; + } + + /** + * Optional. A natural language question that a user might ask. + * For example: "How many orders were placed last month?" + * + * Generated from protobuf field string natural_language_question = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setNaturalLanguageQuestion($var) + { + GPBUtil::checkString($var, True); + $this->natural_language_question = $var; + + return $this; + } + + /** + * Optional. The list of query parameters. + * Example: The parameterized SQL query + * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of + * id. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.QueryParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\QueryParameter> + */ + public function getParameters() + { + return $this->parameters; + } + + /** + * Optional. The list of query parameters. + * Example: The parameterized SQL query + * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of + * id. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.QueryParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\QueryParameter[] $var + * @return $this + */ + public function setParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\QueryParameter::class); + $this->parameters = $arr; + + return $this; + } + + /** + * @return string + */ + public function getQuery() + { + return $this->whichOneof("query"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult.php new file mode 100644 index 000000000000..aef31a4a685c --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult.php @@ -0,0 +1,227 @@ +google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult + */ +class ExecutedQueryResult extends \Google\Protobuf\Internal\Message +{ + /** + * The columns in the result set, in order. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + */ + private $columns; + /** + * The rows returned by the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + */ + private $rows; + /** + * The total number of rows in the full result set, if known. + * This may be an estimate or an exact count. + * + * Generated from protobuf field int64 total_row_count = 3; + */ + protected $total_row_count = 0; + /** + * Set to true if the returned rows in `query_result` are a subset of the + * full result. This can happen, for example, if the query execution hits a + * row limit. When true, the `query_result` does not contain all + * rows. To retrieve the complete result, consider using the + * `generated_query` in `QueryDataResponse` and executing it in your own + * environment. + * + * Generated from protobuf field bool partial_result = 4; + */ + protected $partial_result = false; + /** + * The error message if the query execution failed. + * + * Generated from protobuf field string query_execution_error = 5; + */ + protected $query_execution_error = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Column[] $columns + * The columns in the result set, in order. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Row[] $rows + * The rows returned by the query. + * @type int|string $total_row_count + * The total number of rows in the full result set, if known. + * This may be an estimate or an exact count. + * @type bool $partial_result + * Set to true if the returned rows in `query_result` are a subset of the + * full result. This can happen, for example, if the query execution hits a + * row limit. When true, the `query_result` does not contain all + * rows. To retrieve the complete result, consider using the + * `generated_query` in `QueryDataResponse` and executing it in your own + * environment. + * @type string $query_execution_error + * The error message if the query execution failed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * The columns in the result set, in order. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Column> + */ + public function getColumns() + { + return $this->columns; + } + + /** + * The columns in the result set, in order. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Column[] $var + * @return $this + */ + public function setColumns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Column::class); + $this->columns = $arr; + + return $this; + } + + /** + * The rows returned by the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Row> + */ + public function getRows() + { + return $this->rows; + } + + /** + * The rows returned by the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Row[] $var + * @return $this + */ + public function setRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Row::class); + $this->rows = $arr; + + return $this; + } + + /** + * The total number of rows in the full result set, if known. + * This may be an estimate or an exact count. + * + * Generated from protobuf field int64 total_row_count = 3; + * @return int|string + */ + public function getTotalRowCount() + { + return $this->total_row_count; + } + + /** + * The total number of rows in the full result set, if known. + * This may be an estimate or an exact count. + * + * Generated from protobuf field int64 total_row_count = 3; + * @param int|string $var + * @return $this + */ + public function setTotalRowCount($var) + { + GPBUtil::checkInt64($var); + $this->total_row_count = $var; + + return $this; + } + + /** + * Set to true if the returned rows in `query_result` are a subset of the + * full result. This can happen, for example, if the query execution hits a + * row limit. When true, the `query_result` does not contain all + * rows. To retrieve the complete result, consider using the + * `generated_query` in `QueryDataResponse` and executing it in your own + * environment. + * + * Generated from protobuf field bool partial_result = 4; + * @return bool + */ + public function getPartialResult() + { + return $this->partial_result; + } + + /** + * Set to true if the returned rows in `query_result` are a subset of the + * full result. This can happen, for example, if the query execution hits a + * row limit. When true, the `query_result` does not contain all + * rows. To retrieve the complete result, consider using the + * `generated_query` in `QueryDataResponse` and executing it in your own + * environment. + * + * Generated from protobuf field bool partial_result = 4; + * @param bool $var + * @return $this + */ + public function setPartialResult($var) + { + GPBUtil::checkBool($var); + $this->partial_result = $var; + + return $this; + } + + /** + * The error message if the query execution failed. + * + * Generated from protobuf field string query_execution_error = 5; + * @return string + */ + public function getQueryExecutionError() + { + return $this->query_execution_error; + } + + /** + * The error message if the query execution failed. + * + * Generated from protobuf field string query_execution_error = 5; + * @param string $var + * @return $this + */ + public function setQueryExecutionError($var) + { + GPBUtil::checkString($var, True); + $this->query_execution_error = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Column.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Column.php new file mode 100644 index 000000000000..70b267680ae5 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Column.php @@ -0,0 +1,101 @@ +google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column + */ +class Column extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the column. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP"). + * + * Generated from protobuf field string type = 2; + */ + protected $type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the column. + * @type string $type + * The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP"). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * The name of the column. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the column. + * + * 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; + } + + /** + * The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP"). + * + * Generated from protobuf field string type = 2; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP"). + * + * Generated from protobuf field string type = 2; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Row.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Row.php new file mode 100644 index 000000000000..dbdb343eb341 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Row.php @@ -0,0 +1,67 @@ +google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row + */ +class Row extends \Google\Protobuf\Internal\Message +{ + /** + * The values in the row, corresponding positionally to the columns. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Value[] $values + * The values in the row, corresponding positionally to the columns. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * The values in the row, corresponding positionally to the columns. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Value> + */ + public function getValues() + { + return $this->values; + } + + /** + * The values in the row, corresponding positionally to the columns. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Value[] $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Value::class); + $this->values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Value.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Value.php new file mode 100644 index 000000000000..fd4dc0e6d314 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Value.php @@ -0,0 +1,75 @@ +google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value + */ +class Value extends \Google\Protobuf\Internal\Message +{ + /** + * The cell value, represented in a string format. + * Timestamps could be formatted, for example, using RFC3339Nano. + * This field is used if the value is not null. + * + * Generated from protobuf field string value = 1; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $value + * The cell value, represented in a string format. + * Timestamps could be formatted, for example, using RFC3339Nano. + * This field is used if the value is not null. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * The cell value, represented in a string format. + * Timestamps could be formatted, for example, using RFC3339Nano. + * This field is used if the value is not null. + * + * Generated from protobuf field string value = 1; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The cell value, represented in a string format. + * Timestamps could be formatted, for example, using RFC3339Nano. + * This field is used if the value is not null. + * + * Generated from protobuf field string value = 1; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Field.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Field.php new file mode 100644 index 000000000000..dea0c89210ed --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Field.php @@ -0,0 +1,397 @@ +google.cloud.geminidataanalytics.v1beta.Field + */ +class Field extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The name of the field. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $name = ''; + /** + * Optional. The type of the field. + * + * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $type = ''; + /** + * Optional. A brief description of the field. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. The mode of the field (e.g., NULLABLE, REPEATED). + * + * Generated from protobuf field string mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $mode = ''; + /** + * Optional. A list of alternative names or synonyms that can be used to refer + * to this field. For example: ["id", "customerid", "cust_id"]. Currently only + * used for BigQuery data sources. + * + * Generated from protobuf field repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $synonyms; + /** + * Optional. A list of tags or keywords associated with the field, used for + * categorization. For example: ["identifier", "customer", "pii"]. Currently + * only used for BigQuery data sources. + * + * Generated from protobuf field repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $tags; + /** + * Optional. Field display_name (same as label in + * + * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. Recursive property for nested schema structures. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Field subfields = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $subfields; + /** + * Optional. Field category, not required, currently only useful for Looker. + * + * Generated from protobuf field string category = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $category = ''; + /** + * Optional. Looker only. Value format of the field. + * Ref: + * https://cloud.google.com/looker/docs/reference/param-field-value-format + * + * Generated from protobuf field string value_format = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $value_format = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Optional. The name of the field. + * @type string $type + * Optional. The type of the field. + * @type string $description + * Optional. A brief description of the field. + * @type string $mode + * Optional. The mode of the field (e.g., NULLABLE, REPEATED). + * @type string[] $synonyms + * Optional. A list of alternative names or synonyms that can be used to refer + * to this field. For example: ["id", "customerid", "cust_id"]. Currently only + * used for BigQuery data sources. + * @type string[] $tags + * Optional. A list of tags or keywords associated with the field, used for + * categorization. For example: ["identifier", "customer", "pii"]. Currently + * only used for BigQuery data sources. + * @type string $display_name + * Optional. Field display_name (same as label in + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Field[] $subfields + * Optional. Recursive property for nested schema structures. + * @type string $category + * Optional. Field category, not required, currently only useful for Looker. + * @type string $value_format + * Optional. Looker only. Value format of the field. + * Ref: + * https://cloud.google.com/looker/docs/reference/param-field-value-format + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The name of the field. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. The name of the field. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The type of the field. + * + * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Optional. The type of the field. + * + * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Optional. A brief description of the field. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A brief description of the field. + * + * 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. The mode of the field (e.g., NULLABLE, REPEATED). + * + * Generated from protobuf field string mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMode() + { + return $this->mode; + } + + /** + * Optional. The mode of the field (e.g., NULLABLE, REPEATED). + * + * Generated from protobuf field string mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMode($var) + { + GPBUtil::checkString($var, True); + $this->mode = $var; + + return $this; + } + + /** + * Optional. A list of alternative names or synonyms that can be used to refer + * to this field. For example: ["id", "customerid", "cust_id"]. Currently only + * used for BigQuery data sources. + * + * Generated from protobuf field repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getSynonyms() + { + return $this->synonyms; + } + + /** + * Optional. A list of alternative names or synonyms that can be used to refer + * to this field. For example: ["id", "customerid", "cust_id"]. Currently only + * used for BigQuery data sources. + * + * Generated from protobuf field repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setSynonyms($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->synonyms = $arr; + + return $this; + } + + /** + * Optional. A list of tags or keywords associated with the field, used for + * categorization. For example: ["identifier", "customer", "pii"]. Currently + * only used for BigQuery data sources. + * + * Generated from protobuf field repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Optional. A list of tags or keywords associated with the field, used for + * categorization. For example: ["identifier", "customer", "pii"]. Currently + * only used for BigQuery data sources. + * + * Generated from protobuf field repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * Optional. Field display_name (same as label in + * + * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. Field display_name (same as label in + * + * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Recursive property for nested schema structures. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Field subfields = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\Field> + */ + public function getSubfields() + { + return $this->subfields; + } + + /** + * Optional. Recursive property for nested schema structures. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Field subfields = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Field[] $var + * @return $this + */ + public function setSubfields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\Field::class); + $this->subfields = $arr; + + return $this; + } + + /** + * Optional. Field category, not required, currently only useful for Looker. + * + * Generated from protobuf field string category = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCategory() + { + return $this->category; + } + + /** + * Optional. Field category, not required, currently only useful for Looker. + * + * Generated from protobuf field string category = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCategory($var) + { + GPBUtil::checkString($var, True); + $this->category = $var; + + return $this; + } + + /** + * Optional. Looker only. Value format of the field. + * Ref: + * https://cloud.google.com/looker/docs/reference/param-field-value-format + * + * Generated from protobuf field string value_format = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getValueFormat() + { + return $this->value_format; + } + + /** + * Optional. Looker only. Value format of the field. + * Ref: + * https://cloud.google.com/looker/docs/reference/param-field-value-format + * + * Generated from protobuf field string value_format = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setValueFormat($var) + { + GPBUtil::checkString($var, True); + $this->value_format = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GenerationOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GenerationOptions.php new file mode 100644 index 000000000000..a8cf32589d61 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GenerationOptions.php @@ -0,0 +1,185 @@ +google.cloud.geminidataanalytics.v1beta.GenerationOptions + */ +class GenerationOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. If true, the generated query will be executed, and the result + * data will be returned in the response. + * + * Generated from protobuf field bool generate_query_result = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $generate_query_result = false; + /** + * Optional. If true, a natural language answer based on the query execution + * result will be generated and returned in the response. + * + * Generated from protobuf field bool generate_natural_language_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $generate_natural_language_answer = false; + /** + * Optional. If true, an explanation of the generated query will be returned + * in the response. + * + * Generated from protobuf field bool generate_explanation = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $generate_explanation = false; + /** + * Optional. If true (default to false), the service may return a + * clarifying_question if the input query is ambiguous. + * + * Generated from protobuf field bool generate_disambiguation_question = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $generate_disambiguation_question = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $generate_query_result + * Optional. If true, the generated query will be executed, and the result + * data will be returned in the response. + * @type bool $generate_natural_language_answer + * Optional. If true, a natural language answer based on the query execution + * result will be generated and returned in the response. + * @type bool $generate_explanation + * Optional. If true, an explanation of the generated query will be returned + * in the response. + * @type bool $generate_disambiguation_question + * Optional. If true (default to false), the service may return a + * clarifying_question if the input query is ambiguous. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. If true, the generated query will be executed, and the result + * data will be returned in the response. + * + * Generated from protobuf field bool generate_query_result = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getGenerateQueryResult() + { + return $this->generate_query_result; + } + + /** + * Optional. If true, the generated query will be executed, and the result + * data will be returned in the response. + * + * Generated from protobuf field bool generate_query_result = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setGenerateQueryResult($var) + { + GPBUtil::checkBool($var); + $this->generate_query_result = $var; + + return $this; + } + + /** + * Optional. If true, a natural language answer based on the query execution + * result will be generated and returned in the response. + * + * Generated from protobuf field bool generate_natural_language_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getGenerateNaturalLanguageAnswer() + { + return $this->generate_natural_language_answer; + } + + /** + * Optional. If true, a natural language answer based on the query execution + * result will be generated and returned in the response. + * + * Generated from protobuf field bool generate_natural_language_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setGenerateNaturalLanguageAnswer($var) + { + GPBUtil::checkBool($var); + $this->generate_natural_language_answer = $var; + + return $this; + } + + /** + * Optional. If true, an explanation of the generated query will be returned + * in the response. + * + * Generated from protobuf field bool generate_explanation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getGenerateExplanation() + { + return $this->generate_explanation; + } + + /** + * Optional. If true, an explanation of the generated query will be returned + * in the response. + * + * Generated from protobuf field bool generate_explanation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setGenerateExplanation($var) + { + GPBUtil::checkBool($var); + $this->generate_explanation = $var; + + return $this; + } + + /** + * Optional. If true (default to false), the service may return a + * clarifying_question if the input query is ambiguous. + * + * Generated from protobuf field bool generate_disambiguation_question = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getGenerateDisambiguationQuestion() + { + return $this->generate_disambiguation_question; + } + + /** + * Optional. If true (default to false), the service may return a + * clarifying_question if the input query is ambiguous. + * + * Generated from protobuf field bool generate_disambiguation_question = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setGenerateDisambiguationQuestion($var) + { + GPBUtil::checkBool($var); + $this->generate_disambiguation_question = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GetConversationRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GetConversationRequest.php new file mode 100644 index 000000000000..42f43cc54df7 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GetConversationRequest.php @@ -0,0 +1,91 @@ +google.cloud.geminidataanalytics.v1beta.GetConversationRequest + */ +class GetConversationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * Please see {@see DataChatServiceClient::conversationName()} for help formatting this field. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\GetConversationRequest + * + * @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. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Conversation::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * + * 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. Name of the resource. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * + * 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GetDataAgentRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GetDataAgentRequest.php new file mode 100644 index 000000000000..d01d49962a43 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GetDataAgentRequest.php @@ -0,0 +1,81 @@ +google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest + */ +class GetDataAgentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the resource. Please see + * {@see DataAgentServiceClient::dataAgentName()} for help formatting this field. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\GetDataAgentRequest + * + * @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. Name of the resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgentService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the resource. + * + * 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. Name of the resource. + * + * 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GlossaryTerm.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GlossaryTerm.php new file mode 100644 index 000000000000..a2a158f65916 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GlossaryTerm.php @@ -0,0 +1,151 @@ +google.cloud.geminidataanalytics.v1beta.GlossaryTerm + */ +class GlossaryTerm extends \Google\Protobuf\Internal\Message +{ + /** + * Required. User friendly display name of the glossary term being defined. + * For example: "CTR", "conversion rate", "pending" + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Required. The description or meaning of the term. + * For example: "Click-through rate", "The percentage of users who complete a + * desired action", "An order that is waiting to be processed." + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $description = ''; + /** + * Optional. A list of general purpose labels associated to this term. + * For example: ["click rate", "clickthrough", "waiting"] + * + * Generated from protobuf field repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Required. User friendly display name of the glossary term being defined. + * For example: "CTR", "conversion rate", "pending" + * @type string $description + * Required. The description or meaning of the term. + * For example: "Click-through rate", "The percentage of users who complete a + * desired action", "An order that is waiting to be processed." + * @type string[] $labels + * Optional. A list of general purpose labels associated to this term. + * For example: ["click rate", "clickthrough", "waiting"] + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * Required. User friendly display name of the glossary term being defined. + * For example: "CTR", "conversion rate", "pending" + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. User friendly display name of the glossary term being defined. + * For example: "CTR", "conversion rate", "pending" + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. The description or meaning of the term. + * For example: "Click-through rate", "The percentage of users who complete a + * desired action", "An order that is waiting to be processed." + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Required. The description or meaning of the term. + * For example: "Click-through rate", "The percentage of users who complete a + * desired action", "An order that is waiting to be processed." + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. A list of general purpose labels associated to this term. + * For example: ["click rate", "clickthrough", "waiting"] + * + * Generated from protobuf field repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. A list of general purpose labels associated to this term. + * For example: ["click rate", "clickthrough", "waiting"] + * + * Generated from protobuf field repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsRequest.php new file mode 100644 index 000000000000..6a46fd5aa357 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsRequest.php @@ -0,0 +1,313 @@ +google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest + */ +class ListAccessibleDataAgentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent value for ListAccessibleDataAgentsRequest. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Server may return fewer items than requested. + * If unspecified, server will pick an appropriate default. + * + * 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 `ListAccessibleDataAgents` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListAccessibleDataAgents` must match the call that provided the page + * token. The service may return fewer than this value. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. User specification for how to order the results. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. If true, the list results will include soft-deleted DataAgents. + * Defaults to false. + * + * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $show_deleted = false; + /** + * Optional. Filter for the creator of the agent. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest.CreatorFilter creator_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $creator_filter = 0; + + /** + * @param string $parent Required. Parent value for ListAccessibleDataAgentsRequest. Please see + * {@see DataAgentServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ListAccessibleDataAgentsRequest + * + * @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. Parent value for ListAccessibleDataAgentsRequest. + * @type int $page_size + * Optional. Server may return fewer items than requested. + * If unspecified, server will pick an appropriate default. + * @type string $page_token + * Optional. A page token, received from a previous `ListAccessibleDataAgents` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListAccessibleDataAgents` must match the call that provided the page + * token. The service may return fewer than this value. + * @type string $filter + * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * @type string $order_by + * Optional. User specification for how to order the results. + * @type bool $show_deleted + * Optional. If true, the list results will include soft-deleted DataAgents. + * Defaults to false. + * @type int $creator_filter + * Optional. Filter for the creator of the agent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgentService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent value for ListAccessibleDataAgentsRequest. + * + * 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. Parent value for ListAccessibleDataAgentsRequest. + * + * 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. Server may return fewer items than requested. + * If unspecified, server will pick an appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Server may return fewer items than requested. + * If unspecified, server will pick an appropriate default. + * + * 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 `ListAccessibleDataAgents` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListAccessibleDataAgents` must match the call that provided the page + * token. The service may return fewer than this value. + * + * 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 `ListAccessibleDataAgents` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListAccessibleDataAgents` must match the call that provided the page + * token. The service may return fewer than this value. + * + * 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. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * + * 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; + } + + /** + * Optional. User specification for how to order the results. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. User specification for how to order the results. + * + * Generated from protobuf field string order_by = 5 [(.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. If true, the list results will include soft-deleted DataAgents. + * Defaults to false. + * + * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getShowDeleted() + { + return $this->show_deleted; + } + + /** + * Optional. If true, the list results will include soft-deleted DataAgents. + * Defaults to false. + * + * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setShowDeleted($var) + { + GPBUtil::checkBool($var); + $this->show_deleted = $var; + + return $this; + } + + /** + * Optional. Filter for the creator of the agent. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest.CreatorFilter creator_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getCreatorFilter() + { + return $this->creator_filter; + } + + /** + * Optional. Filter for the creator of the agent. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest.CreatorFilter creator_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setCreatorFilter($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ListAccessibleDataAgentsRequest\CreatorFilter::class); + $this->creator_filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsRequest/CreatorFilter.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsRequest/CreatorFilter.php new file mode 100644 index 000000000000..567ffa204669 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsRequest/CreatorFilter.php @@ -0,0 +1,68 @@ +google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest.CreatorFilter + */ +class CreatorFilter +{ + /** + * Default value. + * + * Generated from protobuf enum CREATOR_FILTER_UNSPECIFIED = 0; + */ + const CREATOR_FILTER_UNSPECIFIED = 0; + /** + * No creator-specific filter will be applied. All agents will be returned. + * + * Generated from protobuf enum NONE = 1; + */ + const NONE = 1; + /** + * Only agents created by the user calling the API will be returned. + * + * Generated from protobuf enum CREATOR_ONLY = 2; + */ + const CREATOR_ONLY = 2; + /** + * Only agents not created by the user calling the API will be returned. + * + * Generated from protobuf enum NOT_CREATOR_ONLY = 3; + */ + const NOT_CREATOR_ONLY = 3; + + private static $valueToName = [ + self::CREATOR_FILTER_UNSPECIFIED => 'CREATOR_FILTER_UNSPECIFIED', + self::NONE => 'NONE', + self::CREATOR_ONLY => 'CREATOR_ONLY', + self::NOT_CREATOR_ONLY => 'NOT_CREATOR_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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsResponse.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsResponse.php new file mode 100644 index 000000000000..d4e87fbb7a16 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsResponse.php @@ -0,0 +1,135 @@ +google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse + */ +class ListAccessibleDataAgentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of accessible DataAgent. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DataAgent data_agents = 1; + */ + private $data_agents; + /** + * The next page token or empty if none. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Unordered list. Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent[] $data_agents + * The list of accessible DataAgent. + * @type string $next_page_token + * The next page token or empty if none. + * @type string[] $unreachable + * Unordered list. Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgentService::initOnce(); + parent::__construct($data); + } + + /** + * The list of accessible DataAgent. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DataAgent data_agents = 1; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent> + */ + public function getDataAgents() + { + return $this->data_agents; + } + + /** + * The list of accessible DataAgent. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DataAgent data_agents = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent[] $var + * @return $this + */ + public function setDataAgents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent::class); + $this->data_agents = $arr; + + return $this; + } + + /** + * The next page token or empty if none. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * The next page token or empty if none. + * + * 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; + } + + /** + * Unordered list. Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListConversationsRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListConversationsRequest.php new file mode 100644 index 000000000000..12ad4ed74775 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListConversationsRequest.php @@ -0,0 +1,212 @@ +google.cloud.geminidataanalytics.v1beta.ListConversationsRequest + */ +class ListConversationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent value for ListConversationsRequest. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Requested page size. Server may return fewer items than + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Returned conversations will match criteria specified within the + * filter. ListConversations allows filtering by: + * * agents + * * labels + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. Parent value for ListConversationsRequest. + * Format: `projects/{project}/locations/{location}` + * Please see {@see DataChatServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ListConversationsRequest + * + * @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. Parent value for ListConversationsRequest. + * Format: `projects/{project}/locations/{location}` + * @type int $page_size + * Optional. Requested page size. Server may return fewer items than + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. + * @type string $page_token + * Optional. A token identifying a page of results the server should return. + * @type string $filter + * Optional. Returned conversations will match criteria specified within the + * filter. ListConversations allows filtering by: + * * agents + * * labels + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Conversation::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent value for ListConversationsRequest. + * Format: `projects/{project}/locations/{location}` + * + * 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. Parent value for ListConversationsRequest. + * Format: `projects/{project}/locations/{location}` + * + * 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. Requested page size. Server may return fewer items than + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Requested page size. Server may return fewer items than + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. + * + * 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 token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * 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. Returned conversations will match criteria specified within the + * filter. ListConversations allows filtering by: + * * agents + * * labels + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Returned conversations will match criteria specified within the + * filter. ListConversations allows filtering by: + * * agents + * * labels + * + * 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListConversationsResponse.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListConversationsResponse.php new file mode 100644 index 000000000000..641e7ddcc0da --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListConversationsResponse.php @@ -0,0 +1,101 @@ +google.cloud.geminidataanalytics.v1beta.ListConversationsResponse + */ +class ListConversationsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of conversations. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Conversation conversations = 1; + */ + private $conversations; + /** + * A token identifying a page of results the server should return. + * + * 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\GeminiDataAnalytics\V1beta\Conversation[] $conversations + * The list of conversations. + * @type string $next_page_token + * A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Conversation::initOnce(); + parent::__construct($data); + } + + /** + * The list of conversations. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Conversation conversations = 1; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\Conversation> + */ + public function getConversations() + { + return $this->conversations; + } + + /** + * The list of conversations. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Conversation conversations = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Conversation[] $var + * @return $this + */ + public function setConversations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\Conversation::class); + $this->conversations = $arr; + + return $this; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token identifying a page of results the server should return. + * + * 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListDataAgentsRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListDataAgentsRequest.php new file mode 100644 index 000000000000..81e1650496d8 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListDataAgentsRequest.php @@ -0,0 +1,279 @@ +google.cloud.geminidataanalytics.v1beta.ListDataAgentsRequest + */ +class ListDataAgentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent value for ListDataAgentsRequest. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Server may return fewer items than requested. + * If unspecified, server will pick an appropriate default. + * + * 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 `ListDataAgents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataAgents` must + * match the call that provided the page token. The service may return fewer + * than this value. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. User specification for how to order the results. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. If true, the list results will include soft-deleted DataAgents. + * Defaults to false. + * + * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $show_deleted = false; + + /** + * @param string $parent Required. Parent value for ListDataAgentsRequest. Please see + * {@see DataAgentServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ListDataAgentsRequest + * + * @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. Parent value for ListDataAgentsRequest. + * @type int $page_size + * Optional. Server may return fewer items than requested. + * If unspecified, server will pick an appropriate default. + * @type string $page_token + * Optional. A page token, received from a previous `ListDataAgents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataAgents` must + * match the call that provided the page token. The service may return fewer + * than this value. + * @type string $filter + * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * @type string $order_by + * Optional. User specification for how to order the results. + * @type bool $show_deleted + * Optional. If true, the list results will include soft-deleted DataAgents. + * Defaults to false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgentService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent value for ListDataAgentsRequest. + * + * 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. Parent value for ListDataAgentsRequest. + * + * 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. Server may return fewer items than requested. + * If unspecified, server will pick an appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Server may return fewer items than requested. + * If unspecified, server will pick an appropriate default. + * + * 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 `ListDataAgents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataAgents` must + * match the call that provided the page token. The service may return fewer + * than this value. + * + * 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 `ListDataAgents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataAgents` must + * match the call that provided the page token. The service may return fewer + * than this value. + * + * 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. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * + * 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; + } + + /** + * Optional. User specification for how to order the results. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. User specification for how to order the results. + * + * Generated from protobuf field string order_by = 5 [(.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. If true, the list results will include soft-deleted DataAgents. + * Defaults to false. + * + * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getShowDeleted() + { + return $this->show_deleted; + } + + /** + * Optional. If true, the list results will include soft-deleted DataAgents. + * Defaults to false. + * + * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setShowDeleted($var) + { + GPBUtil::checkBool($var); + $this->show_deleted = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListDataAgentsResponse.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListDataAgentsResponse.php new file mode 100644 index 000000000000..27ebec75ff15 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListDataAgentsResponse.php @@ -0,0 +1,135 @@ +google.cloud.geminidataanalytics.v1beta.ListDataAgentsResponse + */ +class ListDataAgentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of DataAgent. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DataAgent data_agents = 1; + */ + private $data_agents; + /** + * The next page token or empty if none. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Unordered list. Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent[] $data_agents + * The list of DataAgent. + * @type string $next_page_token + * The next page token or empty if none. + * @type string[] $unreachable + * Unordered list. Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgentService::initOnce(); + parent::__construct($data); + } + + /** + * The list of DataAgent. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DataAgent data_agents = 1; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent> + */ + public function getDataAgents() + { + return $this->data_agents; + } + + /** + * The list of DataAgent. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DataAgent data_agents = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent[] $var + * @return $this + */ + public function setDataAgents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent::class); + $this->data_agents = $arr; + + return $this; + } + + /** + * The next page token or empty if none. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * The next page token or empty if none. + * + * 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; + } + + /** + * Unordered list. Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListMessagesRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListMessagesRequest.php new file mode 100644 index 000000000000..e4bc1cf4f2b4 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListMessagesRequest.php @@ -0,0 +1,221 @@ +google.cloud.geminidataanalytics.v1beta.ListMessagesRequest + */ +class ListMessagesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The conversation to list messages under. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Requested page size. Server may return fewer items than + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * ListMessages allows filtering by: + * * create_time (e.g., `createTime > "2025-01-28T06:51:56-08:00"`) + * * update_time + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The conversation to list messages under. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * Please see {@see DataChatServiceClient::conversationName()} for help formatting this field. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ListMessagesRequest + * + * @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 conversation to list messages under. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * @type int $page_size + * Optional. Requested page size. Server may return fewer items than + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. + * @type string $page_token + * Optional. A token identifying a page of results the server should return. + * @type string $filter + * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * ListMessages allows filtering by: + * * create_time (e.g., `createTime > "2025-01-28T06:51:56-08:00"`) + * * update_time + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The conversation to list messages under. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * + * 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 conversation to list messages under. + * Format: + * `projects/{project}/locations/{location}/conversations/{conversation_id}` + * + * 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. Requested page size. Server may return fewer items than + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Requested page size. Server may return fewer items than + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 3 [(.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 token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 4 [(.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. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * ListMessages allows filtering by: + * * create_time (e.g., `createTime > "2025-01-28T06:51:56-08:00"`) + * * update_time + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for + * syntax. + * ListMessages allows filtering by: + * * create_time (e.g., `createTime > "2025-01-28T06:51:56-08:00"`) + * * update_time + * + * 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListMessagesResponse.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListMessagesResponse.php new file mode 100644 index 000000000000..f539292c47af --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListMessagesResponse.php @@ -0,0 +1,101 @@ +google.cloud.geminidataanalytics.v1beta.ListMessagesResponse + */ +class ListMessagesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of chat messages. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.StorageMessage messages = 1; + */ + private $messages; + /** + * A token identifying a page of results the server should return. + * + * 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\GeminiDataAnalytics\V1beta\StorageMessage[] $messages + * The list of chat messages. + * @type string $next_page_token + * A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * The list of chat messages. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.StorageMessage messages = 1; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\StorageMessage> + */ + public function getMessages() + { + return $this->messages; + } + + /** + * The list of chat messages. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.StorageMessage messages = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\StorageMessage[] $var + * @return $this + */ + public function setMessages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\StorageMessage::class); + $this->messages = $arr; + + return $this; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token identifying a page of results the server should return. + * + * 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerExploreReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerExploreReference.php new file mode 100644 index 000000000000..b8480b4db7e2 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerExploreReference.php @@ -0,0 +1,244 @@ +google.cloud.geminidataanalytics.v1beta.LookerExploreReference + */ +class LookerExploreReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Looker model, as outlined in + * [Major LookML + * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). + * Name of the LookML model. + * + * Generated from protobuf field string lookml_model = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $lookml_model = ''; + /** + * Required. Looker Explore, as outlined in + * [Major LookML + * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). + * Name of the LookML Explore. + * + * Generated from protobuf field string explore = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $explore = ''; + /** + * Optional. The schema of the datasource. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $schema = null; + protected $instance; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $looker_instance_uri + * Required. The base url of the Looker instance. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\PrivateLookerInstanceInfo $private_looker_instance_info + * Private Looker instance info. + * @type string $lookml_model + * Required. Looker model, as outlined in + * [Major LookML + * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). + * Name of the LookML model. + * @type string $explore + * Required. Looker Explore, as outlined in + * [Major LookML + * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). + * Name of the LookML Explore. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $schema + * Optional. The schema of the datasource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Required. The base url of the Looker instance. + * + * Generated from protobuf field string looker_instance_uri = 9; + * @return string + */ + public function getLookerInstanceUri() + { + return $this->readOneof(9); + } + + public function hasLookerInstanceUri() + { + return $this->hasOneof(9); + } + + /** + * Required. The base url of the Looker instance. + * + * Generated from protobuf field string looker_instance_uri = 9; + * @param string $var + * @return $this + */ + public function setLookerInstanceUri($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Private Looker instance info. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.PrivateLookerInstanceInfo private_looker_instance_info = 10; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\PrivateLookerInstanceInfo|null + */ + public function getPrivateLookerInstanceInfo() + { + return $this->readOneof(10); + } + + public function hasPrivateLookerInstanceInfo() + { + return $this->hasOneof(10); + } + + /** + * Private Looker instance info. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.PrivateLookerInstanceInfo private_looker_instance_info = 10; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\PrivateLookerInstanceInfo $var + * @return $this + */ + public function setPrivateLookerInstanceInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\PrivateLookerInstanceInfo::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Required. Looker model, as outlined in + * [Major LookML + * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). + * Name of the LookML model. + * + * Generated from protobuf field string lookml_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getLookmlModel() + { + return $this->lookml_model; + } + + /** + * Required. Looker model, as outlined in + * [Major LookML + * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). + * Name of the LookML model. + * + * Generated from protobuf field string lookml_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setLookmlModel($var) + { + GPBUtil::checkString($var, True); + $this->lookml_model = $var; + + return $this; + } + + /** + * Required. Looker Explore, as outlined in + * [Major LookML + * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). + * Name of the LookML Explore. + * + * Generated from protobuf field string explore = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getExplore() + { + return $this->explore; + } + + /** + * Required. Looker Explore, as outlined in + * [Major LookML + * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). + * Name of the LookML Explore. + * + * Generated from protobuf field string explore = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setExplore($var) + { + GPBUtil::checkString($var, True); + $this->explore = $var; + + return $this; + } + + /** + * Optional. The schema of the datasource. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Schema|null + */ + public function getSchema() + { + return $this->schema; + } + + public function hasSchema() + { + return isset($this->schema); + } + + public function clearSchema() + { + unset($this->schema); + } + + /** + * Optional. The schema of the datasource. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Schema::class); + $this->schema = $var; + + return $this; + } + + /** + * @return string + */ + public function getInstance() + { + return $this->whichOneof("instance"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerExploreReferences.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerExploreReferences.php new file mode 100644 index 000000000000..2f6d629e313e --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerExploreReferences.php @@ -0,0 +1,142 @@ +google.cloud.geminidataanalytics.v1beta.LookerExploreReferences + */ +class LookerExploreReferences extends \Google\Protobuf\Internal\Message +{ + /** + * Required. References to Looker explores. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerExploreReference explore_references = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $explore_references; + /** + * Optional. Deprecated: Use credentials in ChatRequest. + * The credentials to use when calling the Looker API. + * Currently supports both OAuth token and API key-based credentials, as + * described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated + */ + protected $credentials = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReference[] $explore_references + * Required. References to Looker explores. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials $credentials + * Optional. Deprecated: Use credentials in ChatRequest. + * The credentials to use when calling the Looker API. + * Currently supports both OAuth token and API key-based credentials, as + * described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Required. References to Looker explores. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerExploreReference explore_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReference> + */ + public function getExploreReferences() + { + return $this->explore_references; + } + + /** + * Required. References to Looker explores. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerExploreReference explore_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReference[] $var + * @return $this + */ + public function setExploreReferences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReference::class); + $this->explore_references = $arr; + + return $this; + } + + /** + * Optional. Deprecated: Use credentials in ChatRequest. + * The credentials to use when calling the Looker API. + * Currently supports both OAuth token and API key-based credentials, as + * described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials|null + * @deprecated + */ + public function getCredentials() + { + if (isset($this->credentials)) { + @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); + } + return $this->credentials; + } + + public function hasCredentials() + { + if (isset($this->credentials)) { + @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); + } + return isset($this->credentials); + } + + public function clearCredentials() + { + @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); + unset($this->credentials); + } + + /** + * Optional. Deprecated: Use credentials in ChatRequest. + * The credentials to use when calling the Looker API. + * Currently supports both OAuth token and API key-based credentials, as + * described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials $var + * @return $this + * @deprecated + */ + public function setCredentials($var) + { + @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials::class); + $this->credentials = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerGoldenQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerGoldenQuery.php new file mode 100644 index 000000000000..ffc044fc8529 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerGoldenQuery.php @@ -0,0 +1,116 @@ +google.cloud.geminidataanalytics.v1beta.LookerGoldenQuery + */ +class LookerGoldenQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Natural language questions that a user might ask. + * For example: "How many orders were placed last month?" + * + * Generated from protobuf field repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $natural_language_questions; + /** + * Optional. The Looker Query corresponding to the natural language questions. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $looker_query = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $natural_language_questions + * Optional. Natural language questions that a user might ask. + * For example: "How many orders were placed last month?" + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery $looker_query + * Optional. The Looker Query corresponding to the natural language questions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Natural language questions that a user might ask. + * For example: "How many orders were placed last month?" + * + * Generated from protobuf field repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getNaturalLanguageQuestions() + { + return $this->natural_language_questions; + } + + /** + * Optional. Natural language questions that a user might ask. + * For example: "How many orders were placed last month?" + * + * Generated from protobuf field repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setNaturalLanguageQuestions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->natural_language_questions = $arr; + + return $this; + } + + /** + * Optional. The Looker Query corresponding to the natural language questions. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery|null + */ + public function getLookerQuery() + { + return $this->looker_query; + } + + public function hasLookerQuery() + { + return isset($this->looker_query); + } + + public function clearLookerQuery() + { + unset($this->looker_query); + } + + /** + * Optional. The Looker Query corresponding to the natural language questions. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery $var + * @return $this + */ + public function setLookerQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery::class); + $this->looker_query = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerQuery.php new file mode 100644 index 000000000000..e9af2dac06e7 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerQuery.php @@ -0,0 +1,353 @@ +google.cloud.geminidataanalytics.v1beta.LookerQuery + */ +class LookerQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The LookML model used to generate the query. + * + * Generated from protobuf field string model = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $model = ''; + /** + * Required. The LookML explore used to generate the query. + * + * Generated from protobuf field string explore = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $explore = ''; + /** + * Optional. The fields to retrieve from the explore. + * + * Generated from protobuf field repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $fields; + /** + * Optional. The filters to apply to the explore. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $filters; + /** + * Optional. The sorts to apply to the explore. + * + * Generated from protobuf field repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $sorts; + /** + * Optional. Limit in the query. + * + * Generated from protobuf field optional string limit = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $limit = null; + /** + * Optional. The primary identifier for the query resource in Looker, used for + * API operations. Maps to `id` (or `slug`) in the Looker API `Query` + * resource. + * + * Generated from protobuf field optional string query_id = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $query_id = null; + /** + * Optional. The short alphanumeric identifier for the query, used for share + * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` + * in the Looker API `Query` resource. + * + * Generated from protobuf field optional string client_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $client_id = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $model + * Required. The LookML model used to generate the query. + * @type string $explore + * Required. The LookML explore used to generate the query. + * @type string[] $fields + * Optional. The fields to retrieve from the explore. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery\Filter[] $filters + * Optional. The filters to apply to the explore. + * @type string[] $sorts + * Optional. The sorts to apply to the explore. + * @type string $limit + * Optional. Limit in the query. + * @type string $query_id + * Optional. The primary identifier for the query resource in Looker, used for + * API operations. Maps to `id` (or `slug`) in the Looker API `Query` + * resource. + * @type string $client_id + * Optional. The short alphanumeric identifier for the query, used for share + * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` + * in the Looker API `Query` resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * Required. The LookML model used to generate the query. + * + * Generated from protobuf field string model = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getModel() + { + return $this->model; + } + + /** + * Required. The LookML model used to generate the query. + * + * Generated from protobuf field string model = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setModel($var) + { + GPBUtil::checkString($var, True); + $this->model = $var; + + return $this; + } + + /** + * Required. The LookML explore used to generate the query. + * + * Generated from protobuf field string explore = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getExplore() + { + return $this->explore; + } + + /** + * Required. The LookML explore used to generate the query. + * + * Generated from protobuf field string explore = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setExplore($var) + { + GPBUtil::checkString($var, True); + $this->explore = $var; + + return $this; + } + + /** + * Optional. The fields to retrieve from the explore. + * + * Generated from protobuf field repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getFields() + { + return $this->fields; + } + + /** + * Optional. The fields to retrieve from the explore. + * + * Generated from protobuf field repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->fields = $arr; + + return $this; + } + + /** + * Optional. The filters to apply to the explore. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery\Filter> + */ + public function getFilters() + { + return $this->filters; + } + + /** + * Optional. The filters to apply to the explore. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery\Filter[] $var + * @return $this + */ + public function setFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery\Filter::class); + $this->filters = $arr; + + return $this; + } + + /** + * Optional. The sorts to apply to the explore. + * + * Generated from protobuf field repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getSorts() + { + return $this->sorts; + } + + /** + * Optional. The sorts to apply to the explore. + * + * Generated from protobuf field repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setSorts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->sorts = $arr; + + return $this; + } + + /** + * Optional. Limit in the query. + * + * Generated from protobuf field optional string limit = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLimit() + { + return isset($this->limit) ? $this->limit : ''; + } + + public function hasLimit() + { + return isset($this->limit); + } + + public function clearLimit() + { + unset($this->limit); + } + + /** + * Optional. Limit in the query. + * + * Generated from protobuf field optional string limit = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLimit($var) + { + GPBUtil::checkString($var, True); + $this->limit = $var; + + return $this; + } + + /** + * Optional. The primary identifier for the query resource in Looker, used for + * API operations. Maps to `id` (or `slug`) in the Looker API `Query` + * resource. + * + * Generated from protobuf field optional string query_id = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getQueryId() + { + return isset($this->query_id) ? $this->query_id : ''; + } + + public function hasQueryId() + { + return isset($this->query_id); + } + + public function clearQueryId() + { + unset($this->query_id); + } + + /** + * Optional. The primary identifier for the query resource in Looker, used for + * API operations. Maps to `id` (or `slug`) in the Looker API `Query` + * resource. + * + * Generated from protobuf field optional string query_id = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setQueryId($var) + { + GPBUtil::checkString($var, True); + $this->query_id = $var; + + return $this; + } + + /** + * Optional. The short alphanumeric identifier for the query, used for share + * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` + * in the Looker API `Query` resource. + * + * Generated from protobuf field optional string client_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getClientId() + { + return isset($this->client_id) ? $this->client_id : ''; + } + + public function hasClientId() + { + return isset($this->client_id); + } + + public function clearClientId() + { + unset($this->client_id); + } + + /** + * Optional. The short alphanumeric identifier for the query, used for share + * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` + * in the Looker API `Query` resource. + * + * Generated from protobuf field optional string client_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setClientId($var) + { + GPBUtil::checkString($var, True); + $this->client_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerQuery/Filter.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerQuery/Filter.php new file mode 100644 index 000000000000..674f2f79180d --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerQuery/Filter.php @@ -0,0 +1,119 @@ +google.cloud.geminidataanalytics.v1beta.LookerQuery.Filter + */ +class Filter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The field to filter on. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $field = ''; + /** + * Optional. The value for the field to filter on. + * Optional so we can preserve the default value as an empty + * string, important to get a valid and working Looker Explore url. + * + * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field + * Required. The field to filter on. + * @type string $value + * Optional. The value for the field to filter on. + * Optional so we can preserve the default value as an empty + * string, important to get a valid and working Looker Explore url. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * Required. The field to filter on. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getField() + { + return $this->field; + } + + /** + * Required. The field to filter on. + * + * 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. The value for the field to filter on. + * Optional so we can preserve the default value as an empty + * string, important to get a valid and working Looker Explore url. + * + * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getValue() + { + return isset($this->value) ? $this->value : ''; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); + } + + /** + * Optional. The value for the field to filter on. + * Optional so we can preserve the default value as an empty + * string, important to get a valid and working Looker Explore url. + * + * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerSettings.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerSettings.php new file mode 100644 index 000000000000..e3a73ae9c093 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerSettings.php @@ -0,0 +1,87 @@ +google.cloud.geminidataanalytics.v1beta.LookerSettings + */ +class LookerSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether to operate in Looker's Development Mode. + * If true, the API session will be switched to the "dev" workspace, + * allowing interaction with LookML changes in the user's development branch. + * If false or unset, the session remains in the default state (Production + * Mode). + * See https://cloud.google.com/looker/docs/dev-mode-prod-mode. + * + * Generated from protobuf field bool enable_dev_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $enable_dev_mode = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enable_dev_mode + * Optional. Whether to operate in Looker's Development Mode. + * If true, the API session will be switched to the "dev" workspace, + * allowing interaction with LookML changes in the user's development branch. + * If false or unset, the session remains in the default state (Production + * Mode). + * See https://cloud.google.com/looker/docs/dev-mode-prod-mode. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether to operate in Looker's Development Mode. + * If true, the API session will be switched to the "dev" workspace, + * allowing interaction with LookML changes in the user's development branch. + * If false or unset, the session remains in the default state (Production + * Mode). + * See https://cloud.google.com/looker/docs/dev-mode-prod-mode. + * + * Generated from protobuf field bool enable_dev_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnableDevMode() + { + return $this->enable_dev_mode; + } + + /** + * Optional. Whether to operate in Looker's Development Mode. + * If true, the API session will be switched to the "dev" workspace, + * allowing interaction with LookML changes in the user's development branch. + * If false or unset, the session remains in the default state (Production + * Mode). + * See https://cloud.google.com/looker/docs/dev-mode-prod-mode. + * + * Generated from protobuf field bool enable_dev_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnableDevMode($var) + { + GPBUtil::checkBool($var); + $this->enable_dev_mode = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/MatchedQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/MatchedQuery.php new file mode 100644 index 000000000000..e4330724e922 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/MatchedQuery.php @@ -0,0 +1,113 @@ +google.cloud.geminidataanalytics.v1beta.MatchedQuery + */ +class MatchedQuery extends \Google\Protobuf\Internal\Message +{ + /** + * The query that was matched based on an example query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_query = 1; + */ + protected $example_query = null; + /** + * The extracted values for the query parameters. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.QueryParameterValues query_parameter_values = 2; + */ + private $query_parameter_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery $example_query + * The query that was matched based on an example query. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\QueryParameterValues[] $query_parameter_values + * The extracted values for the query parameters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * The query that was matched based on an example query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_query = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery|null + */ + public function getExampleQuery() + { + return $this->example_query; + } + + public function hasExampleQuery() + { + return isset($this->example_query); + } + + public function clearExampleQuery() + { + unset($this->example_query); + } + + /** + * The query that was matched based on an example query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_query = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery $var + * @return $this + */ + public function setExampleQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery::class); + $this->example_query = $var; + + return $this; + } + + /** + * The extracted values for the query parameters. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.QueryParameterValues query_parameter_values = 2; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\QueryParameterValues> + */ + public function getQueryParameterValues() + { + return $this->query_parameter_values; + } + + /** + * The extracted values for the query parameters. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.QueryParameterValues query_parameter_values = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\QueryParameterValues[] $var + * @return $this + */ + public function setQueryParameterValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\QueryParameterValues::class); + $this->query_parameter_values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Message.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Message.php new file mode 100644 index 000000000000..a02fd69f42ba --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Message.php @@ -0,0 +1,194 @@ +google.cloud.geminidataanalytics.v1beta.Message + */ +class Message extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. For user messages, this is the time at which the system + * received the message. For system messages, this is the time at which the + * system generated the message. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $timestamp = null; + /** + * Optional. unique id of the message in the conversation for persistence. + * + * Generated from protobuf field string message_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $message_id = ''; + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\UserMessage $user_message + * A message from the user that is interacting with the system. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\SystemMessage $system_message + * A message from the system in response to the user. + * @type \Google\Protobuf\Timestamp $timestamp + * Output only. For user messages, this is the time at which the system + * received the message. For system messages, this is the time at which the + * system generated the message. + * @type string $message_id + * Optional. unique id of the message in the conversation for persistence. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * A message from the user that is interacting with the system. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.UserMessage user_message = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\UserMessage|null + */ + public function getUserMessage() + { + return $this->readOneof(2); + } + + public function hasUserMessage() + { + return $this->hasOneof(2); + } + + /** + * A message from the user that is interacting with the system. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.UserMessage user_message = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\UserMessage $var + * @return $this + */ + public function setUserMessage($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\UserMessage::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A message from the system in response to the user. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SystemMessage system_message = 3; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\SystemMessage|null + */ + public function getSystemMessage() + { + return $this->readOneof(3); + } + + public function hasSystemMessage() + { + return $this->hasOneof(3); + } + + /** + * A message from the system in response to the user. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SystemMessage system_message = 3; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\SystemMessage $var + * @return $this + */ + public function setSystemMessage($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\SystemMessage::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Output only. For user messages, this is the time at which the system + * received the message. For system messages, this is the time at which the + * system generated the message. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTimestamp() + { + return $this->timestamp; + } + + public function hasTimestamp() + { + return isset($this->timestamp); + } + + public function clearTimestamp() + { + unset($this->timestamp); + } + + /** + * Output only. For user messages, this is the time at which the system + * received the message. For system messages, this is the time at which the + * system generated the message. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTimestamp($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->timestamp = $var; + + return $this; + } + + /** + * Optional. unique id of the message in the conversation for persistence. + * + * Generated from protobuf field string message_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMessageId() + { + return $this->message_id; + } + + /** + * Optional. unique id of the message in the conversation for persistence. + * + * Generated from protobuf field string message_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMessageId($var) + { + GPBUtil::checkString($var, True); + $this->message_id = $var; + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials.php new file mode 100644 index 000000000000..142e396d22a0 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials.php @@ -0,0 +1,108 @@ +google.cloud.geminidataanalytics.v1beta.OAuthCredentials + */ +class OAuthCredentials extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials\SecretBased $secret + * Secret-based OAuth credentials. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials\TokenBased $token + * Token-based OAuth credentials. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Credentials::initOnce(); + parent::__construct($data); + } + + /** + * Secret-based OAuth credentials. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.OAuthCredentials.SecretBased secret = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials\SecretBased|null + */ + public function getSecret() + { + return $this->readOneof(2); + } + + public function hasSecret() + { + return $this->hasOneof(2); + } + + /** + * Secret-based OAuth credentials. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.OAuthCredentials.SecretBased secret = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials\SecretBased $var + * @return $this + */ + public function setSecret($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials\SecretBased::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Token-based OAuth credentials. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.OAuthCredentials.TokenBased token = 3; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials\TokenBased|null + */ + public function getToken() + { + return $this->readOneof(3); + } + + public function hasToken() + { + return $this->hasOneof(3); + } + + /** + * Token-based OAuth credentials. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.OAuthCredentials.TokenBased token = 3; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials\TokenBased $var + * @return $this + */ + public function setToken($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials\TokenBased::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials/SecretBased.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials/SecretBased.php new file mode 100644 index 000000000000..877bf6e2541a --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials/SecretBased.php @@ -0,0 +1,102 @@ +google.cloud.geminidataanalytics.v1beta.OAuthCredentials.SecretBased + */ +class SecretBased extends \Google\Protobuf\Internal\Message +{ + /** + * Required. An OAuth client ID. + * + * Generated from protobuf field string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $client_id = ''; + /** + * Required. An OAuth client secret. + * + * Generated from protobuf field string client_secret = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $client_secret = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $client_id + * Required. An OAuth client ID. + * @type string $client_secret + * Required. An OAuth client secret. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Credentials::initOnce(); + parent::__construct($data); + } + + /** + * Required. An OAuth client ID. + * + * Generated from protobuf field string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getClientId() + { + return $this->client_id; + } + + /** + * Required. An OAuth client ID. + * + * Generated from protobuf field string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setClientId($var) + { + GPBUtil::checkString($var, True); + $this->client_id = $var; + + return $this; + } + + /** + * Required. An OAuth client secret. + * + * Generated from protobuf field string client_secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getClientSecret() + { + return $this->client_secret; + } + + /** + * Required. An OAuth client secret. + * + * Generated from protobuf field string client_secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setClientSecret($var) + { + GPBUtil::checkString($var, True); + $this->client_secret = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials/TokenBased.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials/TokenBased.php new file mode 100644 index 000000000000..43de6c77d95b --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials/TokenBased.php @@ -0,0 +1,68 @@ +google.cloud.geminidataanalytics.v1beta.OAuthCredentials.TokenBased + */ +class TokenBased extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the secret containing the access token. + * + * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $access_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $access_token + * Required. The name of the secret containing the access token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Credentials::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the secret containing the access token. + * + * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAccessToken() + { + return $this->access_token; + } + + /** + * Required. The name of the secret containing the access token. + * + * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAccessToken($var) + { + GPBUtil::checkString($var, True); + $this->access_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OperationMetadata.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OperationMetadata.php new file mode 100644 index 000000000000..5e5eb78072f6 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OperationMetadata.php @@ -0,0 +1,307 @@ +google.cloud.geminidataanalytics.v1beta.OperationMetadata + */ +class OperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target = ''; + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $verb = ''; + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status_message = ''; + /** + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have been cancelled successfully + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $requested_cancellation = false; + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $api_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time the operation was created. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type string $target + * Output only. Server-defined resource path for the target of the operation. + * @type string $verb + * Output only. Name of the verb executed by the operation. + * @type string $status_message + * Output only. Human-readable status of the operation, if any. + * @type bool $requested_cancellation + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have been cancelled successfully + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * @type string $api_version + * Output only. API version used to start the operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgentService::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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 the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getVerb() + { + return $this->verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setVerb($var) + { + GPBUtil::checkString($var, True); + $this->verb = $var; + + return $this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStatusMessage() + { + return $this->status_message; + } + + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setStatusMessage($var) + { + GPBUtil::checkString($var, True); + $this->status_message = $var; + + return $this; + } + + /** + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have been cancelled successfully + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getRequestedCancellation() + { + return $this->requested_cancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have been cancelled successfully + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setRequestedCancellation($var) + { + GPBUtil::checkBool($var); + $this->requested_cancellation = $var; + + return $this; + } + + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getApiVersion() + { + return $this->api_version; + } + + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setApiVersion($var) + { + GPBUtil::checkString($var, True); + $this->api_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ParameterizedSecureViewParameters.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ParameterizedSecureViewParameters.php new file mode 100644 index 000000000000..2f333b96a253 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ParameterizedSecureViewParameters.php @@ -0,0 +1,69 @@ +google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters + */ +class ParameterizedSecureViewParameters extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Named parameters for Parameterized Secure Views (PSV). + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters.Parameter parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $parameters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters\Parameter[] $parameters + * Optional. Named parameters for Parameterized Secure Views (PSV). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Named parameters for Parameterized Secure Views (PSV). + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters.Parameter parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters\Parameter> + */ + public function getParameters() + { + return $this->parameters; + } + + /** + * Optional. Named parameters for Parameterized Secure Views (PSV). + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters.Parameter parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters\Parameter[] $var + * @return $this + */ + public function setParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters\Parameter::class); + $this->parameters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ParameterizedSecureViewParameters/Parameter.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ParameterizedSecureViewParameters/Parameter.php new file mode 100644 index 000000000000..2afa63835dc1 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ParameterizedSecureViewParameters/Parameter.php @@ -0,0 +1,101 @@ +google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters.Parameter + */ +class Parameter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parameter key (e.g., `"user_id"`). + * + * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $key = ''; + /** + * Required. The parameter value (e.g., `"123"`). + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * Required. The parameter key (e.g., `"user_id"`). + * @type string $value + * Required. The parameter value (e.g., `"123"`). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parameter key (e.g., `"user_id"`). + * + * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * Required. The parameter key (e.g., `"user_id"`). + * + * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * Required. The parameter value (e.g., `"123"`). + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Required. The parameter value (e.g., `"123"`). + * + * Generated from protobuf field string value = 2 [(.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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/PrivateLookerInstanceInfo.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/PrivateLookerInstanceInfo.php new file mode 100644 index 000000000000..95d2e8cf081a --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/PrivateLookerInstanceInfo.php @@ -0,0 +1,102 @@ +google.cloud.geminidataanalytics.v1beta.PrivateLookerInstanceInfo + */ +class PrivateLookerInstanceInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The Looker instance id. + * + * Generated from protobuf field string looker_instance_id = 1; + */ + protected $looker_instance_id = ''; + /** + * The service directory name of the Looker instance. + * + * Generated from protobuf field string service_directory_name = 2; + */ + protected $service_directory_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $looker_instance_id + * The Looker instance id. + * @type string $service_directory_name + * The service directory name of the Looker instance. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * The Looker instance id. + * + * Generated from protobuf field string looker_instance_id = 1; + * @return string + */ + public function getLookerInstanceId() + { + return $this->looker_instance_id; + } + + /** + * The Looker instance id. + * + * Generated from protobuf field string looker_instance_id = 1; + * @param string $var + * @return $this + */ + public function setLookerInstanceId($var) + { + GPBUtil::checkString($var, True); + $this->looker_instance_id = $var; + + return $this; + } + + /** + * The service directory name of the Looker instance. + * + * Generated from protobuf field string service_directory_name = 2; + * @return string + */ + public function getServiceDirectoryName() + { + return $this->service_directory_name; + } + + /** + * The service directory name of the Looker instance. + * + * Generated from protobuf field string service_directory_name = 2; + * @param string $var + * @return $this + */ + public function setServiceDirectoryName($var) + { + GPBUtil::checkString($var, True); + $this->service_directory_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataContext.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataContext.php new file mode 100644 index 000000000000..44bfc5498f25 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataContext.php @@ -0,0 +1,121 @@ +google.cloud.geminidataanalytics.v1beta.QueryDataContext + */ +class QueryDataContext extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The datasource references to use for the query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $datasource_references = null; + /** + * Optional. Parameters for Parameterized Secure Views (PSV). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters parameterized_secure_view_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $parameterized_secure_view_parameters = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceReferences $datasource_references + * Required. The datasource references to use for the query. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters $parameterized_secure_view_parameters + * Optional. Parameters for Parameterized Secure Views (PSV). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The datasource references to use for the query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceReferences|null + */ + public function getDatasourceReferences() + { + return $this->datasource_references; + } + + public function hasDatasourceReferences() + { + return isset($this->datasource_references); + } + + public function clearDatasourceReferences() + { + unset($this->datasource_references); + } + + /** + * Required. The datasource references to use for the query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceReferences $var + * @return $this + */ + public function setDatasourceReferences($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceReferences::class); + $this->datasource_references = $var; + + return $this; + } + + /** + * Optional. Parameters for Parameterized Secure Views (PSV). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters parameterized_secure_view_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters|null + */ + public function getParameterizedSecureViewParameters() + { + return $this->parameterized_secure_view_parameters; + } + + public function hasParameterizedSecureViewParameters() + { + return isset($this->parameterized_secure_view_parameters); + } + + public function clearParameterizedSecureViewParameters() + { + unset($this->parameterized_secure_view_parameters); + } + + /** + * Optional. Parameters for Parameterized Secure Views (PSV). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters parameterized_secure_view_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters $var + * @return $this + */ + public function setParameterizedSecureViewParameters($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters::class); + $this->parameterized_secure_view_parameters = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataRequest.php new file mode 100644 index 000000000000..27d17a2af353 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataRequest.php @@ -0,0 +1,201 @@ +google.cloud.geminidataanalytics.v1beta.QueryDataRequest + */ +class QueryDataRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource to generate the query for. + * Format: projects/{project}/locations/{location} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The natural language query for which to generate query. + * Example: "What are the top 5 best selling products this month?" + * + * Generated from protobuf field string prompt = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $prompt = ''; + /** + * Required. The context for the data query, including the data sources to + * use. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $context = null; + /** + * Optional. Options to control query generation and execution behavior. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $generation_options = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource to generate the query for. + * Format: projects/{project}/locations/{location} + * @type string $prompt + * Required. The natural language query for which to generate query. + * Example: "What are the top 5 best selling products this month?" + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\QueryDataContext $context + * Required. The context for the data query, including the data sources to + * use. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\GenerationOptions $generation_options + * Optional. Options to control query generation and execution behavior. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource to generate the query for. + * Format: projects/{project}/locations/{location} + * + * 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 to generate the query for. + * Format: projects/{project}/locations/{location} + * + * 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 natural language query for which to generate query. + * Example: "What are the top 5 best selling products this month?" + * + * Generated from protobuf field string prompt = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPrompt() + { + return $this->prompt; + } + + /** + * Required. The natural language query for which to generate query. + * Example: "What are the top 5 best selling products this month?" + * + * Generated from protobuf field string prompt = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPrompt($var) + { + GPBUtil::checkString($var, True); + $this->prompt = $var; + + return $this; + } + + /** + * Required. The context for the data query, including the data sources to + * use. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\QueryDataContext|null + */ + public function getContext() + { + return $this->context; + } + + public function hasContext() + { + return isset($this->context); + } + + public function clearContext() + { + unset($this->context); + } + + /** + * Required. The context for the data query, including the data sources to + * use. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\QueryDataContext $var + * @return $this + */ + public function setContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\QueryDataContext::class); + $this->context = $var; + + return $this; + } + + /** + * Optional. Options to control query generation and execution behavior. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\GenerationOptions|null + */ + public function getGenerationOptions() + { + return $this->generation_options; + } + + public function hasGenerationOptions() + { + return isset($this->generation_options); + } + + public function clearGenerationOptions() + { + unset($this->generation_options); + } + + /** + * Optional. Options to control query generation and execution behavior. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\GenerationOptions $var + * @return $this + */ + public function setGenerationOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\GenerationOptions::class); + $this->generation_options = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataResponse.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataResponse.php new file mode 100644 index 000000000000..3f259556a2cd --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataResponse.php @@ -0,0 +1,253 @@ +google.cloud.geminidataanalytics.v1beta.QueryDataResponse + */ +class QueryDataResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Generated query for the given user prompt. + * + * Generated from protobuf field string generated_query = 1; + */ + protected $generated_query = ''; + /** + * A natural language explanation of the generated query. + * Populated if options.generate_explanation was true in the request. + * + * Generated from protobuf field string intent_explanation = 2; + */ + protected $intent_explanation = ''; + /** + * The result of executing the query. + * Populated if options.generate_query_result or + * options.generate_natural_language_answer was true in the request, and + * execution was successful or attempted. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; + */ + protected $query_result = null; + /** + * A natural language answer to the query, based on the query_result. + * Populated if options.generate_natural_language_answer was true in the + * request and query execution was successful based in the response from + * executeSql API. + * + * Generated from protobuf field string natural_language_answer = 4; + */ + protected $natural_language_answer = ''; + /** + * If ambiguity was detected in the natural language query and + * options.generate_disambiguation_question was true, this field contains a + * question to the user for clarification. The returned represents the + * service's best effort based on the ambiguous input. + * + * Generated from protobuf field repeated string disambiguation_question = 5; + */ + private $disambiguation_question; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $generated_query + * Generated query for the given user prompt. + * @type string $intent_explanation + * A natural language explanation of the generated query. + * Populated if options.generate_explanation was true in the request. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult $query_result + * The result of executing the query. + * Populated if options.generate_query_result or + * options.generate_natural_language_answer was true in the request, and + * execution was successful or attempted. + * @type string $natural_language_answer + * A natural language answer to the query, based on the query_result. + * Populated if options.generate_natural_language_answer was true in the + * request and query execution was successful based in the response from + * executeSql API. + * @type string[] $disambiguation_question + * If ambiguity was detected in the natural language query and + * options.generate_disambiguation_question was true, this field contains a + * question to the user for clarification. The returned represents the + * service's best effort based on the ambiguous input. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Generated query for the given user prompt. + * + * Generated from protobuf field string generated_query = 1; + * @return string + */ + public function getGeneratedQuery() + { + return $this->generated_query; + } + + /** + * Generated query for the given user prompt. + * + * Generated from protobuf field string generated_query = 1; + * @param string $var + * @return $this + */ + public function setGeneratedQuery($var) + { + GPBUtil::checkString($var, True); + $this->generated_query = $var; + + return $this; + } + + /** + * A natural language explanation of the generated query. + * Populated if options.generate_explanation was true in the request. + * + * Generated from protobuf field string intent_explanation = 2; + * @return string + */ + public function getIntentExplanation() + { + return $this->intent_explanation; + } + + /** + * A natural language explanation of the generated query. + * Populated if options.generate_explanation was true in the request. + * + * Generated from protobuf field string intent_explanation = 2; + * @param string $var + * @return $this + */ + public function setIntentExplanation($var) + { + GPBUtil::checkString($var, True); + $this->intent_explanation = $var; + + return $this; + } + + /** + * The result of executing the query. + * Populated if options.generate_query_result or + * options.generate_natural_language_answer was true in the request, and + * execution was successful or attempted. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult|null + */ + public function getQueryResult() + { + return $this->query_result; + } + + public function hasQueryResult() + { + return isset($this->query_result); + } + + public function clearQueryResult() + { + unset($this->query_result); + } + + /** + * The result of executing the query. + * Populated if options.generate_query_result or + * options.generate_natural_language_answer was true in the request, and + * execution was successful or attempted. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult $var + * @return $this + */ + public function setQueryResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult::class); + $this->query_result = $var; + + return $this; + } + + /** + * A natural language answer to the query, based on the query_result. + * Populated if options.generate_natural_language_answer was true in the + * request and query execution was successful based in the response from + * executeSql API. + * + * Generated from protobuf field string natural_language_answer = 4; + * @return string + */ + public function getNaturalLanguageAnswer() + { + return $this->natural_language_answer; + } + + /** + * A natural language answer to the query, based on the query_result. + * Populated if options.generate_natural_language_answer was true in the + * request and query execution was successful based in the response from + * executeSql API. + * + * Generated from protobuf field string natural_language_answer = 4; + * @param string $var + * @return $this + */ + public function setNaturalLanguageAnswer($var) + { + GPBUtil::checkString($var, True); + $this->natural_language_answer = $var; + + return $this; + } + + /** + * If ambiguity was detected in the natural language query and + * options.generate_disambiguation_question was true, this field contains a + * question to the user for clarification. The returned represents the + * service's best effort based on the ambiguous input. + * + * Generated from protobuf field repeated string disambiguation_question = 5; + * @return RepeatedField + */ + public function getDisambiguationQuestion() + { + return $this->disambiguation_question; + } + + /** + * If ambiguity was detected in the natural language query and + * options.generate_disambiguation_question was true, this field contains a + * question to the user for clarification. The returned represents the + * service's best effort based on the ambiguous input. + * + * Generated from protobuf field repeated string disambiguation_question = 5; + * @param string[] $var + * @return $this + */ + public function setDisambiguationQuestion($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->disambiguation_question = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryParameter.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryParameter.php new file mode 100644 index 000000000000..310281ac5805 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryParameter.php @@ -0,0 +1,156 @@ +google.cloud.geminidataanalytics.v1beta.QueryParameter + */ +class QueryParameter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the parameter reference in the SQL query. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Optional. The description of the parameter that can be used by LLM to + * extract the parameter value from the user question. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Required. The data type of the parameter, e.g. "STRING", "INT64", "DATE", + * etc. For valid values, see the [BigQuery + * documentation](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). + * This will be used to populate + * google.cloud.bigquery.v2.QueryParameterType.type. + * + * Generated from protobuf field string data_type = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the parameter reference in the SQL query. + * @type string $description + * Optional. The description of the parameter that can be used by LLM to + * extract the parameter value from the user question. + * @type string $data_type + * Required. The data type of the parameter, e.g. "STRING", "INT64", "DATE", + * etc. For valid values, see the [BigQuery + * documentation](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). + * This will be used to populate + * google.cloud.bigquery.v2.QueryParameterType.type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the parameter reference in the SQL query. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the parameter reference in the SQL query. + * + * 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; + } + + /** + * Optional. The description of the parameter that can be used by LLM to + * extract the parameter value from the user question. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. The description of the parameter that can be used by LLM to + * extract the parameter value from the user question. + * + * 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; + } + + /** + * Required. The data type of the parameter, e.g. "STRING", "INT64", "DATE", + * etc. For valid values, see the [BigQuery + * documentation](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). + * This will be used to populate + * google.cloud.bigquery.v2.QueryParameterType.type. + * + * Generated from protobuf field string data_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDataType() + { + return $this->data_type; + } + + /** + * Required. The data type of the parameter, e.g. "STRING", "INT64", "DATE", + * etc. For valid values, see the [BigQuery + * documentation](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). + * This will be used to populate + * google.cloud.bigquery.v2.QueryParameterType.type. + * + * Generated from protobuf field string data_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDataType($var) + { + GPBUtil::checkString($var, True); + $this->data_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryParameterValues.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryParameterValues.php new file mode 100644 index 000000000000..5bb5e2ea7d0b --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryParameterValues.php @@ -0,0 +1,103 @@ +google.cloud.geminidataanalytics.v1beta.QueryParameterValues + */ +class QueryParameterValues extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the parameter. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. The value of the parameter. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the parameter. + * @type string $value + * Required. The value of the parameter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the parameter. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the parameter. + * + * 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; + } + + /** + * Required. The value of the parameter. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Required. The value of the parameter. + * + * Generated from protobuf field string value = 2 [(.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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Schema.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Schema.php new file mode 100644 index 000000000000..6e4f1c9e5205 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Schema.php @@ -0,0 +1,273 @@ +google.cloud.geminidataanalytics.v1beta.Schema + */ +class Schema extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The fields in the schema. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Field fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $fields; + /** + * Optional. A textual description of the table's content and purpose. + * For example: "Contains information about customer orders in our e-commerce + * store." Currently only used for BigQuery data sources. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. A list of alternative names or synonyms that can be used to refer + * to the table. For example: ["sales", "orders", "purchases"]. Currently only + * used for BigQuery data sources. + * + * Generated from protobuf field repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $synonyms; + /** + * Optional. A list of tags or keywords associated with the table, used for + * categorization. For example: ["transaction", "revenue", "customer_data"]. + * Currently only used for BigQuery data sources. + * + * Generated from protobuf field repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $tags; + /** + * Optional. Table display_name (same as label in + * cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not + * required, currently only Looker has this field. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. The filters on the datasource's underlying data. Currently only + * used for Looker data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DataFilter filters = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $filters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Field[] $fields + * Optional. The fields in the schema. + * @type string $description + * Optional. A textual description of the table's content and purpose. + * For example: "Contains information about customer orders in our e-commerce + * store." Currently only used for BigQuery data sources. + * @type string[] $synonyms + * Optional. A list of alternative names or synonyms that can be used to refer + * to the table. For example: ["sales", "orders", "purchases"]. Currently only + * used for BigQuery data sources. + * @type string[] $tags + * Optional. A list of tags or keywords associated with the table, used for + * categorization. For example: ["transaction", "revenue", "customer_data"]. + * Currently only used for BigQuery data sources. + * @type string $display_name + * Optional. Table display_name (same as label in + * cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not + * required, currently only Looker has this field. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataFilter[] $filters + * Optional. The filters on the datasource's underlying data. Currently only + * used for Looker data sources. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The fields in the schema. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Field fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\Field> + */ + public function getFields() + { + return $this->fields; + } + + /** + * Optional. The fields in the schema. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Field fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Field[] $var + * @return $this + */ + public function setFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\Field::class); + $this->fields = $arr; + + return $this; + } + + /** + * Optional. A textual description of the table's content and purpose. + * For example: "Contains information about customer orders in our e-commerce + * store." Currently only used for BigQuery data sources. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A textual description of the table's content and purpose. + * For example: "Contains information about customer orders in our e-commerce + * store." Currently only used for BigQuery data sources. + * + * 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; + } + + /** + * Optional. A list of alternative names or synonyms that can be used to refer + * to the table. For example: ["sales", "orders", "purchases"]. Currently only + * used for BigQuery data sources. + * + * Generated from protobuf field repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getSynonyms() + { + return $this->synonyms; + } + + /** + * Optional. A list of alternative names or synonyms that can be used to refer + * to the table. For example: ["sales", "orders", "purchases"]. Currently only + * used for BigQuery data sources. + * + * Generated from protobuf field repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setSynonyms($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->synonyms = $arr; + + return $this; + } + + /** + * Optional. A list of tags or keywords associated with the table, used for + * categorization. For example: ["transaction", "revenue", "customer_data"]. + * Currently only used for BigQuery data sources. + * + * Generated from protobuf field repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Optional. A list of tags or keywords associated with the table, used for + * categorization. For example: ["transaction", "revenue", "customer_data"]. + * Currently only used for BigQuery data sources. + * + * Generated from protobuf field repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * Optional. Table display_name (same as label in + * cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not + * required, currently only Looker has this field. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. Table display_name (same as label in + * cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not + * required, currently only Looker has this field. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. The filters on the datasource's underlying data. Currently only + * used for Looker data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DataFilter filters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\DataFilter> + */ + public function getFilters() + { + return $this->filters; + } + + /** + * Optional. The filters on the datasource's underlying data. Currently only + * used for Looker data sources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DataFilter filters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataFilter[] $var + * @return $this + */ + public function setFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\DataFilter::class); + $this->filters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaMessage.php new file mode 100644 index 000000000000..ab3ae4282df6 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaMessage.php @@ -0,0 +1,108 @@ +google.cloud.geminidataanalytics.v1beta.SchemaMessage + */ +class SchemaMessage extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaQuery $query + * A schema resolution query. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaResult $result + * The result of a schema resolution query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * A schema resolution query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SchemaQuery query = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaQuery|null + */ + public function getQuery() + { + return $this->readOneof(1); + } + + public function hasQuery() + { + return $this->hasOneof(1); + } + + /** + * A schema resolution query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SchemaQuery query = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaQuery $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaQuery::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The result of a schema resolution query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SchemaResult result = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaResult|null + */ + public function getResult() + { + return $this->readOneof(2); + } + + public function hasResult() + { + return $this->hasOneof(2); + } + + /** + * The result of a schema resolution query. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SchemaResult result = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaResult $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaResult::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaQuery.php new file mode 100644 index 000000000000..983b46007deb --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaQuery.php @@ -0,0 +1,67 @@ +google.cloud.geminidataanalytics.v1beta.SchemaQuery + */ +class SchemaQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The question to send to the system for schema resolution. + * + * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $question = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $question + * Optional. The question to send to the system for schema resolution. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The question to send to the system for schema resolution. + * + * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getQuestion() + { + return $this->question; + } + + /** + * Optional. The question to send to the system for schema resolution. + * + * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setQuestion($var) + { + GPBUtil::checkString($var, True); + $this->question = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaResult.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaResult.php new file mode 100644 index 000000000000..4a489595f5b8 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaResult.php @@ -0,0 +1,67 @@ +google.cloud.geminidataanalytics.v1beta.SchemaResult + */ +class SchemaResult extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The datasources used to resolve the schema query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $datasources; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Datasource[] $datasources + * Optional. The datasources used to resolve the schema query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The datasources used to resolve the schema query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\Datasource> + */ + public function getDatasources() + { + return $this->datasources; + } + + /** + * Optional. The datasources used to resolve the schema query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Datasource[] $var + * @return $this + */ + public function setDatasources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\Datasource::class); + $this->datasources = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerDatabaseReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerDatabaseReference.php new file mode 100644 index 000000000000..7fef96622a97 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerDatabaseReference.php @@ -0,0 +1,333 @@ +google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference + */ +class SpannerDatabaseReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The engine of the Spanner instance. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine engine = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $engine = 0; + /** + * Required. The project the instance belongs to. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $project_id = ''; + /** + * Required. The instance id. + * + * Generated from protobuf field string instance_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $instance_id = ''; + /** + * Required. The database id. + * + * Generated from protobuf field string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $database_id = ''; + /** + * Optional. The table ids. Denotes all tables if unset. + * + * Generated from protobuf field repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $table_ids; + /** + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $database_table_references; + /** + * Optional. Priority for the queries to Spanner. Should be a value supported + * by Cloud Spanner e.g.: LOW, MEDIUM, HIGH. Unsupported values will be + * ignored. See + * https://docs.cloud.google.com/spanner/docs/reference/rest/v1/RequestOptions#Priority + * for complete list. + * + * Generated from protobuf field string priority = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $priority = ''; + /** + * Tag to be attached to all queries to Spanner. Allows to identify and + * monitor queries sent to Spanner by the GDA service. + * + * Generated from protobuf field string request_tag = 9; + */ + protected $request_tag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $engine + * Required. The engine of the Spanner instance. + * @type string $project_id + * Required. The project the instance belongs to. + * @type string $instance_id + * Required. The instance id. + * @type string $database_id + * Required. The database id. + * @type string[] $table_ids + * Optional. The table ids. Denotes all tables if unset. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference[] $database_table_references + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * @type string $priority + * Optional. Priority for the queries to Spanner. Should be a value supported + * by Cloud Spanner e.g.: LOW, MEDIUM, HIGH. Unsupported values will be + * ignored. See + * https://docs.cloud.google.com/spanner/docs/reference/rest/v1/RequestOptions#Priority + * for complete list. + * @type string $request_tag + * Tag to be attached to all queries to Spanner. Allows to identify and + * monitor queries sent to Spanner by the GDA service. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Required. The engine of the Spanner instance. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine engine = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getEngine() + { + return $this->engine; + } + + /** + * Required. The engine of the Spanner instance. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine engine = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setEngine($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerDatabaseReference\Engine::class); + $this->engine = $var; + + return $this; + } + + /** + * Required. The project the instance belongs to. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * Required. The project the instance belongs to. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Required. The instance id. + * + * Generated from protobuf field string instance_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getInstanceId() + { + return $this->instance_id; + } + + /** + * Required. The instance id. + * + * Generated from protobuf field string instance_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setInstanceId($var) + { + GPBUtil::checkString($var, True); + $this->instance_id = $var; + + return $this; + } + + /** + * Required. The database id. + * + * Generated from protobuf field string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDatabaseId() + { + return $this->database_id; + } + + /** + * Required. The database id. + * + * Generated from protobuf field string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDatabaseId($var) + { + GPBUtil::checkString($var, True); + $this->database_id = $var; + + return $this; + } + + /** + * Optional. The table ids. Denotes all tables if unset. + * + * Generated from protobuf field repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getTableIds() + { + return $this->table_ids; + } + + /** + * Optional. The table ids. Denotes all tables if unset. + * + * Generated from protobuf field repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setTableIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->table_ids = $arr; + + return $this; + } + + /** + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference> + */ + public function getDatabaseTableReferences() + { + return $this->database_table_references; + } + + /** + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference[] $var + * @return $this + */ + public function setDatabaseTableReferences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference::class); + $this->database_table_references = $arr; + + return $this; + } + + /** + * Optional. Priority for the queries to Spanner. Should be a value supported + * by Cloud Spanner e.g.: LOW, MEDIUM, HIGH. Unsupported values will be + * ignored. See + * https://docs.cloud.google.com/spanner/docs/reference/rest/v1/RequestOptions#Priority + * for complete list. + * + * Generated from protobuf field string priority = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPriority() + { + return $this->priority; + } + + /** + * Optional. Priority for the queries to Spanner. Should be a value supported + * by Cloud Spanner e.g.: LOW, MEDIUM, HIGH. Unsupported values will be + * ignored. See + * https://docs.cloud.google.com/spanner/docs/reference/rest/v1/RequestOptions#Priority + * for complete list. + * + * Generated from protobuf field string priority = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPriority($var) + { + GPBUtil::checkString($var, True); + $this->priority = $var; + + return $this; + } + + /** + * Tag to be attached to all queries to Spanner. Allows to identify and + * monitor queries sent to Spanner by the GDA service. + * + * Generated from protobuf field string request_tag = 9; + * @return string + */ + public function getRequestTag() + { + return $this->request_tag; + } + + /** + * Tag to be attached to all queries to Spanner. Allows to identify and + * monitor queries sent to Spanner by the GDA service. + * + * Generated from protobuf field string request_tag = 9; + * @param string $var + * @return $this + */ + public function setRequestTag($var) + { + GPBUtil::checkString($var, True); + $this->request_tag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerDatabaseReference/Engine.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerDatabaseReference/Engine.php new file mode 100644 index 000000000000..11ccfb69eaeb --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerDatabaseReference/Engine.php @@ -0,0 +1,61 @@ +google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine + */ +class Engine +{ + /** + * Engine is not specified. + * + * Generated from protobuf enum ENGINE_UNSPECIFIED = 0; + */ + const ENGINE_UNSPECIFIED = 0; + /** + * Google SQL + * + * Generated from protobuf enum GOOGLE_SQL = 1; + */ + const GOOGLE_SQL = 1; + /** + * PostgreSQL + * + * Generated from protobuf enum POSTGRESQL = 2; + */ + const POSTGRESQL = 2; + + private static $valueToName = [ + self::ENGINE_UNSPECIFIED => 'ENGINE_UNSPECIFIED', + self::GOOGLE_SQL => 'GOOGLE_SQL', + self::POSTGRESQL => 'POSTGRESQL', + ]; + + 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerReference.php new file mode 100644 index 000000000000..ed9075c147ba --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerReference.php @@ -0,0 +1,126 @@ +google.cloud.geminidataanalytics.v1beta.SpannerReference + */ +class SpannerReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Singular proto that supports specifying which database and tables + * to include. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $database_reference = null; + /** + * Optional. Parameters for retrieving data from Agent Context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $agent_context_reference = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerDatabaseReference $database_reference + * Required. Singular proto that supports specifying which database and tables + * to include. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference $agent_context_reference + * Optional. Parameters for retrieving data from Agent Context. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Required. Singular proto that supports specifying which database and tables + * to include. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerDatabaseReference|null + */ + public function getDatabaseReference() + { + return $this->database_reference; + } + + public function hasDatabaseReference() + { + return isset($this->database_reference); + } + + public function clearDatabaseReference() + { + unset($this->database_reference); + } + + /** + * Required. Singular proto that supports specifying which database and tables + * to include. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerDatabaseReference $var + * @return $this + */ + public function setDatabaseReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerDatabaseReference::class); + $this->database_reference = $var; + + return $this; + } + + /** + * Optional. Parameters for retrieving data from Agent Context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference|null + */ + public function getAgentContextReference() + { + return $this->agent_context_reference; + } + + public function hasAgentContextReference() + { + return isset($this->agent_context_reference); + } + + public function clearAgentContextReference() + { + unset($this->agent_context_reference); + } + + /** + * Optional. Parameters for retrieving data from Agent Context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference $var + * @return $this + */ + public function setAgentContextReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference::class); + $this->agent_context_reference = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StorageMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StorageMessage.php new file mode 100644 index 000000000000..0fe4433973c8 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StorageMessage.php @@ -0,0 +1,111 @@ +google.cloud.geminidataanalytics.v1beta.StorageMessage + */ +class StorageMessage extends \Google\Protobuf\Internal\Message +{ + /** + * The unique resource name of a chat message. + * + * Generated from protobuf field string message_id = 1; + */ + protected $message_id = ''; + /** + * The message content. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Message message = 2; + */ + protected $message = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message_id + * The unique resource name of a chat message. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Message $message + * The message content. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * The unique resource name of a chat message. + * + * Generated from protobuf field string message_id = 1; + * @return string + */ + public function getMessageId() + { + return $this->message_id; + } + + /** + * The unique resource name of a chat message. + * + * Generated from protobuf field string message_id = 1; + * @param string $var + * @return $this + */ + public function setMessageId($var) + { + GPBUtil::checkString($var, True); + $this->message_id = $var; + + return $this; + } + + /** + * The message content. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Message message = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Message|null + */ + public function getMessage() + { + return $this->message; + } + + public function hasMessage() + { + return isset($this->message); + } + + public function clearMessage() + { + unset($this->message); + } + + /** + * The message content. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Message message = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Message $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Message::class); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StudioDatasourceReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StudioDatasourceReference.php new file mode 100644 index 000000000000..3a1839719db7 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StudioDatasourceReference.php @@ -0,0 +1,67 @@ +google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference + */ +class StudioDatasourceReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The id of the datasource. + * + * Generated from protobuf field string datasource_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $datasource_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $datasource_id + * Required. The id of the datasource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Required. The id of the datasource. + * + * Generated from protobuf field string datasource_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDatasourceId() + { + return $this->datasource_id; + } + + /** + * Required. The id of the datasource. + * + * Generated from protobuf field string datasource_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDatasourceId($var) + { + GPBUtil::checkString($var, True); + $this->datasource_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StudioDatasourceReferences.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StudioDatasourceReferences.php new file mode 100644 index 000000000000..dbb00ea32bc1 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StudioDatasourceReferences.php @@ -0,0 +1,67 @@ +google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferences + */ +class StudioDatasourceReferences extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The references to the studio datasources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference studio_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $studio_references; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReference[] $studio_references + * Optional. The references to the studio datasources. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The references to the studio datasources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference studio_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReference> + */ + public function getStudioReferences() + { + return $this->studio_references; + } + + /** + * Optional. The references to the studio datasources. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference studio_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReference[] $var + * @return $this + */ + public function setStudioReferences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReference::class); + $this->studio_references = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SystemMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SystemMessage.php new file mode 100644 index 000000000000..97568b248d39 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SystemMessage.php @@ -0,0 +1,416 @@ +google.cloud.geminidataanalytics.v1beta.SystemMessage + */ +class SystemMessage extends \Google\Protobuf\Internal\Message +{ + /** + * Identifies the group that the event belongs to. Similar events are deemed + * to be logically relevant to each other and should be shown together in + * the UI. + * + * Generated from protobuf field optional int32 group_id = 12; + */ + protected $group_id = null; + /** + * Output only. Citation information for the system message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Citation citation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $citation = null; + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\TextMessage $text + * A direct natural language response to the user message. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaMessage $schema + * A message produced during schema resolution. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataMessage $data + * A message produced during data retrieval. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisMessage $analysis + * A message produced during analysis. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ChartMessage $chart + * A message produced during chart generation. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ErrorMessage $error + * An error message. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQueries $example_queries + * Optional. A message containing example queries. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationMessage $clarification + * Optional. Deprecated: Use TextMessage with TextType.FINAL_RESPONSE + * instead. A message containing clarification questions. + * @type int $group_id + * Identifies the group that the event belongs to. Similar events are deemed + * to be logically relevant to each other and should be shown together in + * the UI. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Citation $citation + * Output only. Citation information for the system message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * A direct natural language response to the user message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.TextMessage text = 1; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\TextMessage|null + */ + public function getText() + { + return $this->readOneof(1); + } + + public function hasText() + { + return $this->hasOneof(1); + } + + /** + * A direct natural language response to the user message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.TextMessage text = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\TextMessage $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\TextMessage::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A message produced during schema resolution. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SchemaMessage schema = 2; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaMessage|null + */ + public function getSchema() + { + return $this->readOneof(2); + } + + public function hasSchema() + { + return $this->hasOneof(2); + } + + /** + * A message produced during schema resolution. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SchemaMessage schema = 2; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaMessage $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaMessage::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A message produced during data retrieval. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataMessage data = 3; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DataMessage|null + */ + public function getData() + { + return $this->readOneof(3); + } + + public function hasData() + { + return $this->hasOneof(3); + } + + /** + * A message produced during data retrieval. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataMessage data = 3; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataMessage $var + * @return $this + */ + public function setData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataMessage::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * A message produced during analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisMessage analysis = 4; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisMessage|null + */ + public function getAnalysis() + { + return $this->readOneof(4); + } + + public function hasAnalysis() + { + return $this->hasOneof(4); + } + + /** + * A message produced during analysis. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisMessage analysis = 4; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisMessage $var + * @return $this + */ + public function setAnalysis($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisMessage::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * A message produced during chart generation. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartMessage chart = 5; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ChartMessage|null + */ + public function getChart() + { + return $this->readOneof(5); + } + + public function hasChart() + { + return $this->hasOneof(5); + } + + /** + * A message produced during chart generation. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartMessage chart = 5; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ChartMessage $var + * @return $this + */ + public function setChart($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChartMessage::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * An error message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ErrorMessage error = 6; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ErrorMessage|null + */ + public function getError() + { + return $this->readOneof(6); + } + + public function hasError() + { + return $this->hasOneof(6); + } + + /** + * An error message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ErrorMessage error = 6; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ErrorMessage $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ErrorMessage::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Optional. A message containing example queries. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQueries|null + */ + public function getExampleQueries() + { + return $this->readOneof(13); + } + + public function hasExampleQueries() + { + return $this->hasOneof(13); + } + + /** + * Optional. A message containing example queries. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQueries $var + * @return $this + */ + public function setExampleQueries($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQueries::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Optional. Deprecated: Use TextMessage with TextType.FINAL_RESPONSE + * instead. A message containing clarification questions. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationMessage|null + * @deprecated + */ + public function getClarification() + { + if ($this->hasOneof(14)) { + @trigger_error('clarification is deprecated.', E_USER_DEPRECATED); + } + return $this->readOneof(14); + } + + public function hasClarification() + { + if ($this->hasOneof(14)) { + @trigger_error('clarification is deprecated.', E_USER_DEPRECATED); + } + return $this->hasOneof(14); + } + + /** + * Optional. Deprecated: Use TextMessage with TextType.FINAL_RESPONSE + * instead. A message containing clarification questions. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationMessage $var + * @return $this + * @deprecated + */ + public function setClarification($var) + { + @trigger_error('clarification is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationMessage::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * Identifies the group that the event belongs to. Similar events are deemed + * to be logically relevant to each other and should be shown together in + * the UI. + * + * Generated from protobuf field optional int32 group_id = 12; + * @return int + */ + public function getGroupId() + { + return isset($this->group_id) ? $this->group_id : 0; + } + + public function hasGroupId() + { + return isset($this->group_id); + } + + public function clearGroupId() + { + unset($this->group_id); + } + + /** + * Identifies the group that the event belongs to. Similar events are deemed + * to be logically relevant to each other and should be shown together in + * the UI. + * + * Generated from protobuf field optional int32 group_id = 12; + * @param int $var + * @return $this + */ + public function setGroupId($var) + { + GPBUtil::checkInt32($var); + $this->group_id = $var; + + return $this; + } + + /** + * Output only. Citation information for the system message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Citation citation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Citation|null + */ + public function getCitation() + { + return $this->citation; + } + + public function hasCitation() + { + return isset($this->citation); + } + + public function clearCitation() + { + unset($this->citation); + } + + /** + * Output only. Citation information for the system message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Citation citation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Citation $var + * @return $this + */ + public function setCitation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Citation::class); + $this->citation = $var; + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/TextMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/TextMessage.php new file mode 100644 index 000000000000..1ec10ab7a44c --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/TextMessage.php @@ -0,0 +1,139 @@ +google.cloud.geminidataanalytics.v1beta.TextMessage + */ +class TextMessage extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The parts of the message. + * + * Generated from protobuf field repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $parts; + /** + * Optional. The type of the text message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $text_type = 0; + /** + * Optional. An opaque signature for a thought so it can be reused in + * subsequent requests. + * + * Generated from protobuf field bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $thought_signature = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $parts + * Optional. The parts of the message. + * @type int $text_type + * Optional. The type of the text message. + * @type string $thought_signature + * Optional. An opaque signature for a thought so it can be reused in + * subsequent requests. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The parts of the message. + * + * Generated from protobuf field repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getParts() + { + return $this->parts; + } + + /** + * Optional. The parts of the message. + * + * Generated from protobuf field repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setParts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->parts = $arr; + + return $this; + } + + /** + * Optional. The type of the text message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getTextType() + { + return $this->text_type; + } + + /** + * Optional. The type of the text message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setTextType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\TextMessage\TextType::class); + $this->text_type = $var; + + return $this; + } + + /** + * Optional. An opaque signature for a thought so it can be reused in + * subsequent requests. + * + * Generated from protobuf field bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getThoughtSignature() + { + return $this->thought_signature; + } + + /** + * Optional. An opaque signature for a thought so it can be reused in + * subsequent requests. + * + * Generated from protobuf field bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setThoughtSignature($var) + { + GPBUtil::checkString($var, False); + $this->thought_signature = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/TextMessage/TextType.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/TextMessage/TextType.php new file mode 100644 index 000000000000..8e92b4641f59 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/TextMessage/TextType.php @@ -0,0 +1,80 @@ +google.cloud.geminidataanalytics.v1beta.TextMessage.TextType + */ +class TextType +{ + /** + * The default text type. + * + * Generated from protobuf enum TEXT_TYPE_UNSPECIFIED = 0; + */ + const TEXT_TYPE_UNSPECIFIED = 0; + /** + * The text is a final response to the user question. + * + * Generated from protobuf enum FINAL_RESPONSE = 1; + */ + const FINAL_RESPONSE = 1; + /** + * The text is a thought from the model. + * + * Generated from protobuf enum THOUGHT = 2; + */ + const THOUGHT = 2; + /** + * The text is an informational message about the agent's progress, such as + * a tool being invoked. This is distinct from the agent's internal thought + * process (`THOUGHT`) and the final answer to the user + * (`FINAL_RESPONSE`). These messages provide insight into the agent's + * actions. + * + * Generated from protobuf enum PROGRESS = 3; + */ + const PROGRESS = 3; + /** + * The text is a list of follow-up questions suggested. + * Each item in parts is a follow-up question. + * + * Generated from protobuf enum FOLLOWUP_QUESTIONS = 4; + */ + const FOLLOWUP_QUESTIONS = 4; + + private static $valueToName = [ + self::TEXT_TYPE_UNSPECIFIED => 'TEXT_TYPE_UNSPECIFIED', + self::FINAL_RESPONSE => 'FINAL_RESPONSE', + self::THOUGHT => 'THOUGHT', + self::PROGRESS => 'PROGRESS', + self::FOLLOWUP_QUESTIONS => 'FOLLOWUP_QUESTIONS', + ]; + + 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UpdateDataAgentRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UpdateDataAgentRequest.php new file mode 100644 index 000000000000..18708afdd7bb --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UpdateDataAgentRequest.php @@ -0,0 +1,240 @@ +google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest + */ +class UpdateDataAgentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * DataAgent resource by the update. + * The fields specified in the update_mask are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields with non-default values + * present in the request will be overwritten. If a wildcard mask is provided, + * all fields will be overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Required. The resource being updated. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgent data_agent = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_agent = null; + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent $dataAgent Required. The resource being updated. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * DataAgent resource by the update. + * The fields specified in the update_mask are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields with non-default values + * present in the request will be overwritten. If a wildcard mask is provided, + * all fields will be overwritten. + * + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\UpdateDataAgentRequest + * + * @experimental + */ + public static function build(\Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent $dataAgent, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDataAgent($dataAgent) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Field mask is used to specify the fields to be overwritten in the + * DataAgent resource by the update. + * The fields specified in the update_mask are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields with non-default values + * present in the request will be overwritten. If a wildcard mask is provided, + * all fields will be overwritten. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent $data_agent + * Required. The resource being updated. + * @type string $request_id + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgentService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * DataAgent resource by the update. + * The fields specified in the update_mask are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields with non-default values + * present in the request will be overwritten. If a wildcard mask is provided, + * all fields will be overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the + * DataAgent resource by the update. + * The fields specified in the update_mask are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields with non-default values + * present in the request will be overwritten. If a wildcard mask is provided, + * all fields will be overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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; + } + + /** + * Required. The resource being updated. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgent data_agent = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent|null + */ + public function getDataAgent() + { + return $this->data_agent; + } + + public function hasDataAgent() + { + return isset($this->data_agent); + } + + public function clearDataAgent() + { + unset($this->data_agent); + } + + /** + * Required. The resource being updated. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgent data_agent = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent $var + * @return $this + */ + public function setDataAgent($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent::class); + $this->data_agent = $var; + + return $this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique + * request ID so that if you must retry your request, the server will know to + * ignore the request if it has already been completed. The server will + * guarantee that for at least 60 minutes since the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UserFunctions.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UserFunctions.php new file mode 100644 index 000000000000..83b528fec489 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UserFunctions.php @@ -0,0 +1,67 @@ +google.cloud.geminidataanalytics.v1beta.UserFunctions + */ +class UserFunctions extends \Google\Protobuf\Internal\Message +{ + /** + * A list of BigQuery routines to include in the context. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryRoutine bq_routines = 1; + */ + private $bq_routines; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryRoutine[] $bq_routines + * A list of BigQuery routines to include in the context. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); + parent::__construct($data); + } + + /** + * A list of BigQuery routines to include in the context. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryRoutine bq_routines = 1; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryRoutine> + */ + public function getBqRoutines() + { + return $this->bq_routines; + } + + /** + * A list of BigQuery routines to include in the context. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryRoutine bq_routines = 1; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryRoutine[] $var + * @return $this + */ + public function setBqRoutines($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryRoutine::class); + $this->bq_routines = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UserMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UserMessage.php new file mode 100644 index 000000000000..5a8930195779 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UserMessage.php @@ -0,0 +1,75 @@ +google.cloud.geminidataanalytics.v1beta.UserMessage + */ +class UserMessage extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $text + * Text should use this field instead of blob. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); + parent::__construct($data); + } + + /** + * Text should use this field instead of blob. + * + * Generated from protobuf field string text = 1; + * @return string + */ + public function getText() + { + return $this->readOneof(1); + } + + public function hasText() + { + return $this->hasOneof(1); + } + + /** + * Text should use this field instead of blob. + * + * Generated from protobuf field string text = 1; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/create_data_agent.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/create_data_agent.php new file mode 100644 index 000000000000..00eba51fe9b2 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/create_data_agent.php @@ -0,0 +1,85 @@ +setParent($formattedParent) + ->setDataAgent($dataAgent); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataAgentServiceClient->createDataAgent($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DataAgent $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 = DataAgentServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + create_data_agent_sample($formattedParent); +} +// [END geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgent_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/create_data_agent_sync.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/create_data_agent_sync.php new file mode 100644 index 000000000000..f3ddbb0ce95e --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/create_data_agent_sync.php @@ -0,0 +1,73 @@ +setParent($formattedParent) + ->setDataAgent($dataAgent); + + // Call the API and handle any network failures. + try { + /** @var DataAgent $response */ + $response = $dataAgentServiceClient->createDataAgentSync($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 = DataAgentServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + create_data_agent_sync_sample($formattedParent); +} +// [END geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgentSync_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/delete_data_agent.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/delete_data_agent.php new file mode 100644 index 000000000000..179700b34f48 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/delete_data_agent.php @@ -0,0 +1,80 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataAgentServiceClient->deleteDataAgent($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } 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 +{ + $formattedName = DataAgentServiceClient::dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); + + delete_data_agent_sample($formattedName); +} +// [END geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgent_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/delete_data_agent_sync.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/delete_data_agent_sync.php new file mode 100644 index 000000000000..ca37d541704c --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/delete_data_agent_sync.php @@ -0,0 +1,69 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataAgentServiceClient->deleteDataAgentSync($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 = DataAgentServiceClient::dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); + + delete_data_agent_sync_sample($formattedName); +} +// [END geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgentSync_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_data_agent.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_data_agent.php new file mode 100644 index 000000000000..e9ff3e265b19 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_data_agent.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataAgent $response */ + $response = $dataAgentServiceClient->getDataAgent($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 = DataAgentServiceClient::dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); + + get_data_agent_sample($formattedName); +} +// [END geminidataanalytics_v1beta_generated_DataAgentService_GetDataAgent_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_iam_policy.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_iam_policy.php new file mode 100644 index 000000000000..f245429deb01 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_iam_policy.php @@ -0,0 +1,71 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $dataAgentServiceClient->getIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END geminidataanalytics_v1beta_generated_DataAgentService_GetIamPolicy_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_location.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_location.php new file mode 100644 index 000000000000..923247045a27 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_location.php @@ -0,0 +1,57 @@ +getLocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END geminidataanalytics_v1beta_generated_DataAgentService_GetLocation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_accessible_data_agents.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_accessible_data_agents.php new file mode 100644 index 000000000000..9809096ebd71 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_accessible_data_agents.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataAgentServiceClient->listAccessibleDataAgents($request); + + /** @var DataAgent $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 = DataAgentServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_accessible_data_agents_sample($formattedParent); +} +// [END geminidataanalytics_v1beta_generated_DataAgentService_ListAccessibleDataAgents_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_data_agents.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_data_agents.php new file mode 100644 index 000000000000..4df1a479b7aa --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_data_agents.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataAgentServiceClient->listDataAgents($request); + + /** @var DataAgent $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 = DataAgentServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_data_agents_sample($formattedParent); +} +// [END geminidataanalytics_v1beta_generated_DataAgentService_ListDataAgents_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_locations.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_locations.php new file mode 100644 index 000000000000..dcca0ca70cc6 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_locations.php @@ -0,0 +1,77 @@ +listLocations($request); + + /** @var Location $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()); + } +} +// [END geminidataanalytics_v1beta_generated_DataAgentService_ListLocations_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/set_iam_policy.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/set_iam_policy.php new file mode 100644 index 000000000000..53af809bda3d --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/set_iam_policy.php @@ -0,0 +1,73 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $dataAgentServiceClient->setIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END geminidataanalytics_v1beta_generated_DataAgentService_SetIamPolicy_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/update_data_agent.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/update_data_agent.php new file mode 100644 index 000000000000..43877c9a8d02 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/update_data_agent.php @@ -0,0 +1,71 @@ +setDataAgent($dataAgent); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataAgentServiceClient->updateDataAgent($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DataAgent $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()); + } +} +// [END geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgent_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/update_data_agent_sync.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/update_data_agent_sync.php new file mode 100644 index 000000000000..98be2bda9c1f --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/update_data_agent_sync.php @@ -0,0 +1,59 @@ +setDataAgent($dataAgent); + + // Call the API and handle any network failures. + try { + /** @var DataAgent $response */ + $response = $dataAgentServiceClient->updateDataAgentSync($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgentSync_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/chat.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/chat.php new file mode 100644 index 000000000000..b86005cfdff1 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/chat.php @@ -0,0 +1,79 @@ +setParent($parent) + ->setMessages($messages); + + // Call the API and handle any network failures. + try { + /** @var ServerStream $stream */ + $stream = $dataChatServiceClient->chat($request); + + /** @var Message $element */ + foreach ($stream->readAll() 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 +{ + $parent = '[PARENT]'; + + chat_sample($parent); +} +// [END geminidataanalytics_v1beta_generated_DataChatService_Chat_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/create_conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/create_conversation.php new file mode 100644 index 000000000000..176cabea58f9 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/create_conversation.php @@ -0,0 +1,84 @@ +setAgents($conversationAgents); + $request = (new CreateConversationRequest()) + ->setParent($formattedParent) + ->setConversation($conversation); + + // Call the API and handle any network failures. + try { + /** @var Conversation $response */ + $response = $dataChatServiceClient->createConversation($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 = DataChatServiceClient::locationName('[PROJECT]', '[LOCATION]'); + $conversationAgentsElement = '[AGENTS]'; + + create_conversation_sample($formattedParent, $conversationAgentsElement); +} +// [END geminidataanalytics_v1beta_generated_DataChatService_CreateConversation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/delete_conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/delete_conversation.php new file mode 100644 index 000000000000..7643d77052b7 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/delete_conversation.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataChatServiceClient->deleteConversation($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 = DataChatServiceClient::conversationName( + '[PROJECT]', + '[LOCATION]', + '[CONVERSATION]' + ); + + delete_conversation_sample($formattedName); +} +// [END geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/get_conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/get_conversation.php new file mode 100644 index 000000000000..4aaaf276285c --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/get_conversation.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Conversation $response */ + $response = $dataChatServiceClient->getConversation($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 = DataChatServiceClient::conversationName( + '[PROJECT]', + '[LOCATION]', + '[CONVERSATION]' + ); + + get_conversation_sample($formattedName); +} +// [END geminidataanalytics_v1beta_generated_DataChatService_GetConversation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/get_location.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/get_location.php new file mode 100644 index 000000000000..4c70a5831734 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/get_location.php @@ -0,0 +1,57 @@ +getLocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END geminidataanalytics_v1beta_generated_DataChatService_GetLocation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_conversations.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_conversations.php new file mode 100644 index 000000000000..8bcb5a9aca7a --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_conversations.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataChatServiceClient->listConversations($request); + + /** @var Conversation $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 = DataChatServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_conversations_sample($formattedParent); +} +// [END geminidataanalytics_v1beta_generated_DataChatService_ListConversations_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_locations.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_locations.php new file mode 100644 index 000000000000..1219c1cd0007 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_locations.php @@ -0,0 +1,77 @@ +listLocations($request); + + /** @var Location $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()); + } +} +// [END geminidataanalytics_v1beta_generated_DataChatService_ListLocations_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_messages.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_messages.php new file mode 100644 index 000000000000..d65057a35076 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_messages.php @@ -0,0 +1,82 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataChatServiceClient->listMessages($request); + + /** @var StorageMessage $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 = DataChatServiceClient::conversationName( + '[PROJECT]', + '[LOCATION]', + '[CONVERSATION]' + ); + + list_messages_sample($formattedParent); +} +// [END geminidataanalytics_v1beta_generated_DataChatService_ListMessages_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/query_data.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/query_data.php new file mode 100644 index 000000000000..0fc4921349a1 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/query_data.php @@ -0,0 +1,82 @@ +setDatasourceReferences($contextDatasourceReferences); + $request = (new QueryDataRequest()) + ->setParent($formattedParent) + ->setPrompt($prompt) + ->setContext($context); + + // Call the API and handle any network failures. + try { + /** @var QueryDataResponse $response */ + $response = $dataChatServiceClient->queryData($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 = DataChatServiceClient::locationName('[PROJECT]', '[LOCATION]'); + $prompt = '[PROMPT]'; + + query_data_sample($formattedParent, $prompt); +} +// [END geminidataanalytics_v1beta_generated_DataChatService_QueryData_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/Client/DataAgentServiceClient.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/Client/DataAgentServiceClient.php new file mode 100644 index 000000000000..78353268f7ff --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/Client/DataAgentServiceClient.php @@ -0,0 +1,744 @@ + createDataAgentAsync(CreateDataAgentRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDataAgentSyncAsync(CreateDataAgentRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataAgentAsync(DeleteDataAgentRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataAgentSyncAsync(DeleteDataAgentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataAgentAsync(GetDataAgentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAccessibleDataAgentsAsync(ListAccessibleDataAgentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataAgentsAsync(ListDataAgentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataAgentAsync(UpdateDataAgentRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataAgentSyncAsync(UpdateDataAgentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + */ +final class DataAgentServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.geminidataanalytics.v1beta.DataAgentService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'geminidataanalytics.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'geminidataanalytics.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/data_agent_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/data_agent_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/data_agent_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/data_agent_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + * + * @experimental + */ + 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 + * + * @experimental + */ + 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 crypto_key + * resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * + * @return string The formatted crypto_key resource. + * + * @experimental + */ + public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string + { + return self::getPathTemplate('cryptoKey')->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a data_agent + * resource. + * + * @param string $project + * @param string $location + * @param string $dataAgent + * + * @return string The formatted data_agent resource. + * + * @experimental + */ + public static function dataAgentName(string $project, string $location, string $dataAgent): string + { + return self::getPathTemplate('dataAgent')->render([ + 'project' => $project, + 'location' => $location, + 'data_agent' => $dataAgent, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + * + * @experimental + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + * - dataAgent: projects/{project}/locations/{location}/dataAgents/{data_agent} + * - location: projects/{project}/locations/{location} + * + * 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. + * + * @experimental + */ + 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 'geminidataanalytics.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\GeminiDataAnalytics\V1beta\DataAgentServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DataAgentServiceClient(['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 + * + * @experimental + */ + 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); + } + + /** + * Creates a new DataAgent in a given project and location. + * + * The async variant is {@see DataAgentServiceClient::createDataAgentAsync()} . + * + * @example samples/V1beta/DataAgentServiceClient/create_data_agent.php + * + * @param CreateDataAgentRequest $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. + * + * @experimental + */ + public function createDataAgent(CreateDataAgentRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateDataAgent', $request, $callOptions)->wait(); + } + + /** + * Creates a new DataAgent in a given project and location synchronously. + * + * The async variant is {@see DataAgentServiceClient::createDataAgentSyncAsync()} . + * + * @example samples/V1beta/DataAgentServiceClient/create_data_agent_sync.php + * + * @param CreateDataAgentRequest $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 DataAgent + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function createDataAgentSync(CreateDataAgentRequest $request, array $callOptions = []): DataAgent + { + return $this->startApiCall('CreateDataAgentSync', $request, $callOptions)->wait(); + } + + /** + * Deletes a single DataAgent. + * + * The async variant is {@see DataAgentServiceClient::deleteDataAgentAsync()} . + * + * @example samples/V1beta/DataAgentServiceClient/delete_data_agent.php + * + * @param DeleteDataAgentRequest $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. + * + * @experimental + */ + public function deleteDataAgent(DeleteDataAgentRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteDataAgent', $request, $callOptions)->wait(); + } + + /** + * Deletes a single DataAgent synchronously. + * + * The async variant is {@see DataAgentServiceClient::deleteDataAgentSyncAsync()} . + * + * @example samples/V1beta/DataAgentServiceClient/delete_data_agent_sync.php + * + * @param DeleteDataAgentRequest $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. + * + * @experimental + */ + public function deleteDataAgentSync(DeleteDataAgentRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteDataAgentSync', $request, $callOptions)->wait(); + } + + /** + * Gets details of a single DataAgent. + * + * The async variant is {@see DataAgentServiceClient::getDataAgentAsync()} . + * + * @example samples/V1beta/DataAgentServiceClient/get_data_agent.php + * + * @param GetDataAgentRequest $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 DataAgent + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getDataAgent(GetDataAgentRequest $request, array $callOptions = []): DataAgent + { + return $this->startApiCall('GetDataAgent', $request, $callOptions)->wait(); + } + + /** + * Gets the IAM policy for DataAgent + * + * The async variant is {@see DataAgentServiceClient::getIamPolicyAsync()} . + * + * @example samples/V1beta/DataAgentServiceClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Lists DataAgents that are accessible to the caller in a given project and + * location. + * + * The async variant is + * {@see DataAgentServiceClient::listAccessibleDataAgentsAsync()} . + * + * @example samples/V1beta/DataAgentServiceClient/list_accessible_data_agents.php + * + * @param ListAccessibleDataAgentsRequest $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. + * + * @experimental + */ + public function listAccessibleDataAgents(ListAccessibleDataAgentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAccessibleDataAgents', $request, $callOptions); + } + + /** + * Lists DataAgents in a given project and location. + * + * The async variant is {@see DataAgentServiceClient::listDataAgentsAsync()} . + * + * @example samples/V1beta/DataAgentServiceClient/list_data_agents.php + * + * @param ListDataAgentsRequest $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. + * + * @experimental + */ + public function listDataAgents(ListDataAgentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDataAgents', $request, $callOptions); + } + + /** + * Sets the IAM policy for a DataAgent. + * + * The async variant is {@see DataAgentServiceClient::setIamPolicyAsync()} . + * + * @example samples/V1beta/DataAgentServiceClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Updates the parameters of a single DataAgent. + * + * The async variant is {@see DataAgentServiceClient::updateDataAgentAsync()} . + * + * @example samples/V1beta/DataAgentServiceClient/update_data_agent.php + * + * @param UpdateDataAgentRequest $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. + * + * @experimental + */ + public function updateDataAgent(UpdateDataAgentRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateDataAgent', $request, $callOptions)->wait(); + } + + /** + * Updates the parameters of a single DataAgent synchronously. + * + * The async variant is {@see DataAgentServiceClient::updateDataAgentSyncAsync()} . + * + * @example samples/V1beta/DataAgentServiceClient/update_data_agent_sync.php + * + * @param UpdateDataAgentRequest $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 DataAgent + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function updateDataAgentSync(UpdateDataAgentRequest $request, array $callOptions = []): DataAgent + { + return $this->startApiCall('UpdateDataAgentSync', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see DataAgentServiceClient::getLocationAsync()} . + * + * @example samples/V1beta/DataAgentServiceClient/get_location.php + * + * @param GetLocationRequest $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 Location + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getLocation(GetLocationRequest $request, array $callOptions = []): Location + { + return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); + } + + /** + * Lists information about the supported locations for this service. + + This method lists locations based on the resource scope provided in + the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * + **Global locations**: If `name` is empty, the method lists the + public locations available to all projects. * **Project-specific + locations**: If `name` follows the format + `projects/{project}`, the method lists locations visible to that + specific project. This includes public, private, or other + project-specific locations enabled for the project. + + For gRPC and client library implementations, the resource name is + passed as the `name` field. For direct service calls, the resource + name is + incorporated into the request path based on the specific service + implementation and version. + * + * The async variant is {@see DataAgentServiceClient::listLocationsAsync()} . + * + * @example samples/V1beta/DataAgentServiceClient/list_locations.php + * + * @param ListLocationsRequest $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. + * + * @experimental + */ + public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLocations', $request, $callOptions); + } +} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/Client/DataChatServiceClient.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/Client/DataChatServiceClient.php new file mode 100644 index 000000000000..dae101ba60eb --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/Client/DataChatServiceClient.php @@ -0,0 +1,608 @@ + createConversationAsync(CreateConversationRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteConversationAsync(DeleteConversationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getConversationAsync(GetConversationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listConversationsAsync(ListConversationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMessagesAsync(ListMessagesRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryDataAsync(QueryDataRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + */ +final class DataChatServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.geminidataanalytics.v1beta.DataChatService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'geminidataanalytics.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'geminidataanalytics.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_chat_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/data_chat_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/data_chat_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/data_chat_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a conversation + * resource. + * + * @param string $project + * @param string $location + * @param string $conversation + * + * @return string The formatted conversation resource. + * + * @experimental + */ + public static function conversationName(string $project, string $location, string $conversation): string + { + return self::getPathTemplate('conversation')->render([ + 'project' => $project, + 'location' => $location, + 'conversation' => $conversation, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a crypto_key + * resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * + * @return string The formatted crypto_key resource. + * + * @experimental + */ + public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string + { + return self::getPathTemplate('cryptoKey')->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a data_agent + * resource. + * + * @param string $project + * @param string $location + * @param string $dataAgent + * + * @return string The formatted data_agent resource. + * + * @experimental + */ + public static function dataAgentName(string $project, string $location, string $dataAgent): string + { + return self::getPathTemplate('dataAgent')->render([ + 'project' => $project, + 'location' => $location, + 'data_agent' => $dataAgent, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + * + * @experimental + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a project + * resource. + * + * @param string $project + * + * @return string The formatted project resource. + * + * @experimental + */ + public static function projectName(string $project): string + { + return self::getPathTemplate('project')->render([ + 'project' => $project, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - conversation: projects/{project}/locations/{location}/conversations/{conversation} + * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + * - dataAgent: projects/{project}/locations/{location}/dataAgents/{data_agent} + * - location: projects/{project}/locations/{location} + * - project: projects/{project} + * + * 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. + * + * @experimental + */ + 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 'geminidataanalytics.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\GeminiDataAnalytics\V1beta\DataChatServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DataChatServiceClient(['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 + * + * @experimental + */ + 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); + } + + /** + * Answers a data question by generating a stream of + * [Message][google.cloud.geminidataanalytics.v1.Message] objects. + * + * @example samples/V1beta/DataChatServiceClient/chat.php + * + * @param ChatRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type int $timeoutMillis + * Timeout to use for this call. + * } + * + * @return ServerStream + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function chat(ChatRequest $request, array $callOptions = []): ServerStream + { + return $this->startApiCall('Chat', $request, $callOptions); + } + + /** + * Creates a new conversation to persist the conversation history. Each + * conversation will have multiple messages associated with it. + * + * The async variant is {@see DataChatServiceClient::createConversationAsync()} . + * + * @example samples/V1beta/DataChatServiceClient/create_conversation.php + * + * @param CreateConversationRequest $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 Conversation + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function createConversation(CreateConversationRequest $request, array $callOptions = []): Conversation + { + return $this->startApiCall('CreateConversation', $request, $callOptions)->wait(); + } + + /** + * Deletes a conversation. + * + * The async variant is {@see DataChatServiceClient::deleteConversationAsync()} . + * + * @example samples/V1beta/DataChatServiceClient/delete_conversation.php + * + * @param DeleteConversationRequest $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. + * + * @experimental + */ + public function deleteConversation(DeleteConversationRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteConversation', $request, $callOptions)->wait(); + } + + /** + * Gets details of a single conversation by using conversation id and parent. + * + * The async variant is {@see DataChatServiceClient::getConversationAsync()} . + * + * @example samples/V1beta/DataChatServiceClient/get_conversation.php + * + * @param GetConversationRequest $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 Conversation + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getConversation(GetConversationRequest $request, array $callOptions = []): Conversation + { + return $this->startApiCall('GetConversation', $request, $callOptions)->wait(); + } + + /** + * Lists all conversations for a given parent. + * + * The async variant is {@see DataChatServiceClient::listConversationsAsync()} . + * + * @example samples/V1beta/DataChatServiceClient/list_conversations.php + * + * @param ListConversationsRequest $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. + * + * @experimental + */ + public function listConversations(ListConversationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListConversations', $request, $callOptions); + } + + /** + * Lists all messages for a given conversation. + * + * The async variant is {@see DataChatServiceClient::listMessagesAsync()} . + * + * @example samples/V1beta/DataChatServiceClient/list_messages.php + * + * @param ListMessagesRequest $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. + * + * @experimental + */ + public function listMessages(ListMessagesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListMessages', $request, $callOptions); + } + + /** + * Queries data from a natural language user query. + * + * The async variant is {@see DataChatServiceClient::queryDataAsync()} . + * + * @example samples/V1beta/DataChatServiceClient/query_data.php + * + * @param QueryDataRequest $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 QueryDataResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function queryData(QueryDataRequest $request, array $callOptions = []): QueryDataResponse + { + return $this->startApiCall('QueryData', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see DataChatServiceClient::getLocationAsync()} . + * + * @example samples/V1beta/DataChatServiceClient/get_location.php + * + * @param GetLocationRequest $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 Location + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getLocation(GetLocationRequest $request, array $callOptions = []): Location + { + return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); + } + + /** + * Lists information about the supported locations for this service. + + This method lists locations based on the resource scope provided in + the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * + **Global locations**: If `name` is empty, the method lists the + public locations available to all projects. * **Project-specific + locations**: If `name` follows the format + `projects/{project}`, the method lists locations visible to that + specific project. This includes public, private, or other + project-specific locations enabled for the project. + + For gRPC and client library implementations, the resource name is + passed as the `name` field. For direct service calls, the resource + name is + incorporated into the request path based on the specific service + implementation and version. + * + * The async variant is {@see DataChatServiceClient::listLocationsAsync()} . + * + * @example samples/V1beta/DataChatServiceClient/list_locations.php + * + * @param ListLocationsRequest $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. + * + * @experimental + */ + public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLocations', $request, $callOptions); + } +} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/gapic_metadata.json b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/gapic_metadata.json new file mode 100644 index 000000000000..a79c77aa8ea3 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/gapic_metadata.json @@ -0,0 +1,137 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.geminidataanalytics.v1beta", + "libraryPackage": "Google\\Cloud\\GeminiDataAnalytics\\V1beta", + "services": { + "DataAgentService": { + "clients": { + "grpc": { + "libraryClient": "DataAgentServiceGapicClient", + "rpcs": { + "CreateDataAgent": { + "methods": [ + "createDataAgent" + ] + }, + "CreateDataAgentSync": { + "methods": [ + "createDataAgentSync" + ] + }, + "DeleteDataAgent": { + "methods": [ + "deleteDataAgent" + ] + }, + "DeleteDataAgentSync": { + "methods": [ + "deleteDataAgentSync" + ] + }, + "GetDataAgent": { + "methods": [ + "getDataAgent" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "ListAccessibleDataAgents": { + "methods": [ + "listAccessibleDataAgents" + ] + }, + "ListDataAgents": { + "methods": [ + "listDataAgents" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "UpdateDataAgent": { + "methods": [ + "updateDataAgent" + ] + }, + "UpdateDataAgentSync": { + "methods": [ + "updateDataAgentSync" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + } + } + } + } + }, + "DataChatService": { + "clients": { + "grpc": { + "libraryClient": "DataChatServiceGapicClient", + "rpcs": { + "Chat": { + "methods": [ + "chat" + ] + }, + "CreateConversation": { + "methods": [ + "createConversation" + ] + }, + "DeleteConversation": { + "methods": [ + "deleteConversation" + ] + }, + "GetConversation": { + "methods": [ + "getConversation" + ] + }, + "ListConversations": { + "methods": [ + "listConversations" + ] + }, + "ListMessages": { + "methods": [ + "listMessages" + ] + }, + "QueryData": { + "methods": [ + "queryData" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_client_config.json b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_client_config.json new file mode 100644 index 000000000000..fc71a4e3a3bd --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_client_config.json @@ -0,0 +1,99 @@ +{ + "interfaces": { + "google.cloud.geminidataanalytics.v1beta.DataAgentService": { + "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": 10000, + "initial_rpc_timeout_millis": 600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 600000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "CreateDataAgent": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateDataAgentSync": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteDataAgent": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteDataAgentSync": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDataAgent": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetIamPolicy": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAccessibleDataAgents": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListDataAgents": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "SetIamPolicy": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateDataAgent": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateDataAgentSync": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetLocation": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListLocations": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_descriptor_config.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_descriptor_config.php new file mode 100644 index 000000000000..f2dd70e0e0d2 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_descriptor_config.php @@ -0,0 +1,238 @@ + [ + 'google.cloud.geminidataanalytics.v1beta.DataAgentService' => [ + 'CreateDataAgent' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent', + 'metadataReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1beta\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDataAgent' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1beta\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateDataAgent' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent', + 'metadataReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1beta\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'data_agent.name', + 'fieldAccessors' => [ + 'getDataAgent', + 'getName', + ], + ], + ], + ], + 'CreateDataAgentSync' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDataAgentSync' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataAgent' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'ListAccessibleDataAgents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataAgents', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\ListAccessibleDataAgentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataAgents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataAgents', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\ListDataAgentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'UpdateDataAgentSync' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent', + 'headerParams' => [ + [ + 'keyName' => 'data_agent.name', + 'fieldAccessors' => [ + 'getDataAgent', + 'getName', + ], + ], + ], + ], + 'GetLocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Location\Location', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'ListLocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLocations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'templateMap' => [ + 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', + 'dataAgent' => 'projects/{project}/locations/{location}/dataAgents/{data_agent}', + 'location' => 'projects/{project}/locations/{location}', + ], + ], + ], +]; diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_rest_client_config.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_rest_client_config.php new file mode 100644 index 000000000000..009377e77874 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_rest_client_config.php @@ -0,0 +1,229 @@ + [ + 'google.cloud.geminidataanalytics.v1beta.DataAgentService' => [ + 'CreateDataAgent' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}/dataAgents', + 'body' => 'data_agent', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDataAgentSync' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}/dataAgents:createSync', + 'body' => 'data_agent', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDataAgent' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/dataAgents/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDataAgentSync' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/dataAgents/*}:deleteSync', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataAgent' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/dataAgents/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/dataAgents/*}:getIamPolicy', + 'body' => '*', + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'ListAccessibleDataAgents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}/dataAgents:listAccessible', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataAgents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}/dataAgents', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/dataAgents/*}:setIamPolicy', + 'body' => '*', + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'UpdateDataAgent' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1beta/{data_agent.name=projects/*/locations/*/dataAgents/*}', + 'body' => 'data_agent', + 'placeholders' => [ + 'data_agent.name' => [ + 'getters' => [ + 'getDataAgent', + 'getName', + ], + ], + ], + ], + 'UpdateDataAgentSync' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1beta/{data_agent.name=projects/*/locations/*/dataAgents/*}:updateSync', + 'body' => 'data_agent', + 'placeholders' => [ + 'data_agent.name' => [ + 'getters' => [ + 'getDataAgent', + 'getName', + ], + ], + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=projects/*/locations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=projects/*}/locations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=projects/*/locations/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_client_config.json b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_client_config.json new file mode 100644 index 000000000000..a9855879377d --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_client_config.json @@ -0,0 +1,77 @@ +{ + "interfaces": { + "google.cloud.geminidataanalytics.v1beta.DataChatService": { + "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": 10000, + "initial_rpc_timeout_millis": 600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 600000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "Chat": { + "timeout_millis": 600000 + }, + "CreateConversation": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteConversation": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetConversation": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListConversations": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListMessages": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "QueryData": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetLocation": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListLocations": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_descriptor_config.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_descriptor_config.php new file mode 100644 index 000000000000..e10d915e8fa6 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_descriptor_config.php @@ -0,0 +1,172 @@ + [ + 'google.cloud.geminidataanalytics.v1beta.DataChatService' => [ + 'Chat' => [ + 'grpcStreaming' => [ + 'grpcStreamingType' => 'ServerStreaming', + ], + 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\Message', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateConversation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\Conversation', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteConversation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetConversation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\Conversation', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListConversations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getConversations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\ListConversationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListMessages' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getMessages', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\ListMessagesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'QueryData' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\QueryDataResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetLocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Location\Location', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'ListLocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLocations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'templateMap' => [ + 'conversation' => 'projects/{project}/locations/{location}/conversations/{conversation}', + 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', + 'dataAgent' => 'projects/{project}/locations/{location}/dataAgents/{data_agent}', + 'location' => 'projects/{project}/locations/{location}', + 'project' => 'projects/{project}', + ], + ], + ], +]; diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_rest_client_config.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_rest_client_config.php new file mode 100644 index 000000000000..a04e6cc61b3a --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_rest_client_config.php @@ -0,0 +1,180 @@ + [ + 'google.cloud.geminidataanalytics.v1beta.DataChatService' => [ + 'Chat' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}:chat', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateConversation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}/conversations', + 'body' => 'conversation', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteConversation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/conversations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetConversation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/conversations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListConversations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}/conversations', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListMessages' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*/conversations/*}/messages', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'QueryData' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}:queryData', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=projects/*/locations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=projects/*}/locations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=projects/*/locations/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/tests/Unit/V1beta/Client/DataAgentServiceClientTest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/tests/Unit/V1beta/Client/DataAgentServiceClientTest.php new file mode 100644 index 000000000000..d599e629c835 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/tests/Unit/V1beta/Client/DataAgentServiceClientTest.php @@ -0,0 +1,1225 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DataAgentServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DataAgentServiceClient($options); + } + + /** @test */ + public function createDataAgentTest() + { + $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/createDataAgentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $kmsKey = 'kmsKey-591635343'; + $expectedResponse = new DataAgent(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setKmsKey($kmsKey); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createDataAgentTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $dataAgent = new DataAgent(); + $request = (new CreateDataAgentRequest()) + ->setParent($formattedParent) + ->setDataAgent($dataAgent); + $response = $gapicClient->createDataAgent($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.geminidataanalytics.v1beta.DataAgentService/CreateDataAgent', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getDataAgent(); + $this->assertProtobufEquals($dataAgent, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataAgentTest'); + $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 createDataAgentExceptionTest() + { + $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/createDataAgentTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $dataAgent = new DataAgent(); + $request = (new CreateDataAgentRequest()) + ->setParent($formattedParent) + ->setDataAgent($dataAgent); + $response = $gapicClient->createDataAgent($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataAgentTest'); + 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 createDataAgentSyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $kmsKey = 'kmsKey-591635343'; + $expectedResponse = new DataAgent(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setKmsKey($kmsKey); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $dataAgent = new DataAgent(); + $request = (new CreateDataAgentRequest()) + ->setParent($formattedParent) + ->setDataAgent($dataAgent); + $response = $gapicClient->createDataAgentSync($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.geminidataanalytics.v1beta.DataAgentService/CreateDataAgentSync', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDataAgent(); + $this->assertProtobufEquals($dataAgent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataAgentSyncExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $dataAgent = new DataAgent(); + $request = (new CreateDataAgentRequest()) + ->setParent($formattedParent) + ->setDataAgent($dataAgent); + try { + $gapicClient->createDataAgentSync($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 deleteDataAgentTest() + { + $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/deleteDataAgentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteDataAgentTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); + $request = (new DeleteDataAgentRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDataAgent($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.geminidataanalytics.v1beta.DataAgentService/DeleteDataAgent', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDataAgentTest'); + $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 deleteDataAgentExceptionTest() + { + $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/deleteDataAgentTest'); + $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 + $formattedName = $gapicClient->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); + $request = (new DeleteDataAgentRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDataAgent($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDataAgentTest'); + 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 deleteDataAgentSyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); + $request = (new DeleteDataAgentRequest()) + ->setName($formattedName); + $gapicClient->deleteDataAgentSync($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.geminidataanalytics.v1beta.DataAgentService/DeleteDataAgentSync', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataAgentSyncExceptionTest() + { + $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->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); + $request = (new DeleteDataAgentRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteDataAgentSync($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 getDataAgentTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $kmsKey = 'kmsKey-591635343'; + $expectedResponse = new DataAgent(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setKmsKey($kmsKey); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); + $request = (new GetDataAgentRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataAgent($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.geminidataanalytics.v1beta.DataAgentService/GetDataAgent', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataAgentExceptionTest() + { + $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->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); + $request = (new GetDataAgentRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataAgent($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 getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($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.geminidataanalytics.v1beta.DataAgentService/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($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 listAccessibleDataAgentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataAgentsElement = new DataAgent(); + $dataAgents = [ + $dataAgentsElement, + ]; + $expectedResponse = new ListAccessibleDataAgentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataAgents($dataAgents); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListAccessibleDataAgentsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAccessibleDataAgents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataAgents()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.geminidataanalytics.v1beta.DataAgentService/ListAccessibleDataAgents', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccessibleDataAgentsExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListAccessibleDataAgentsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAccessibleDataAgents($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 listDataAgentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataAgentsElement = new DataAgent(); + $dataAgents = [ + $dataAgentsElement, + ]; + $expectedResponse = new ListDataAgentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataAgents($dataAgents); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDataAgentsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDataAgents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataAgents()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.geminidataanalytics.v1beta.DataAgentService/ListDataAgents', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataAgentsExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDataAgentsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDataAgents($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 setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($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.geminidataanalytics.v1beta.DataAgentService/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($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 updateDataAgentTest() + { + $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/updateDataAgentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $kmsKey = 'kmsKey-591635343'; + $expectedResponse = new DataAgent(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setKmsKey($kmsKey); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateDataAgentTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $dataAgent = new DataAgent(); + $request = (new UpdateDataAgentRequest()) + ->setDataAgent($dataAgent); + $response = $gapicClient->updateDataAgent($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.geminidataanalytics.v1beta.DataAgentService/UpdateDataAgent', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getDataAgent(); + $this->assertProtobufEquals($dataAgent, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDataAgentTest'); + $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 updateDataAgentExceptionTest() + { + $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/updateDataAgentTest'); + $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 + $dataAgent = new DataAgent(); + $request = (new UpdateDataAgentRequest()) + ->setDataAgent($dataAgent); + $response = $gapicClient->updateDataAgent($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDataAgentTest'); + 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 updateDataAgentSyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $kmsKey = 'kmsKey-591635343'; + $expectedResponse = new DataAgent(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setKmsKey($kmsKey); + $transport->addResponse($expectedResponse); + // Mock request + $dataAgent = new DataAgent(); + $request = (new UpdateDataAgentRequest()) + ->setDataAgent($dataAgent); + $response = $gapicClient->updateDataAgentSync($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.geminidataanalytics.v1beta.DataAgentService/UpdateDataAgentSync', $actualFuncCall); + $actualValue = $actualRequestObject->getDataAgent(); + $this->assertProtobufEquals($dataAgent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataAgentSyncExceptionTest() + { + $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 + $dataAgent = new DataAgent(); + $request = (new UpdateDataAgentRequest()) + ->setDataAgent($dataAgent); + try { + $gapicClient->updateDataAgentSync($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 getLocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $locationId = 'locationId552319461'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Location(); + $expectedResponse->setName($name2); + $expectedResponse->setLocationId($locationId); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + $request = new GetLocationRequest(); + $response = $gapicClient->getLocation($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.location.Locations/GetLocation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLocationExceptionTest() + { + $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); + $request = new GetLocationRequest(); + try { + $gapicClient->getLocation($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 listLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $locationsElement = new Location(); + $locations = [ + $locationsElement, + ]; + $expectedResponse = new ListLocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLocations($locations); + $transport->addResponse($expectedResponse); + $request = new ListLocationsRequest(); + $response = $gapicClient->listLocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsExceptionTest() + { + $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); + $request = new ListLocationsRequest(); + try { + $gapicClient->listLocations($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 createDataAgentAsyncTest() + { + $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/createDataAgentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $kmsKey = 'kmsKey-591635343'; + $expectedResponse = new DataAgent(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setKmsKey($kmsKey); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createDataAgentTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $dataAgent = new DataAgent(); + $request = (new CreateDataAgentRequest()) + ->setParent($formattedParent) + ->setDataAgent($dataAgent); + $response = $gapicClient->createDataAgentAsync($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.geminidataanalytics.v1beta.DataAgentService/CreateDataAgent', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getDataAgent(); + $this->assertProtobufEquals($dataAgent, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataAgentTest'); + $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()); + } +} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/tests/Unit/V1beta/Client/DataChatServiceClientTest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/tests/Unit/V1beta/Client/DataChatServiceClientTest.php new file mode 100644 index 000000000000..271f3cdc43c6 --- /dev/null +++ b/owl-bot-staging/GeminiDataAnalytics/v1beta/tests/Unit/V1beta/Client/DataChatServiceClientTest.php @@ -0,0 +1,765 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DataChatServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DataChatServiceClient($options); + } + + /** @test */ + public function chatTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $messageId = 'messageId-1690722221'; + $expectedResponse = new Message(); + $expectedResponse->setMessageId($messageId); + $transport->addResponse($expectedResponse); + $messageId2 = 'messageId2-1286413498'; + $expectedResponse2 = new Message(); + $expectedResponse2->setMessageId($messageId2); + $transport->addResponse($expectedResponse2); + $messageId3 = 'messageId3-1286413497'; + $expectedResponse3 = new Message(); + $expectedResponse3->setMessageId($messageId3); + $transport->addResponse($expectedResponse3); + // Mock request + $parent = 'parent-995424086'; + $messages = []; + $request = (new ChatRequest()) + ->setParent($parent) + ->setMessages($messages); + $serverStream = $gapicClient->chat($request); + $this->assertInstanceOf(ServerStream::class, $serverStream); + $responses = iterator_to_array($serverStream->readAll()); + $expectedResponses = []; + $expectedResponses[] = $expectedResponse; + $expectedResponses[] = $expectedResponse2; + $expectedResponses[] = $expectedResponse3; + $this->assertEquals($expectedResponses, $responses); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.geminidataanalytics.v1beta.DataChatService/Chat', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getMessages(); + $this->assertProtobufEquals($messages, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function chatExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $status = new stdClass(); + $status->code = 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->setStreamingStatus($status); + $this->assertTrue($transport->isExhausted()); + // Mock request + $parent = 'parent-995424086'; + $messages = []; + $request = (new ChatRequest()) + ->setParent($parent) + ->setMessages($messages); + $serverStream = $gapicClient->chat($request); + $results = $serverStream->readAll(); + try { + iterator_to_array($results); + // If the close stream 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 createConversationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $kmsKey = 'kmsKey-591635343'; + $memoryPaused = true; + $expectedResponse = new Conversation(); + $expectedResponse->setName($name); + $expectedResponse->setKmsKey($kmsKey); + $expectedResponse->setMemoryPaused($memoryPaused); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $conversation = new Conversation(); + $conversationAgents = []; + $conversation->setAgents($conversationAgents); + $request = (new CreateConversationRequest()) + ->setParent($formattedParent) + ->setConversation($conversation); + $response = $gapicClient->createConversation($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.geminidataanalytics.v1beta.DataChatService/CreateConversation', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getConversation(); + $this->assertProtobufEquals($conversation, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createConversationExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $conversation = new Conversation(); + $conversationAgents = []; + $conversation->setAgents($conversationAgents); + $request = (new CreateConversationRequest()) + ->setParent($formattedParent) + ->setConversation($conversation); + try { + $gapicClient->createConversation($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 deleteConversationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $request = (new DeleteConversationRequest()) + ->setName($formattedName); + $gapicClient->deleteConversation($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.geminidataanalytics.v1beta.DataChatService/DeleteConversation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteConversationExceptionTest() + { + $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->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $request = (new DeleteConversationRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteConversation($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 getConversationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $kmsKey = 'kmsKey-591635343'; + $memoryPaused = true; + $expectedResponse = new Conversation(); + $expectedResponse->setName($name2); + $expectedResponse->setKmsKey($kmsKey); + $expectedResponse->setMemoryPaused($memoryPaused); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $request = (new GetConversationRequest()) + ->setName($formattedName); + $response = $gapicClient->getConversation($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.geminidataanalytics.v1beta.DataChatService/GetConversation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConversationExceptionTest() + { + $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->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $request = (new GetConversationRequest()) + ->setName($formattedName); + try { + $gapicClient->getConversation($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 listConversationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $conversationsElement = new Conversation(); + $conversations = [ + $conversationsElement, + ]; + $expectedResponse = new ListConversationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setConversations($conversations); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListConversationsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listConversations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getConversations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.geminidataanalytics.v1beta.DataChatService/ListConversations', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listConversationsExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListConversationsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listConversations($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 listMessagesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $messagesElement = new StorageMessage(); + $messages = [ + $messagesElement, + ]; + $expectedResponse = new ListMessagesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setMessages($messages); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $request = (new ListMessagesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listMessages($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getMessages()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.geminidataanalytics.v1beta.DataChatService/ListMessages', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMessagesExceptionTest() + { + $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->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $request = (new ListMessagesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listMessages($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 queryDataTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $generatedQuery = 'generatedQuery606760472'; + $intentExplanation = 'intentExplanation-1406510858'; + $naturalLanguageAnswer = 'naturalLanguageAnswer-645483921'; + $expectedResponse = new QueryDataResponse(); + $expectedResponse->setGeneratedQuery($generatedQuery); + $expectedResponse->setIntentExplanation($intentExplanation); + $expectedResponse->setNaturalLanguageAnswer($naturalLanguageAnswer); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $prompt = 'prompt-979805852'; + $context = new QueryDataContext(); + $contextDatasourceReferences = new DatasourceReferences(); + $context->setDatasourceReferences($contextDatasourceReferences); + $request = (new QueryDataRequest()) + ->setParent($formattedParent) + ->setPrompt($prompt) + ->setContext($context); + $response = $gapicClient->queryData($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.geminidataanalytics.v1beta.DataChatService/QueryData', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getPrompt(); + $this->assertProtobufEquals($prompt, $actualValue); + $actualValue = $actualRequestObject->getContext(); + $this->assertProtobufEquals($context, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryDataExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $prompt = 'prompt-979805852'; + $context = new QueryDataContext(); + $contextDatasourceReferences = new DatasourceReferences(); + $context->setDatasourceReferences($contextDatasourceReferences); + $request = (new QueryDataRequest()) + ->setParent($formattedParent) + ->setPrompt($prompt) + ->setContext($context); + try { + $gapicClient->queryData($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 getLocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $locationId = 'locationId552319461'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Location(); + $expectedResponse->setName($name2); + $expectedResponse->setLocationId($locationId); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + $request = new GetLocationRequest(); + $response = $gapicClient->getLocation($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.location.Locations/GetLocation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLocationExceptionTest() + { + $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); + $request = new GetLocationRequest(); + try { + $gapicClient->getLocation($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 listLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $locationsElement = new Location(); + $locations = [ + $locationsElement, + ]; + $expectedResponse = new ListLocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLocations($locations); + $transport->addResponse($expectedResponse); + $request = new ListLocationsRequest(); + $response = $gapicClient->listLocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsExceptionTest() + { + $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); + $request = new ListLocationsRequest(); + try { + $gapicClient->listLocations($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 createConversationAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $kmsKey = 'kmsKey-591635343'; + $memoryPaused = true; + $expectedResponse = new Conversation(); + $expectedResponse->setName($name); + $expectedResponse->setKmsKey($kmsKey); + $expectedResponse->setMemoryPaused($memoryPaused); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $conversation = new Conversation(); + $conversationAgents = []; + $conversation->setAgents($conversationAgents); + $request = (new CreateConversationRequest()) + ->setParent($formattedParent) + ->setConversation($conversation); + $response = $gapicClient->createConversationAsync($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.geminidataanalytics.v1beta.DataChatService/CreateConversation', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getConversation(); + $this->assertProtobufEquals($conversation, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} From 52f5972f48348e331631da6dee629aea93d7877f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 4 Jun 2026 00:24:44 +0000 Subject: [PATCH 2/2] =?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/V1Beta/Context.php | 3 +- .../metadata/V1Beta/Conversation.php | 2 +- .../metadata/V1Beta/DataAgent.php | 2 +- .../metadata/V1Beta/DataChatService.php | 2 +- .../metadata/V1Beta/Datasource.php | 2 +- .../DataAgentServiceClient/list_locations.php | 20 +- .../V1beta/DataChatServiceClient/chat.php | 2 +- .../DataChatServiceClient/list_locations.php | 20 +- .../src/V1beta/AlloyDbDatabaseReference.php | 42 + .../V1beta/BigQueryPropertyGraphReference.php | 0 .../src}/V1beta/BigQueryRoutine.php | 0 .../src}/V1beta/BigQueryRoutineReference.php | 0 .../src/V1beta/BigQueryTableReferences.php | 50 +- .../src/V1beta/ChatRequest.php | 160 ++- .../src}/V1beta/ChatRequest/Model.php | 0 .../src}/V1beta/Citation.php | 0 .../src}/V1beta/CitationAnchor.php | 0 .../TextMessageCitationAnchor.php | 0 .../src}/V1beta/CitationSource.php | 0 .../src/V1beta/ClarificationMessage.php | 29 +- .../src/V1beta/ClarificationQuestion.php | 104 +- .../ClarificationQuestionType.php | 11 +- .../ClarificationQuestion/SelectionMode.php | 11 +- .../V1beta/Client/DataAgentServiceClient.php | 44 +- .../V1beta/Client/DataChatServiceClient.php | 46 +- .../src/V1beta/CloudSqlDatabaseReference.php | 42 + GeminiDataAnalytics/src/V1beta/Context.php | 68 +- .../src/V1beta/Context/SchemaRelationship.php | 28 +- .../src/V1beta/Conversation.php | 104 ++ .../src/V1beta/ConversationOptions.php | 44 + .../src}/V1beta/ConversationOptions/Model.php | 0 GeminiDataAnalytics/src/V1beta/DataAgent.php | 56 + .../src/V1beta/DataAgentContext.php | 29 +- .../src/V1beta/DataMessage.php | 39 +- .../src}/V1beta/DatabaseTableReference.php | 0 GeminiDataAnalytics/src/V1beta/Datasource.php | 33 + .../src/V1beta/ExampleQuery.php | 46 + GeminiDataAnalytics/src/V1beta/Field.php | 8 - .../src/V1beta/ListConversationsRequest.php | 20 +- .../src/V1beta/ListMessagesRequest.php | 20 +- .../src/V1beta/LookerExploreReferences.php | 29 +- .../src/V1beta/LookerQuery.php | 104 ++ .../src/V1beta/LookerQuery/Filter.php | 36 +- .../src}/V1beta/LookerSettings.php | 0 .../src}/V1beta/MatchedQuery.php | 0 .../ParameterizedSecureViewParameters.php | 22 +- .../Parameter.php | 0 .../src}/V1beta/QueryParameter.php | 0 .../src}/V1beta/QueryParameterValues.php | 0 .../src/V1beta/SpannerDatabaseReference.php | 164 ++- .../src/V1beta/StudioDatasourceReferences.php | 14 +- .../src/V1beta/SystemMessage.php | 68 +- .../src/V1beta/TextMessage/TextType.php | 8 + .../src}/V1beta/UserFunctions.php | 0 .../data_agent_service_descriptor_config.php | 1 + .../data_chat_service_descriptor_config.php | 1 + .../Client/DataAgentServiceClientTest.php | 12 + .../Client/DataChatServiceClientTest.php | 12 + .../Cloud/Geminidataanalytics/V1/Context.php | 28 - .../Geminidataanalytics/V1/Conversation.php | 28 - .../Geminidataanalytics/V1/Credentials.php | 25 - .../Geminidataanalytics/V1/DataAgent.php | 28 - .../V1/DataAgentService.php | 36 - .../V1/DataAnalyticsAgent.php | 26 - .../V1/DataChatService.php | 35 - .../Geminidataanalytics/V1/Datasource.php | 26 - .../GeminiDataAnalytics/V1/AnalysisEvent.php | 372 ----- .../V1/AnalysisMessage.php | 108 -- .../V1/AnalysisOptions.php | 77 -- .../V1/AnalysisOptions/Python.php | 71 - .../GeminiDataAnalytics/V1/AnalysisQuery.php | 101 -- .../GeminiDataAnalytics/V1/BigQueryJob.php | 263 ---- .../V1/BigQueryPropertyGraphReference.php | 135 -- .../V1/BigQueryRoutine.php | 115 -- .../V1/BigQueryRoutineReference.php | 135 -- .../V1/BigQueryTableReference.php | 179 --- .../V1/BigQueryTableReferences.php | 69 - .../Cloud/GeminiDataAnalytics/V1/Blob.php | 101 -- .../GeminiDataAnalytics/V1/ChartMessage.php | 108 -- .../GeminiDataAnalytics/V1/ChartQuery.php | 105 -- .../GeminiDataAnalytics/V1/ChartResult.php | 125 -- .../GeminiDataAnalytics/V1/ChatRequest.php | 453 ------ .../V1/ChatRequest/Model.php | 58 - .../V1/ChatRequest/ThinkingMode.php | 61 - .../Cloud/GeminiDataAnalytics/V1/Citation.php | 101 -- .../GeminiDataAnalytics/V1/CitationAnchor.php | 75 - .../TextMessageCitationAnchor.php | 197 --- .../GeminiDataAnalytics/V1/CitationSource.php | 213 --- .../V1/ClientManagedResourceContext.php | 152 -- .../Cloud/GeminiDataAnalytics/V1/Context.php | 379 ----- .../V1/Context/SchemaRelationship.php | 219 --- .../SchemaRelationship/SchemaPaths.php | 109 -- .../V1/Context/SchemaRelationship/Source.php | 68 - .../GeminiDataAnalytics/V1/Conversation.php | 383 ------ .../V1/ConversationOptions.php | 165 --- .../V1/ConversationOptions/Model.php | 59 - .../V1/ConversationReference.php | 119 -- .../V1/CreateConversationRequest.php | 229 --- .../V1/CreateDataAgentRequest.php | 247 ---- .../GeminiDataAnalytics/V1/Credentials.php | 75 - .../GeminiDataAnalytics/V1/DataAgent.php | 515 ------- .../V1/DataAgentContext.php | 101 -- .../V1/DataAgentContext/ContextVersion.php | 65 - .../V1/DataAnalyticsAgent.php | 185 --- .../GeminiDataAnalytics/V1/DataFilter.php | 148 -- .../GeminiDataAnalytics/V1/DataFilterType.php | 56 - .../GeminiDataAnalytics/V1/DataMessage.php | 207 --- .../GeminiDataAnalytics/V1/DataQuery.php | 193 --- .../GeminiDataAnalytics/V1/DataResult.php | 227 --- .../GeminiDataAnalytics/V1/Datasource.php | 278 ---- .../V1/DatasourceOptions.php | 122 -- .../V1/DatasourceReferences.php | 141 -- .../V1/DeleteConversationRequest.php | 91 -- .../V1/DeleteDataAgentRequest.php | 155 --- .../GeminiDataAnalytics/V1/ErrorMessage.php | 78 -- .../GeminiDataAnalytics/V1/ExampleQueries.php | 79 -- .../GeminiDataAnalytics/V1/ExampleQuery.php | 167 --- .../Cloud/GeminiDataAnalytics/V1/Field.php | 397 ------ .../V1/GetConversationRequest.php | 91 -- .../V1/GetDataAgentRequest.php | 81 -- .../GeminiDataAnalytics/V1/GlossaryTerm.php | 151 -- .../V1/ListAccessibleDataAgentsRequest.php | 313 ----- .../CreatorFilter.php | 68 - .../V1/ListAccessibleDataAgentsResponse.php | 135 -- .../V1/ListConversationsRequest.php | 212 --- .../V1/ListConversationsResponse.php | 101 -- .../V1/ListDataAgentsRequest.php | 279 ---- .../V1/ListDataAgentsResponse.php | 135 -- .../V1/ListMessagesRequest.php | 221 --- .../V1/ListMessagesResponse.php | 101 -- .../V1/LookerExploreReference.php | 244 ---- .../V1/LookerExploreReferences.php | 67 - .../V1/LookerGoldenQuery.php | 116 -- .../GeminiDataAnalytics/V1/LookerQuery.php | 353 ----- .../V1/LookerQuery/Filter.php | 119 -- .../GeminiDataAnalytics/V1/LookerSettings.php | 87 -- .../GeminiDataAnalytics/V1/MatchedQuery.php | 113 -- .../Cloud/GeminiDataAnalytics/V1/Message.php | 194 --- .../V1/OAuthCredentials.php | 108 -- .../V1/OAuthCredentials/SecretBased.php | 102 -- .../V1/OAuthCredentials/TokenBased.php | 68 - .../V1/OperationMetadata.php | 307 ----- .../V1/PrivateLookerInstanceInfo.php | 102 -- .../GeminiDataAnalytics/V1/QueryParameter.php | 156 --- .../V1/QueryParameterValues.php | 103 -- .../Cloud/GeminiDataAnalytics/V1/Schema.php | 273 ---- .../GeminiDataAnalytics/V1/SchemaMessage.php | 108 -- .../GeminiDataAnalytics/V1/SchemaQuery.php | 67 - .../GeminiDataAnalytics/V1/SchemaResult.php | 67 - .../GeminiDataAnalytics/V1/StorageMessage.php | 111 -- .../V1/StudioDatasourceReference.php | 67 - .../V1/StudioDatasourceReferences.php | 67 - .../GeminiDataAnalytics/V1/SystemMessage.php | 371 ----- .../GeminiDataAnalytics/V1/TextMessage.php | 139 -- .../V1/TextMessage/TextType.php | 80 -- .../V1/UpdateDataAgentRequest.php | 240 ---- .../GeminiDataAnalytics/V1/UserFunctions.php | 67 - .../GeminiDataAnalytics/V1/UserMessage.php | 75 - .../create_data_agent.php | 85 -- .../create_data_agent_sync.php | 73 - .../delete_data_agent.php | 80 -- .../delete_data_agent_sync.php | 69 - .../DataAgentServiceClient/get_data_agent.php | 71 - .../DataAgentServiceClient/get_iam_policy.php | 71 - .../DataAgentServiceClient/get_location.php | 57 - .../list_accessible_data_agents.php | 77 -- .../list_data_agents.php | 76 - .../DataAgentServiceClient/list_locations.php | 77 -- .../DataAgentServiceClient/set_iam_policy.php | 73 - .../update_data_agent.php | 71 - .../update_data_agent_sync.php | 59 - .../samples/V1/DataChatServiceClient/chat.php | 79 -- .../create_conversation.php | 84 -- .../delete_conversation.php | 75 - .../get_conversation.php | 77 -- .../V1/DataChatServiceClient/get_location.php | 57 - .../list_conversations.php | 77 -- .../DataChatServiceClient/list_locations.php | 77 -- .../DataChatServiceClient/list_messages.php | 82 -- .../src/V1/Client/DataAgentServiceClient.php | 700 ---------- .../src/V1/Client/DataChatServiceClient.php | 527 ------- .../v1/src/V1/gapic_metadata.json | 132 -- .../data_agent_service_client_config.json | 99 -- .../data_agent_service_descriptor_config.php | 238 ---- .../data_agent_service_rest_client_config.php | 229 --- .../data_chat_service_client_config.json | 72 - .../data_chat_service_descriptor_config.php | 159 --- .../data_chat_service_rest_client_config.php | 168 --- .../V1/Client/DataAgentServiceClientTest.php | 1225 ----------------- .../V1/Client/DataChatServiceClientTest.php | 677 --------- .../V1Beta/AgentContext.php | 25 - .../Geminidataanalytics/V1Beta/Context.php | 28 - .../V1Beta/Conversation.php | 28 - .../V1Beta/Credentials.php | 25 - .../Geminidataanalytics/V1Beta/DataAgent.php | 28 - .../V1Beta/DataAgentService.php | 36 - .../V1Beta/DataAnalyticsAgent.php | 26 - .../V1Beta/DataChatService.php | 35 - .../Geminidataanalytics/V1Beta/Datasource.php | 28 - .../V1beta/AgentContextReference.php | 67 - .../V1beta/AlloyDbDatabaseReference.php | 279 ---- .../V1beta/AlloyDbReference.php | 126 -- .../V1beta/AnalysisEvent.php | 372 ----- .../V1beta/AnalysisMessage.php | 108 -- .../V1beta/AnalysisOptions.php | 77 -- .../V1beta/AnalysisOptions/Python.php | 71 - .../V1beta/AnalysisQuery.php | 101 -- .../V1beta/BigQueryJob.php | 263 ---- .../V1beta/BigQueryTableReference.php | 179 --- .../V1beta/BigQueryTableReferences.php | 115 -- .../Cloud/GeminiDataAnalytics/V1beta/Blob.php | 101 -- .../V1beta/ChartMessage.php | 108 -- .../V1beta/ChartOptions.php | 81 -- .../V1beta/ChartOptions/ImageOptions.php | 108 -- .../ChartOptions/ImageOptions/NoImage.php | 33 - .../ChartOptions/ImageOptions/SvgOptions.php | 33 - .../GeminiDataAnalytics/V1beta/ChartQuery.php | 105 -- .../V1beta/ChartResult.php | 125 -- .../V1beta/ChatRequest.php | 498 ------- .../V1beta/ChatRequest/ThinkingMode.php | 61 - .../V1beta/ClarificationMessage.php | 83 -- .../V1beta/ClarificationQuestion.php | 221 --- .../ClarificationQuestionType.php | 69 - .../ClarificationQuestion/SelectionMode.php | 66 - .../V1beta/ClientManagedResourceContext.php | 152 -- .../V1beta/CloudSqlDatabaseReference.php | 279 ---- .../CloudSqlDatabaseReference/Engine.php | 61 - .../V1beta/CloudSqlReference.php | 126 -- .../GeminiDataAnalytics/V1beta/Context.php | 379 ----- .../V1beta/Context/SchemaRelationship.php | 219 --- .../SchemaRelationship/SchemaPaths.php | 109 -- .../Context/SchemaRelationship/Source.php | 68 - .../V1beta/Conversation.php | 383 ------ .../V1beta/ConversationOptions.php | 209 --- .../V1beta/ConversationReference.php | 119 -- .../V1beta/CreateConversationRequest.php | 229 --- .../V1beta/CreateDataAgentRequest.php | 247 ---- .../V1beta/Credentials.php | 75 - .../GeminiDataAnalytics/V1beta/DataAgent.php | 515 ------- .../V1beta/DataAgentContext.php | 176 --- .../DataAgentContext/ContextVersion.php | 65 - .../V1beta/DataAnalyticsAgent.php | 185 --- .../GeminiDataAnalytics/V1beta/DataFilter.php | 148 -- .../V1beta/DataFilterType.php | 56 - .../V1beta/DataMessage.php | 252 ---- .../GeminiDataAnalytics/V1beta/DataQuery.php | 193 --- .../GeminiDataAnalytics/V1beta/DataResult.php | 227 --- .../GeminiDataAnalytics/V1beta/Datasource.php | 377 ----- .../V1beta/DatasourceOptions.php | 122 -- .../V1beta/DatasourceReferences.php | 249 ---- .../V1beta/DeleteConversationRequest.php | 91 -- .../V1beta/DeleteDataAgentRequest.php | 155 --- .../V1beta/ErrorMessage.php | 78 -- .../V1beta/ExampleQueries.php | 79 -- .../V1beta/ExampleQuery.php | 167 --- .../V1beta/ExecutedQueryResult.php | 227 --- .../V1beta/ExecutedQueryResult/Column.php | 101 -- .../V1beta/ExecutedQueryResult/Row.php | 67 - .../V1beta/ExecutedQueryResult/Value.php | 75 - .../GeminiDataAnalytics/V1beta/Field.php | 397 ------ .../V1beta/GenerationOptions.php | 185 --- .../V1beta/GetConversationRequest.php | 91 -- .../V1beta/GetDataAgentRequest.php | 81 -- .../V1beta/GlossaryTerm.php | 151 -- .../ListAccessibleDataAgentsRequest.php | 313 ----- .../CreatorFilter.php | 68 - .../ListAccessibleDataAgentsResponse.php | 135 -- .../V1beta/ListConversationsRequest.php | 212 --- .../V1beta/ListConversationsResponse.php | 101 -- .../V1beta/ListDataAgentsRequest.php | 279 ---- .../V1beta/ListDataAgentsResponse.php | 135 -- .../V1beta/ListMessagesRequest.php | 221 --- .../V1beta/ListMessagesResponse.php | 101 -- .../V1beta/LookerExploreReference.php | 244 ---- .../V1beta/LookerExploreReferences.php | 142 -- .../V1beta/LookerGoldenQuery.php | 116 -- .../V1beta/LookerQuery.php | 353 ----- .../V1beta/LookerQuery/Filter.php | 119 -- .../GeminiDataAnalytics/V1beta/Message.php | 194 --- .../V1beta/OAuthCredentials.php | 108 -- .../V1beta/OAuthCredentials/SecretBased.php | 102 -- .../V1beta/OAuthCredentials/TokenBased.php | 68 - .../V1beta/OperationMetadata.php | 307 ----- .../ParameterizedSecureViewParameters.php | 69 - .../V1beta/PrivateLookerInstanceInfo.php | 102 -- .../V1beta/QueryDataContext.php | 121 -- .../V1beta/QueryDataRequest.php | 201 --- .../V1beta/QueryDataResponse.php | 253 ---- .../GeminiDataAnalytics/V1beta/Schema.php | 273 ---- .../V1beta/SchemaMessage.php | 108 -- .../V1beta/SchemaQuery.php | 67 - .../V1beta/SchemaResult.php | 67 - .../V1beta/SpannerDatabaseReference.php | 333 ----- .../SpannerDatabaseReference/Engine.php | 61 - .../V1beta/SpannerReference.php | 126 -- .../V1beta/StorageMessage.php | 111 -- .../V1beta/StudioDatasourceReference.php | 67 - .../V1beta/StudioDatasourceReferences.php | 67 - .../V1beta/SystemMessage.php | 416 ------ .../V1beta/TextMessage.php | 139 -- .../V1beta/TextMessage/TextType.php | 80 -- .../V1beta/UpdateDataAgentRequest.php | 240 ---- .../V1beta/UserMessage.php | 75 - .../create_data_agent.php | 85 -- .../create_data_agent_sync.php | 73 - .../delete_data_agent.php | 80 -- .../delete_data_agent_sync.php | 69 - .../DataAgentServiceClient/get_data_agent.php | 71 - .../DataAgentServiceClient/get_iam_policy.php | 71 - .../DataAgentServiceClient/get_location.php | 57 - .../list_accessible_data_agents.php | 77 -- .../list_data_agents.php | 76 - .../DataAgentServiceClient/list_locations.php | 77 -- .../DataAgentServiceClient/set_iam_policy.php | 73 - .../update_data_agent.php | 71 - .../update_data_agent_sync.php | 59 - .../V1beta/DataChatServiceClient/chat.php | 79 -- .../create_conversation.php | 84 -- .../delete_conversation.php | 75 - .../get_conversation.php | 77 -- .../DataChatServiceClient/get_location.php | 57 - .../list_conversations.php | 77 -- .../DataChatServiceClient/list_locations.php | 77 -- .../DataChatServiceClient/list_messages.php | 82 -- .../DataChatServiceClient/query_data.php | 82 -- .../V1beta/Client/DataAgentServiceClient.php | 744 ---------- .../V1beta/Client/DataChatServiceClient.php | 608 -------- .../v1beta/src/V1beta/gapic_metadata.json | 137 -- .../data_agent_service_client_config.json | 99 -- .../data_agent_service_descriptor_config.php | 238 ---- .../data_agent_service_rest_client_config.php | 229 --- .../data_chat_service_client_config.json | 77 -- .../data_chat_service_descriptor_config.php | 172 --- .../data_chat_service_rest_client_config.php | 180 --- .../Client/DataAgentServiceClientTest.php | 1225 ----------------- .../Client/DataChatServiceClientTest.php | 765 ---------- 336 files changed, 1346 insertions(+), 43978 deletions(-) rename {owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics => GeminiDataAnalytics/src}/V1beta/BigQueryPropertyGraphReference.php (100%) rename {owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics => GeminiDataAnalytics/src}/V1beta/BigQueryRoutine.php (100%) rename {owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics => GeminiDataAnalytics/src}/V1beta/BigQueryRoutineReference.php (100%) rename {owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics => GeminiDataAnalytics/src}/V1beta/ChatRequest/Model.php (100%) rename {owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics => GeminiDataAnalytics/src}/V1beta/Citation.php (100%) rename {owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics => GeminiDataAnalytics/src}/V1beta/CitationAnchor.php (100%) rename {owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics => GeminiDataAnalytics/src}/V1beta/CitationAnchor/TextMessageCitationAnchor.php (100%) rename {owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics => GeminiDataAnalytics/src}/V1beta/CitationSource.php (100%) rename {owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics => GeminiDataAnalytics/src}/V1beta/ConversationOptions/Model.php (100%) rename {owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics => GeminiDataAnalytics/src}/V1beta/DatabaseTableReference.php (100%) rename {owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics => GeminiDataAnalytics/src}/V1beta/LookerSettings.php (100%) rename {owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics => GeminiDataAnalytics/src}/V1beta/MatchedQuery.php (100%) rename {owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics => GeminiDataAnalytics/src}/V1beta/ParameterizedSecureViewParameters/Parameter.php (100%) rename {owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics => GeminiDataAnalytics/src}/V1beta/QueryParameter.php (100%) rename {owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics => GeminiDataAnalytics/src}/V1beta/QueryParameterValues.php (100%) rename {owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics => GeminiDataAnalytics/src}/V1beta/UserFunctions.php (100%) delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Context.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Conversation.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Credentials.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataAgent.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataAgentService.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataAnalyticsAgent.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataChatService.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Datasource.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisEvent.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisOptions.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisOptions/Python.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisQuery.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryJob.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryPropertyGraphReference.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryRoutine.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryRoutineReference.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryTableReference.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryTableReferences.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Blob.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartQuery.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartResult.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest/Model.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest/ThinkingMode.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Citation.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationAnchor.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationAnchor/TextMessageCitationAnchor.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationSource.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ClientManagedResourceContext.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship/SchemaPaths.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship/Source.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Conversation.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationOptions.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationOptions/Model.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationReference.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CreateConversationRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CreateDataAgentRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Credentials.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgent.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgentContext.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgentContext/ContextVersion.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAnalyticsAgent.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataFilter.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataFilterType.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataQuery.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataResult.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Datasource.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DatasourceOptions.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DatasourceReferences.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DeleteConversationRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DeleteDataAgentRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ErrorMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ExampleQueries.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ExampleQuery.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Field.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GetConversationRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GetDataAgentRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GlossaryTerm.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsRequest/CreatorFilter.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsResponse.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListConversationsRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListConversationsResponse.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListDataAgentsRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListDataAgentsResponse.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListMessagesRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListMessagesResponse.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerExploreReference.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerExploreReferences.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerGoldenQuery.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerQuery.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerQuery/Filter.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerSettings.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/MatchedQuery.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Message.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials/SecretBased.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials/TokenBased.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OperationMetadata.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/PrivateLookerInstanceInfo.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/QueryParameter.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/QueryParameterValues.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Schema.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaQuery.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaResult.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StorageMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StudioDatasourceReference.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StudioDatasourceReferences.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SystemMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/TextMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/TextMessage/TextType.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UpdateDataAgentRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UserFunctions.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UserMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/create_data_agent.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/create_data_agent_sync.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/delete_data_agent.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/delete_data_agent_sync.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_data_agent.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_iam_policy.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_location.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_accessible_data_agents.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_data_agents.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_locations.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/set_iam_policy.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/update_data_agent.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/update_data_agent_sync.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/chat.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/create_conversation.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/delete_conversation.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/get_conversation.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/get_location.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_conversations.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_locations.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_messages.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/src/V1/Client/DataAgentServiceClient.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/src/V1/Client/DataChatServiceClient.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_client_config.json delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_descriptor_config.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_rest_client_config.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_client_config.json delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_descriptor_config.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_rest_client_config.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/tests/Unit/V1/Client/DataAgentServiceClientTest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1/tests/Unit/V1/Client/DataChatServiceClientTest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/AgentContext.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Context.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Conversation.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Credentials.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAgent.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAgentService.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAnalyticsAgent.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataChatService.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Datasource.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AgentContextReference.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AlloyDbDatabaseReference.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AlloyDbReference.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisEvent.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisOptions.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisOptions/Python.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisQuery.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryJob.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryTableReference.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryTableReferences.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Blob.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions/NoImage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions/SvgOptions.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartQuery.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartResult.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest/ThinkingMode.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion/ClarificationQuestionType.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion/SelectionMode.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClientManagedResourceContext.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlDatabaseReference.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlDatabaseReference/Engine.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlReference.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship/SchemaPaths.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship/Source.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Conversation.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationOptions.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationReference.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CreateConversationRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CreateDataAgentRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Credentials.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgent.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgentContext.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgentContext/ContextVersion.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAnalyticsAgent.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataFilter.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataFilterType.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataQuery.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataResult.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Datasource.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatasourceOptions.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatasourceReferences.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DeleteConversationRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DeleteDataAgentRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ErrorMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExampleQueries.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExampleQuery.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Column.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Row.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Value.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Field.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GenerationOptions.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GetConversationRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GetDataAgentRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GlossaryTerm.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsRequest/CreatorFilter.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsResponse.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListConversationsRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListConversationsResponse.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListDataAgentsRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListDataAgentsResponse.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListMessagesRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListMessagesResponse.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerExploreReference.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerExploreReferences.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerGoldenQuery.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerQuery.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerQuery/Filter.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Message.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials/SecretBased.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials/TokenBased.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OperationMetadata.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ParameterizedSecureViewParameters.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/PrivateLookerInstanceInfo.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataContext.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataResponse.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Schema.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaQuery.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaResult.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerDatabaseReference.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerDatabaseReference/Engine.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerReference.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StorageMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StudioDatasourceReference.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StudioDatasourceReferences.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SystemMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/TextMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/TextMessage/TextType.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UpdateDataAgentRequest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UserMessage.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/create_data_agent.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/create_data_agent_sync.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/delete_data_agent.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/delete_data_agent_sync.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_data_agent.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_iam_policy.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_location.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_accessible_data_agents.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_data_agents.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_locations.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/set_iam_policy.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/update_data_agent.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/update_data_agent_sync.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/chat.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/create_conversation.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/delete_conversation.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/get_conversation.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/get_location.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_conversations.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_locations.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_messages.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/query_data.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/Client/DataAgentServiceClient.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/Client/DataChatServiceClient.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/gapic_metadata.json delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_client_config.json delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_descriptor_config.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_rest_client_config.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_client_config.json delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_descriptor_config.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_rest_client_config.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/tests/Unit/V1beta/Client/DataAgentServiceClientTest.php delete mode 100644 owl-bot-staging/GeminiDataAnalytics/v1beta/tests/Unit/V1beta/Client/DataChatServiceClientTest.php diff --git a/GeminiDataAnalytics/metadata/V1Beta/Context.php b/GeminiDataAnalytics/metadata/V1Beta/Context.php index 5a4e8440fee1..bb24924e3a53 100644 --- a/GeminiDataAnalytics/metadata/V1Beta/Context.php +++ b/GeminiDataAnalytics/metadata/V1Beta/Context.php @@ -15,10 +15,11 @@ public static function initOnce() { return; } \GPBMetadata\Google\Api\FieldBehavior::initOnce(); + \GPBMetadata\Google\Api\Resource::initOnce(); \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); \GPBMetadata\Google\Protobuf\Wrappers::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xD5\x17\x0A5google/cloud/geminidataanalytics/v1beta/context.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A8google/cloud/geminidataanalytics/v1beta/datasource.proto\x1A\x1Egoogle/protobuf/wrappers.proto\"\xD9\x08\x0A\x07Context\x12\x1F\x0A\x12system_instruction\x18\x01 \x01(\x09B\x03\xE0A\x01\x12a\x0A\x15datasource_references\x18\x07 \x01(\x0B2=.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesB\x03\xE0A\x02\x12R\x0A\x07options\x18\x03 \x01(\x0B2<.google.cloud.geminidataanalytics.v1beta.ConversationOptionsB\x03\xE0A\x01\x12S\x0A\x0Fexample_queries\x18\x05 \x03(\x0B25.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xE0A\x01\x12^\x0A\x15looker_golden_queries\x18\x0B \x03(\x0B2:.google.cloud.geminidataanalytics.v1beta.LookerGoldenQueryB\x03\xE0A\x01\x12R\x0A\x0Eglossary_terms\x18\x08 \x03(\x0B25.google.cloud.geminidataanalytics.v1beta.GlossaryTermB\x03\xE0A\x01\x12f\x0A\x14schema_relationships\x18\x09 \x03(\x0B2C.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipB\x03\xE0A\x01\x1A\x84\x04\x0A\x12SchemaRelationship\x12j\x0A\x11left_schema_paths\x18\x01 \x01(\x0B2O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\x12k\x0A\x12right_schema_paths\x18\x02 \x01(\x0B2O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\x12[\x0A\x07sources\x18\x03 \x03(\x0E2J.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source\x12\x18\x0A\x10confidence_score\x18\x04 \x01(\x02\x1A/\x0A\x0BSchemaPaths\x12\x11\x0A\x09table_fqn\x18\x01 \x01(\x09\x12\x0D\x0A\x05paths\x18\x02 \x03(\x09\"m\x0A\x06Source\x12\x16\x0A\x12SOURCE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14BIGQUERY_JOB_HISTORY\x10\x01\x12\x11\x0A\x0DLLM_SUGGESTED\x10\x02\x12\x1E\x0A\x1ABIGQUERY_TABLE_CONSTRAINTS\x10\x03\"Y\x0A\x0CExampleQuery\x12\x18\x0A\x09sql_query\x18e \x01(\x09B\x03\xE0A\x01H\x00\x12&\x0A\x19natural_language_question\x18\x01 \x01(\x09B\x03\xE0A\x01B\x07\x0A\x05query\"\x8D\x01\x0A\x11LookerGoldenQuery\x12'\x0A\x1Anatural_language_questions\x18\x04 \x03(\x09B\x03\xE0A\x01\x12O\x0A\x0Clooker_query\x18\x05 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x03\xE0A\x01\"\x88\x02\x0A\x0BLookerQuery\x12\x12\x0A\x05model\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x14\x0A\x07explore\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06fields\x18\x03 \x03(\x09B\x03\xE0A\x01\x12Q\x0A\x07filters\x18\x04 \x03(\x0B2;.google.cloud.geminidataanalytics.v1beta.LookerQuery.FilterB\x03\xE0A\x01\x12\x12\x0A\x05sorts\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\x17\x0A\x05limit\x18\x06 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01\x1A0\x0A\x06Filter\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x12\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x02B\x08\x0A\x06_limit\"X\x0A\x0CGlossaryTerm\x12\x19\x0A\x0Cdisplay_name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06labels\x18\x03 \x03(\x09B\x03\xE0A\x01\"\x86\x02\x0A\x13ConversationOptions\x12I\x0A\x05chart\x18\x01 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ChartOptionsB\x03\xE0A\x01\x12O\x0A\x08analysis\x18\x02 \x01(\x0B28.google.cloud.geminidataanalytics.v1beta.AnalysisOptionsB\x03\xE0A\x01\x12S\x0A\x0Adatasource\x18\x03 \x01(\x0B2:.google.cloud.geminidataanalytics.v1beta.DatasourceOptionsB\x03\xE0A\x01\"Y\x0A\x11DatasourceOptions\x12D\x0A\x1Abig_query_max_billed_bytes\x18\x01 \x01(\x0B2\x1B.google.protobuf.Int64ValueB\x03\xE0A\x01\"\xD6\x02\x0A\x0CChartOptions\x12V\x0A\x05image\x18\x01 \x01(\x0B2B.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptionsB\x03\xE0A\x01\x1A\xED\x01\x0A\x0CImageOptions\x12^\x0A\x08no_image\x18\x01 \x01(\x0B2J.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImageH\x00\x12\\\x0A\x03svg\x18\x02 \x01(\x0B2M.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.SvgOptionsH\x00\x1A\x09\x0A\x07NoImage\x1A\x0C\x0A\x0ASvgOptionsB\x06\x0A\x04kind\"\x87\x01\x0A\x0FAnalysisOptions\x12T\x0A\x06python\x18\x01 \x01(\x0B2?.google.cloud.geminidataanalytics.v1beta.AnalysisOptions.PythonB\x03\xE0A\x01\x1A\x1E\x0A\x06Python\x12\x14\x0A\x07enabled\x18\x01 \x01(\x08B\x03\xE0A\x01B\x9D\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x0CContextProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" + "\x0A\x8D&\x0A5google/cloud/geminidataanalytics/v1beta/context.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A\x19google/api/resource.proto\x1A8google/cloud/geminidataanalytics/v1beta/datasource.proto\x1A\x1Egoogle/protobuf/wrappers.proto\"\xB8\x09\x0A\x07Context\x12\x1F\x0A\x12system_instruction\x18\x01 \x01(\x09B\x03\xE0A\x01\x12a\x0A\x15datasource_references\x18\x07 \x01(\x0B2=.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesB\x03\xE0A\x02\x12R\x0A\x07options\x18\x03 \x01(\x0B2<.google.cloud.geminidataanalytics.v1beta.ConversationOptionsB\x03\xE0A\x01\x12S\x0A\x0Fexample_queries\x18\x05 \x03(\x0B25.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xE0A\x01\x12^\x0A\x15looker_golden_queries\x18\x0B \x03(\x0B2:.google.cloud.geminidataanalytics.v1beta.LookerGoldenQueryB\x03\xE0A\x01\x12R\x0A\x0Eglossary_terms\x18\x08 \x03(\x0B25.google.cloud.geminidataanalytics.v1beta.GlossaryTermB\x03\xE0A\x01\x12f\x0A\x14schema_relationships\x18\x09 \x03(\x0B2C.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipB\x03\xE0A\x01\x12S\x0A\x0Euser_functions\x18\x0A \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.UserFunctionsB\x03\xE0A\x01\x1A\x8E\x04\x0A\x12SchemaRelationship\x12j\x0A\x11left_schema_paths\x18\x01 \x01(\x0B2O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\x12k\x0A\x12right_schema_paths\x18\x02 \x01(\x0B2O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\x12`\x0A\x07sources\x18\x03 \x03(\x0E2J.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SourceB\x03\xE0A\x01\x12\x1D\x0A\x10confidence_score\x18\x04 \x01(\x02B\x03\xE0A\x01\x1A/\x0A\x0BSchemaPaths\x12\x11\x0A\x09table_fqn\x18\x01 \x01(\x09\x12\x0D\x0A\x05paths\x18\x02 \x03(\x09\"m\x0A\x06Source\x12\x16\x0A\x12SOURCE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14BIGQUERY_JOB_HISTORY\x10\x01\x12\x11\x0A\x0DLLM_SUGGESTED\x10\x02\x12\x1E\x0A\x1ABIGQUERY_TABLE_CONSTRAINTS\x10\x03\"^\x0A\x0DUserFunctions\x12M\x0A\x0Bbq_routines\x18\x01 \x03(\x0B28.google.cloud.geminidataanalytics.v1beta.BigQueryRoutine\"\x84\x01\x0A\x0FBigQueryRoutine\x12\\\x0A\x11routine_reference\x18\x01 \x01(\x0B2A.google.cloud.geminidataanalytics.v1beta.BigQueryRoutineReference\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\"V\x0A\x18BigQueryRoutineReference\x12\x12\x0A\x0Aproject_id\x18\x01 \x01(\x09\x12\x12\x0A\x0Adataset_id\x18\x02 \x01(\x09\x12\x12\x0A\x0Aroutine_id\x18\x03 \x01(\x09\"\xAB\x01\x0A\x0CExampleQuery\x12\x18\x0A\x09sql_query\x18e \x01(\x09B\x03\xE0A\x01H\x00\x12&\x0A\x19natural_language_question\x18\x01 \x01(\x09B\x03\xE0A\x01\x12P\x0A\x0Aparameters\x18\x03 \x03(\x0B27.google.cloud.geminidataanalytics.v1beta.QueryParameterB\x03\xE0A\x01B\x07\x0A\x05query\"U\x0A\x0EQueryParameter\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09data_type\x18\x03 \x01(\x09B\x03\xE0A\x02\"\xBB\x01\x0A\x0CMatchedQuery\x12L\x0A\x0Dexample_query\x18\x01 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ExampleQuery\x12]\x0A\x16query_parameter_values\x18\x02 \x03(\x0B2=.google.cloud.geminidataanalytics.v1beta.QueryParameterValues\"=\x0A\x14QueryParameterValues\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x12\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x8D\x01\x0A\x11LookerGoldenQuery\x12'\x0A\x1Anatural_language_questions\x18\x04 \x03(\x09B\x03\xE0A\x01\x12O\x0A\x0Clooker_query\x18\x05 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x03\xE0A\x01\"\xEB\x02\x0A\x0BLookerQuery\x12\x12\x0A\x05model\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x14\x0A\x07explore\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06fields\x18\x03 \x03(\x09B\x03\xE0A\x01\x12Q\x0A\x07filters\x18\x04 \x03(\x0B2;.google.cloud.geminidataanalytics.v1beta.LookerQuery.FilterB\x03\xE0A\x01\x12\x12\x0A\x05sorts\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\x17\x0A\x05limit\x18\x06 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01\x12\x1A\x0A\x08query_id\x18\x0A \x01(\x09B\x03\xE0A\x01H\x01\x88\x01\x01\x12\x1B\x0A\x09client_id\x18\x0B \x01(\x09B\x03\xE0A\x01H\x02\x88\x01\x01\x1A?\x0A\x06Filter\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B\x08\x0A\x06_valueB\x08\x0A\x06_limitB\x0B\x0A\x09_query_idB\x0C\x0A\x0A_client_id\"X\x0A\x0CGlossaryTerm\x12\x19\x0A\x0Cdisplay_name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06labels\x18\x03 \x03(\x09B\x03\xE0A\x01\"\xA2\x03\x0A\x13ConversationOptions\x12I\x0A\x05chart\x18\x01 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ChartOptionsB\x03\xE0A\x01\x12O\x0A\x08analysis\x18\x02 \x01(\x0B28.google.cloud.geminidataanalytics.v1beta.AnalysisOptionsB\x03\xE0A\x01\x12S\x0A\x0Adatasource\x18\x03 \x01(\x0B2:.google.cloud.geminidataanalytics.v1beta.DatasourceOptionsB\x03\xE0A\x01\x12[\x0A\x05model\x18\x06 \x01(\x0E2B.google.cloud.geminidataanalytics.v1beta.ConversationOptions.ModelB\x03\xE0A\x01H\x00\x88\x01\x01\"3\x0A\x05Model\x12\x15\x0A\x11MODEL_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FLATEST_GA_MODEL\x10\x01B\x08\x0A\x06_model\"Y\x0A\x11DatasourceOptions\x12D\x0A\x1Abig_query_max_billed_bytes\x18\x01 \x01(\x0B2\x1B.google.protobuf.Int64ValueB\x03\xE0A\x01\"\xD6\x02\x0A\x0CChartOptions\x12V\x0A\x05image\x18\x01 \x01(\x0B2B.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptionsB\x03\xE0A\x01\x1A\xED\x01\x0A\x0CImageOptions\x12^\x0A\x08no_image\x18\x01 \x01(\x0B2J.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImageH\x00\x12\\\x0A\x03svg\x18\x02 \x01(\x0B2M.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.SvgOptionsH\x00\x1A\x09\x0A\x07NoImage\x1A\x0C\x0A\x0ASvgOptionsB\x06\x0A\x04kind\"\x87\x01\x0A\x0FAnalysisOptions\x12T\x0A\x06python\x18\x01 \x01(\x0B2?.google.cloud.geminidataanalytics.v1beta.AnalysisOptions.PythonB\x03\xE0A\x01\x1A\x1E\x0A\x06Python\x12\x14\x0A\x07enabled\x18\x01 \x01(\x08B\x03\xE0A\x01\"\xA8\x01\x0A\x08Citation\x12M\x0A\x07sources\x18\x01 \x03(\x0B27.google.cloud.geminidataanalytics.v1beta.CitationSourceB\x03\xE0A\x03\x12M\x0A\x07anchors\x18\x02 \x03(\x0B27.google.cloud.geminidataanalytics.v1beta.CitationAnchorB\x03\xE0A\x03\"\x82\x02\x0A\x0ECitationSource\x12\x12\x0A\x03uri\x18\x03 \x01(\x09B\x03\xE0A\x03H\x00\x12S\x0A\x0Dexample_query\x18\x04 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xE0A\x03H\x00\x12S\x0A\x0Dglossary_term\x18\x05 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.GlossaryTermB\x03\xE0A\x03H\x00\x12\x0F\x0A\x02id\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05title\x18\x02 \x01(\x09B\x03\xE0A\x03B\x0D\x0A\x0Bsource_type\"\xA6\x02\x0A\x0ECitationAnchor\x12u\x0A\x13text_message_anchor\x18\x01 \x01(\x0B2Q.google.cloud.geminidataanalytics.v1beta.CitationAnchor.TextMessageCitationAnchorB\x03\xE0A\x03H\x00\x1A\x8D\x01\x0A\x19TextMessageCitationAnchor\x12\x17\x0A\x0Apart_index\x18\x01 \x01(\x05B\x03\xE0A\x03\x12\x1F\x0A\x12start_offset_bytes\x18\x02 \x01(\x05B\x03\xE0A\x03\x12\x1D\x0A\x10end_offset_bytes\x18\x03 \x01(\x05B\x03\xE0A\x03\x12\x17\x0A\x0Asource_ids\x18\x04 \x03(\x09B\x03\xE0A\x03B\x0D\x0A\x0Banchor_typeB\x9D\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x0CContextProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" , true); static::$is_initialized = true; diff --git a/GeminiDataAnalytics/metadata/V1Beta/Conversation.php b/GeminiDataAnalytics/metadata/V1Beta/Conversation.php index df5928058e7c..8acda687d576 100644 --- a/GeminiDataAnalytics/metadata/V1Beta/Conversation.php +++ b/GeminiDataAnalytics/metadata/V1Beta/Conversation.php @@ -19,7 +19,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xA6\x0D\x0A:google/cloud/geminidataanalytics/v1beta/conversation.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xCA\x03\x0A\x0CConversation\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x01\xE0A\x08\x12\x13\x0A\x06agents\x18\x02 \x03(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x127\x0A\x0Elast_used_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12V\x0A\x06labels\x18\x09 \x03(\x0B2A.google.cloud.geminidataanalytics.v1beta.Conversation.LabelsEntryB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x98\x01\xEAA\x94\x01\x0A/geminidataanalytics.googleapis.com/Conversation\x12Dprojects/{project}/locations/{location}/conversations/{conversation}*\x0Dconversations2\x0Cconversation\"\xF5\x01\x0A\x19CreateConversationRequest\x12G\x0A\x06parent\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x12/geminidataanalytics.googleapis.com/Conversation\x12\x1C\x0A\x0Fconversation_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12P\x0A\x0Cconversation\x18\x03 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ConversationB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"_\x0A\x16GetConversationRequest\x12E\x0A\x04name\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/Conversation\"\xA9\x01\x0A\x18ListConversationsRequest\x12G\x0A\x06parent\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x12/geminidataanalytics.googleapis.com/Conversation\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\"\x82\x01\x0A\x19ListConversationsResponse\x12L\x0A\x0Dconversations\x18\x01 \x03(\x0B25.google.cloud.geminidataanalytics.v1beta.Conversation\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"b\x0A\x19DeleteConversationRequest\x12E\x0A\x04name\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/ConversationB\xA2\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x11ConversationProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" + "\x0A\xB9\x0F\x0A:google/cloud/geminidataanalytics/v1beta/conversation.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xCA\x04\x0A\x0CConversation\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x01\xE0A\x08\x12\x13\x0A\x06agents\x18\x02 \x03(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x127\x0A\x0Elast_used_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12V\x0A\x06labels\x18\x09 \x03(\x0B2A.google.cloud.geminidataanalytics.v1beta.Conversation.LabelsEntryB\x03\xE0A\x01\x12?\x0A\x07kms_key\x18\x0A \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKeyH\x00\x88\x01\x01\x12\x1F\x0A\x0Dmemory_paused\x18\x0B \x01(\x08B\x03\xE0A\x01H\x01\x88\x01\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x98\x01\xEAA\x94\x01\x0A/geminidataanalytics.googleapis.com/Conversation\x12Dprojects/{project}/locations/{location}/conversations/{conversation}*\x0Dconversations2\x0CconversationB\x0A\x0A\x08_kms_keyB\x10\x0A\x0E_memory_paused\"\xF5\x01\x0A\x19CreateConversationRequest\x12G\x0A\x06parent\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x12/geminidataanalytics.googleapis.com/Conversation\x12\x1C\x0A\x0Fconversation_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12P\x0A\x0Cconversation\x18\x03 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ConversationB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"_\x0A\x16GetConversationRequest\x12E\x0A\x04name\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/Conversation\"\xA9\x01\x0A\x18ListConversationsRequest\x12G\x0A\x06parent\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x12/geminidataanalytics.googleapis.com/Conversation\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\"\x82\x01\x0A\x19ListConversationsResponse\x12L\x0A\x0Dconversations\x18\x01 \x03(\x0B25.google.cloud.geminidataanalytics.v1beta.Conversation\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"b\x0A\x19DeleteConversationRequest\x12E\x0A\x04name\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/ConversationB\xB5\x03\x0A+com.google.cloud.geminidataanalytics.v1betaB\x11ConversationProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1beta\xEAA\x8F\x01\x0A!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}*\x0AcryptoKeys2\x09cryptoKeyb\x06proto3" , true); static::$is_initialized = true; diff --git a/GeminiDataAnalytics/metadata/V1Beta/DataAgent.php b/GeminiDataAnalytics/metadata/V1Beta/DataAgent.php index 1957aaf49927..34d1024dd55e 100644 --- a/GeminiDataAnalytics/metadata/V1Beta/DataAgent.php +++ b/GeminiDataAnalytics/metadata/V1Beta/DataAgent.php @@ -19,7 +19,7 @@ public static function initOnce() { \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAnalyticsAgent::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xB3\x09\x0A8google/cloud/geminidataanalytics/v1beta/data_agent.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A\x19google/api/resource.proto\x1ABgoogle/cloud/geminidataanalytics/v1beta/data_analytics_agent.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xA3\x05\x0A\x09DataAgent\x12[\x0A\x14data_analytics_agent\x18e \x01(\x0B2;.google.cloud.geminidataanalytics.v1beta.DataAnalyticsAgentH\x00\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x01\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x12S\x0A\x06labels\x18\x05 \x03(\x0B2>.google.cloud.geminidataanalytics.v1beta.DataAgent.LabelsEntryB\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bdelete_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x123\x0A\x0Apurge_time\x18\x0D \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x8A\x01\xEAA\x86\x01\x0A,geminidataanalytics.googleapis.com/DataAgent\x12?projects/{project}/locations/{location}/dataAgents/{data_agent}*\x0AdataAgents2\x09dataAgentB\x06\x0A\x04typeB\x9F\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x0EDataAgentProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" + "\x0A\x80\x0A\x0A8google/cloud/geminidataanalytics/v1beta/data_agent.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A\x19google/api/resource.proto\x1ABgoogle/cloud/geminidataanalytics/v1beta/data_analytics_agent.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xF0\x05\x0A\x09DataAgent\x12[\x0A\x14data_analytics_agent\x18e \x01(\x0B2;.google.cloud.geminidataanalytics.v1beta.DataAnalyticsAgentH\x00\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x01\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x12S\x0A\x06labels\x18\x05 \x03(\x0B2>.google.cloud.geminidataanalytics.v1beta.DataAgent.LabelsEntryB\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bdelete_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x123\x0A\x0Apurge_time\x18\x0D \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12?\x0A\x07kms_key\x18\x0E \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKeyH\x01\x88\x01\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x8A\x01\xEAA\x86\x01\x0A,geminidataanalytics.googleapis.com/DataAgent\x12?projects/{project}/locations/{location}/dataAgents/{data_agent}*\x0AdataAgents2\x09dataAgentB\x06\x0A\x04typeB\x0A\x0A\x08_kms_keyB\x9F\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x0EDataAgentProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" , true); static::$is_initialized = true; diff --git a/GeminiDataAnalytics/metadata/V1Beta/DataChatService.php b/GeminiDataAnalytics/metadata/V1Beta/DataChatService.php index 7b6179445ba7..c7b4deae7a9b 100644 --- a/GeminiDataAnalytics/metadata/V1Beta/DataChatService.php +++ b/GeminiDataAnalytics/metadata/V1Beta/DataChatService.php @@ -26,7 +26,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Struct::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\x9CO\x0A?google/cloud/geminidataanalytics/v1beta/data_chat_service.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A5google/cloud/geminidataanalytics/v1beta/context.proto\x1A:google/cloud/geminidataanalytics/v1beta/conversation.proto\x1A9google/cloud/geminidataanalytics/v1beta/credentials.proto\x1A8google/cloud/geminidataanalytics/v1beta/datasource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x90\x02\x0A\x10QueryDataRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x13\x0A\x06prompt\x18\x02 \x01(\x09B\x03\xE0A\x02\x12O\x0A\x07context\x18\x03 \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.QueryDataContextB\x03\xE0A\x02\x12[\x0A\x12generation_options\x18\x04 \x01(\x0B2:.google.cloud.geminidataanalytics.v1beta.GenerationOptionsB\x03\xE0A\x01\"\xB8\x01\x0A\x11GenerationOptions\x12\"\x0A\x15generate_query_result\x18\x01 \x01(\x08B\x03\xE0A\x01\x12-\x0A generate_natural_language_answer\x18\x02 \x01(\x08B\x03\xE0A\x01\x12!\x0A\x14generate_explanation\x18\x03 \x01(\x08B\x03\xE0A\x01\x12-\x0A generate_disambiguation_question\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xF4\x01\x0A\x10QueryDataContext\x12a\x0A\x15datasource_references\x18\x01 \x01(\x0B2=.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesB\x03\xE0A\x02\x12}\x0A\$parameterized_secure_view_parameters\x18\x02 \x01(\x0B2J.google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParametersB\x03\xE0A\x01\"\xCB\x01\x0A!ParameterizedSecureViewParameters\x12s\x0A\x0Aparameters\x18\x01 \x03(\x0B2Z.google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters.ParametersEntryB\x03\xE0A\x01\x1A1\x0A\x0FParametersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xDE\x01\x0A\x11QueryDataResponse\x12\x17\x0A\x0Fgenerated_query\x18\x01 \x01(\x09\x12\x1A\x0A\x12intent_explanation\x18\x02 \x01(\x09\x12R\x0A\x0Cquery_result\x18\x03 \x01(\x0B2<.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult\x12\x1F\x0A\x17natural_language_answer\x18\x04 \x01(\x09\x12\x1F\x0A\x17disambiguation_question\x18\x05 \x03(\x09\"\xA4\x03\x0A\x13ExecutedQueryResult\x12T\x0A\x07columns\x18\x01 \x03(\x0B2C.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column\x12N\x0A\x04rows\x18\x02 \x03(\x0B2@.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row\x12\x17\x0A\x0Ftotal_row_count\x18\x03 \x01(\x03\x12\x16\x0A\x0Epartial_result\x18\x04 \x01(\x08\x12\x1D\x0A\x15query_execution_error\x18\x05 \x01(\x09\x1A\$\x0A\x06Column\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0C\x0A\x04type\x18\x02 \x01(\x09\x1A\x16\x0A\x05Value\x12\x0D\x0A\x05value\x18\x01 \x01(\x09\x1AY\x0A\x03Row\x12R\x0A\x06values\x18\x01 \x03(\x0B2B.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value\"\xA4\x01\x0A\x13ListMessagesRequest\x12G\x0A\x06parent\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/Conversation\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"z\x0A\x14ListMessagesResponse\x12I\x0A\x08messages\x18\x01 \x03(\x0B27.google.cloud.geminidataanalytics.v1beta.StorageMessage\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"g\x0A\x0EStorageMessage\x12\x12\x0A\x0Amessage_id\x18\x01 \x01(\x09\x12A\x0A\x07message\x18\x02 \x01(\x0B20.google.cloud.geminidataanalytics.v1beta.Message\"\xFA\x05\x0A\x0BChatRequest\x12O\x0A\x0Einline_context\x18e \x01(\x0B20.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xE0A\x01H\x00\x12e\x0A\x16conversation_reference\x18g \x01(\x0B2>.google.cloud.geminidataanalytics.v1beta.ConversationReferenceB\x03\xE0A\x01H\x00\x12\\\x0A\x12data_agent_context\x18h \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\x03\xE0A\x01H\x00\x12u\x0A\x1Fclient_managed_resource_context\x18i \x01(\x0B2E.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContextB\x03\xE0A\x01H\x00\x12F\x0A\x07project\x18\x01 \x01(\x09B5\x18\x01\xE0A\x01\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\x12\x13\x0A\x06parent\x18\x03 \x01(\x09B\x03\xE0A\x02\x12G\x0A\x08messages\x18\x02 \x03(\x0B20.google.cloud.geminidataanalytics.v1beta.MessageB\x03\xE0A\x02\x12]\x0A\x0Dthinking_mode\x18\x09 \x01(\x0E2A.google.cloud.geminidataanalytics.v1beta.ChatRequest.ThinkingModeB\x03\xE0A\x01\"E\x0A\x0CThinkingMode\x12\x1D\x0A\x19THINKING_MODE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04FAST\x10\x01\x12\x0C\x0A\x08THINKING\x10\x02B\x12\x0A\x10context_provider\"\xE3\x02\x0A\x10DataAgentContext\x12H\x0A\x0Adata_agent\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,geminidataanalytics.googleapis.com/DataAgent\x12N\x0A\x0Bcredentials\x18\x02 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.CredentialsB\x03\xE0A\x01\x12f\x0A\x0Fcontext_version\x18\x03 \x01(\x0E2H.google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersionB\x03\xE0A\x01\"M\x0A\x0EContextVersion\x12\x1F\x0A\x1BCONTEXT_VERSION_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07STAGING\x10\x01\x12\x0D\x0A\x09PUBLISHED\x10\x02\"\xC2\x01\x0A\x15ConversationReference\x12M\x0A\x0Cconversation\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/Conversation\x12Z\x0A\x12data_agent_context\x18\x03 \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\x03\xE0A\x02\"\xA2\x01\x0A\x1CClientManagedResourceContext\x12M\x0A\x0Einline_context\x18\x01 \x01(\x0B20.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xE0A\x02\x12\x1C\x0A\x0Fconversation_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08agent_id\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xFE\x01\x0A\x07Message\x12L\x0A\x0Cuser_message\x18\x02 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.UserMessageH\x00\x12P\x0A\x0Esystem_message\x18\x03 \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.SystemMessageH\x00\x122\x0A\x09timestamp\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x17\x0A\x0Amessage_id\x18\x04 \x01(\x09B\x03\xE0A\x01B\x06\x0A\x04kind\"%\x0A\x0BUserMessage\x12\x0E\x0A\x04text\x18\x01 \x01(\x09H\x00B\x06\x0A\x04kind\"\xA5\x05\x0A\x0DSystemMessage\x12D\x0A\x04text\x18\x01 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.TextMessageH\x00\x12H\x0A\x06schema\x18\x02 \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.SchemaMessageH\x00\x12D\x0A\x04data\x18\x03 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.DataMessageH\x00\x12L\x0A\x08analysis\x18\x04 \x01(\x0B28.google.cloud.geminidataanalytics.v1beta.AnalysisMessageH\x00\x12F\x0A\x05chart\x18\x05 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ChartMessageH\x00\x12F\x0A\x05error\x18\x06 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ErrorMessageH\x00\x12W\x0A\x0Fexample_queries\x18\x0D \x01(\x0B27.google.cloud.geminidataanalytics.v1beta.ExampleQueriesB\x03\xE0A\x01H\x00\x12[\x0A\x0Dclarification\x18\x0E \x01(\x0B2=.google.cloud.geminidataanalytics.v1beta.ClarificationMessageB\x03\xE0A\x01H\x00\x12\x15\x0A\x08group_id\x18\x0C \x01(\x05H\x01\x88\x01\x01B\x06\x0A\x04kindB\x0B\x0A\x09_group_id\"\xEE\x01\x0A\x0BTextMessage\x12\x12\x0A\x05parts\x18\x01 \x03(\x09B\x03\xE0A\x01\x12U\x0A\x09text_type\x18\x02 \x01(\x0E2=.google.cloud.geminidataanalytics.v1beta.TextMessage.TextTypeB\x03\xE0A\x01\x12\x1E\x0A\x11thought_signature\x18\x03 \x01(\x0CB\x03\xE0A\x01\"T\x0A\x08TextType\x12\x19\x0A\x15TEXT_TYPE_UNSPECIFIED\x10\x00\x12\x12\x0A\x0EFINAL_RESPONSE\x10\x01\x12\x0B\x0A\x07THOUGHT\x10\x02\x12\x0C\x0A\x08PROGRESS\x10\x03\"\xA7\x01\x0A\x0DSchemaMessage\x12E\x0A\x05query\x18\x01 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.SchemaQueryH\x00\x12G\x0A\x06result\x18\x02 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.SchemaResultH\x00B\x06\x0A\x04kind\"\$\x0A\x0BSchemaQuery\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x01\"]\x0A\x0CSchemaResult\x12M\x0A\x0Bdatasources\x18\x01 \x03(\x0B23.google.cloud.geminidataanalytics.v1beta.DatasourceB\x03\xE0A\x01\"\xE5\x02\x0A\x0BDataMessage\x12C\x0A\x05query\x18\x01 \x01(\x0B22.google.cloud.geminidataanalytics.v1beta.DataQueryH\x00\x12\x17\x0A\x0Dgenerated_sql\x18\x02 \x01(\x09H\x00\x12E\x0A\x06result\x18\x03 \x01(\x0B23.google.cloud.geminidataanalytics.v1beta.DataResultH\x00\x12Z\x0A\x16generated_looker_query\x18\x04 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x02\x18\x01H\x00\x12M\x0A\x0Dbig_query_job\x18\x05 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.BigQueryJobH\x00B\x06\x0A\x04kind\"\xDF\x01\x0A\x09DataQuery\x12K\x0A\x06looker\x18\x04 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x03\xE0A\x01H\x00\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12M\x0A\x0Bdatasources\x18\x02 \x03(\x0B23.google.cloud.geminidataanalytics.v1beta.DatasourceB\x03\xE0A\x01B\x0C\x0A\x0Aquery_type\"\xC7\x01\x0A\x0ADataResult\x12\x11\x0A\x04name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12D\x0A\x06schema\x18\x05 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\x12*\x0A\x04data\x18\x02 \x03(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x124\x0A\x0Eformatted_data\x18\x06 \x03(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\"\xF9\x01\x0A\x0BBigQueryJob\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06job_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08location\x18\x05 \x01(\x09B\x03\xE0A\x01\x12_\x0A\x11destination_table\x18\x03 \x01(\x0B2?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\x03\xE0A\x01\x12D\x0A\x06schema\x18\x07 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\"\xB4\x01\x0A\x0FAnalysisMessage\x12G\x0A\x05query\x18\x01 \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.AnalysisQueryH\x00\x12P\x0A\x0Eprogress_event\x18\x02 \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.AnalysisEventH\x00B\x06\x0A\x04kind\"F\x0A\x0DAnalysisQuery\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11data_result_names\x18\x02 \x03(\x09B\x03\xE0A\x01\"\xAA\x02\x0A\x0DAnalysisEvent\x12\x1B\x0A\x11planner_reasoning\x18\x02 \x01(\x09H\x00\x12\x1B\x0A\x11coder_instruction\x18\x03 \x01(\x09H\x00\x12\x0E\x0A\x04code\x18\x04 \x01(\x09H\x00\x12\x1A\x0A\x10execution_output\x18\x05 \x01(\x09H\x00\x12\x19\x0A\x0Fexecution_error\x18\x06 \x01(\x09H\x00\x12 \x0A\x16result_vega_chart_json\x18\x07 \x01(\x09H\x00\x12!\x0A\x17result_natural_language\x18\x08 \x01(\x09H\x00\x12\x19\x0A\x0Fresult_csv_data\x18\x09 \x01(\x09H\x00\x12\x1F\x0A\x15result_reference_data\x18\x0A \x01(\x09H\x00\x12\x0F\x0A\x05error\x18\x0B \x01(\x09H\x00B\x06\x0A\x04kind\"\xA4\x01\x0A\x0CChartMessage\x12D\x0A\x05query\x18\x01 \x01(\x0B23.google.cloud.geminidataanalytics.v1beta.ChartQueryH\x00\x12F\x0A\x06result\x18\x02 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.ChartResultH\x00B\x06\x0A\x04kind\"F\x0A\x0AChartQuery\x12\x19\x0A\x0Cinstructions\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10data_result_name\x18\x02 \x01(\x09B\x03\xE0A\x01\"\x83\x01\x0A\x0BChartResult\x121\x0A\x0Bvega_config\x18\x02 \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x12A\x0A\x05image\x18\x03 \x01(\x0B2-.google.cloud.geminidataanalytics.v1beta.BlobB\x03\xE0A\x01\"!\x0A\x0CErrorMessage\x12\x11\x0A\x04text\x18\x01 \x01(\x09B\x03\xE0A\x03\"\xF3\x03\x0A\x15ClarificationQuestion\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x02\x12i\x0A\x0Eselection_mode\x18\x02 \x01(\x0E2L.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionModeB\x03\xE0A\x02\x12\x14\x0A\x07options\x18\x03 \x03(\x09B\x03\xE0A\x02\x12\x82\x01\x0A\x1Bclarification_question_type\x18\x04 \x01(\x0E2X.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionTypeB\x03\xE0A\x01\"T\x0A\x0DSelectionMode\x12\x1E\x0A\x1ASELECTION_MODE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DSINGLE_SELECT\x10\x01\x12\x10\x0A\x0CMULTI_SELECT\x10\x02\"g\x0A\x19ClarificationQuestionType\x12+\x0A'CLARIFICATION_QUESTION_TYPE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DFILTER_VALUES\x10\x01\x12\x0A\x0A\x06FIELDS\x10\x02\"n\x0A\x14ClarificationMessage\x12V\x0A\x09questions\x18\x01 \x03(\x0B2>.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionB\x03\xE0A\x02\"e\x0A\x0EExampleQueries\x12S\x0A\x0Fexample_queries\x18\x01 \x03(\x0B25.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xE0A\x01\"1\x0A\x04Blob\x12\x16\x0A\x09mime_type\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04data\x18\x02 \x01(\x0CB\x03\xE0A\x022\xAE\x0C\x0A\x0FDataChatService\x12\xA9\x01\x0A\x04Chat\x124.google.cloud.geminidataanalytics.v1beta.ChatRequest\x1A0.google.cloud.geminidataanalytics.v1beta.Message\"7\x82\xD3\xE4\x93\x021\",/v1beta/{parent=projects/*/locations/*}:chat:\x01*0\x01\x12\x82\x02\x0A\x12CreateConversation\x12B.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest\x1A5.google.cloud.geminidataanalytics.v1beta.Conversation\"q\xDAA#parent,conversation,conversation_id\x82\xD3\xE4\x93\x02E\"5/v1beta/{parent=projects/*/locations/*}/conversations:\x0Cconversation\x12\xB6\x01\x0A\x12DeleteConversation\x12B.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest\x1A\x16.google.protobuf.Empty\"D\xDAA\x04name\x82\xD3\xE4\x93\x027*5/v1beta/{name=projects/*/locations/*/conversations/*}\x12\xCF\x01\x0A\x0FGetConversation\x12?.google.cloud.geminidataanalytics.v1beta.GetConversationRequest\x1A5.google.cloud.geminidataanalytics.v1beta.Conversation\"D\xDAA\x04name\x82\xD3\xE4\x93\x027\x125/v1beta/{name=projects/*/locations/*/conversations/*}\x12\xE2\x01\x0A\x11ListConversations\x12A.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest\x1AB.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse\"F\xDAA\x06parent\x82\xD3\xE4\x93\x027\x125/v1beta/{parent=projects/*/locations/*}/conversations\x12\xDE\x01\x0A\x0CListMessages\x12<.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest\x1A=.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse\"Q\xDAA\x06parent\x82\xD3\xE4\x93\x02B\x12@/v1beta/{parent=projects/*/locations/*/conversations/*}/messages\x12\xC0\x01\x0A\x09QueryData\x129.google.cloud.geminidataanalytics.v1beta.QueryDataRequest\x1A:.google.cloud.geminidataanalytics.v1beta.QueryDataResponse\"<\x82\xD3\xE4\x93\x026\"1/v1beta/{parent=projects/*/locations/*}:queryData:\x01*\x1AV\xCAA\"geminidataanalytics.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xA5\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x14DataChatServiceProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" + "\x0A\xF3S\x0A?google/cloud/geminidataanalytics/v1beta/data_chat_service.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A5google/cloud/geminidataanalytics/v1beta/context.proto\x1A:google/cloud/geminidataanalytics/v1beta/conversation.proto\x1A9google/cloud/geminidataanalytics/v1beta/credentials.proto\x1A8google/cloud/geminidataanalytics/v1beta/datasource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x90\x02\x0A\x10QueryDataRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x13\x0A\x06prompt\x18\x02 \x01(\x09B\x03\xE0A\x02\x12O\x0A\x07context\x18\x03 \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.QueryDataContextB\x03\xE0A\x02\x12[\x0A\x12generation_options\x18\x04 \x01(\x0B2:.google.cloud.geminidataanalytics.v1beta.GenerationOptionsB\x03\xE0A\x01\"\xB8\x01\x0A\x11GenerationOptions\x12\"\x0A\x15generate_query_result\x18\x01 \x01(\x08B\x03\xE0A\x01\x12-\x0A generate_natural_language_answer\x18\x02 \x01(\x08B\x03\xE0A\x01\x12!\x0A\x14generate_explanation\x18\x03 \x01(\x08B\x03\xE0A\x01\x12-\x0A generate_disambiguation_question\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xF4\x01\x0A\x10QueryDataContext\x12a\x0A\x15datasource_references\x18\x01 \x01(\x0B2=.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesB\x03\xE0A\x02\x12}\x0A\$parameterized_secure_view_parameters\x18\x02 \x01(\x0B2J.google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParametersB\x03\xE0A\x01\"\xC5\x01\x0A!ParameterizedSecureViewParameters\x12m\x0A\x0Aparameters\x18\x01 \x03(\x0B2T.google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters.ParameterB\x03\xE0A\x01\x1A1\x0A\x09Parameter\x12\x10\x0A\x03key\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x12\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xDE\x01\x0A\x11QueryDataResponse\x12\x17\x0A\x0Fgenerated_query\x18\x01 \x01(\x09\x12\x1A\x0A\x12intent_explanation\x18\x02 \x01(\x09\x12R\x0A\x0Cquery_result\x18\x03 \x01(\x0B2<.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult\x12\x1F\x0A\x17natural_language_answer\x18\x04 \x01(\x09\x12\x1F\x0A\x17disambiguation_question\x18\x05 \x03(\x09\"\xA4\x03\x0A\x13ExecutedQueryResult\x12T\x0A\x07columns\x18\x01 \x03(\x0B2C.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column\x12N\x0A\x04rows\x18\x02 \x03(\x0B2@.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row\x12\x17\x0A\x0Ftotal_row_count\x18\x03 \x01(\x03\x12\x16\x0A\x0Epartial_result\x18\x04 \x01(\x08\x12\x1D\x0A\x15query_execution_error\x18\x05 \x01(\x09\x1A\$\x0A\x06Column\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0C\x0A\x04type\x18\x02 \x01(\x09\x1A\x16\x0A\x05Value\x12\x0D\x0A\x05value\x18\x01 \x01(\x09\x1AY\x0A\x03Row\x12R\x0A\x06values\x18\x01 \x03(\x0B2B.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value\"\xA4\x01\x0A\x13ListMessagesRequest\x12G\x0A\x06parent\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/Conversation\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"z\x0A\x14ListMessagesResponse\x12I\x0A\x08messages\x18\x01 \x03(\x0B27.google.cloud.geminidataanalytics.v1beta.StorageMessage\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"g\x0A\x0EStorageMessage\x12\x12\x0A\x0Amessage_id\x18\x01 \x01(\x09\x12A\x0A\x07message\x18\x02 \x01(\x0B20.google.cloud.geminidataanalytics.v1beta.Message\"\xBF\x08\x0A\x0BChatRequest\x12O\x0A\x0Einline_context\x18e \x01(\x0B20.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xE0A\x01H\x00\x12e\x0A\x16conversation_reference\x18g \x01(\x0B2>.google.cloud.geminidataanalytics.v1beta.ConversationReferenceB\x03\xE0A\x01H\x00\x12\\\x0A\x12data_agent_context\x18h \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\x03\xE0A\x01H\x00\x12u\x0A\x1Fclient_managed_resource_context\x18i \x01(\x0B2E.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContextB\x03\xE0A\x01H\x00\x12W\x0A\x0Flooker_settings\x18\x0D \x01(\x0B27.google.cloud.geminidataanalytics.v1beta.LookerSettingsB\x03\xE0A\x01H\x01\x12F\x0A\x07project\x18\x01 \x01(\x09B5\x18\x01\xE0A\x01\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\x12\x13\x0A\x06parent\x18\x03 \x01(\x09B\x03\xE0A\x02\x12G\x0A\x08messages\x18\x02 \x03(\x0B20.google.cloud.geminidataanalytics.v1beta.MessageB\x03\xE0A\x02\x12N\x0A\x0Bcredentials\x18\x07 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.CredentialsB\x03\xE0A\x01\x12]\x0A\x0Dthinking_mode\x18\x09 \x01(\x0E2A.google.cloud.geminidataanalytics.v1beta.ChatRequest.ThinkingModeB\x03\xE0A\x01\x12N\x0A\x05model\x18\x0B \x01(\x0E2:.google.cloud.geminidataanalytics.v1beta.ChatRequest.ModelB\x03\xE0A\x01\"E\x0A\x0CThinkingMode\x12\x1D\x0A\x19THINKING_MODE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04FAST\x10\x01\x12\x0C\x0A\x08THINKING\x10\x02\"3\x0A\x05Model\x12\x15\x0A\x11MODEL_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FLATEST_GA_MODEL\x10\x01B\x12\x0A\x10context_providerB\x15\x0A\x13datasource_settings\"\xE5\x02\x0A\x10DataAgentContext\x12H\x0A\x0Adata_agent\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,geminidataanalytics.googleapis.com/DataAgent\x12P\x0A\x0Bcredentials\x18\x02 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.CredentialsB\x05\x18\x01\xE0A\x01\x12f\x0A\x0Fcontext_version\x18\x03 \x01(\x0E2H.google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersionB\x03\xE0A\x01\"M\x0A\x0EContextVersion\x12\x1F\x0A\x1BCONTEXT_VERSION_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07STAGING\x10\x01\x12\x0D\x0A\x09PUBLISHED\x10\x02\"\xC2\x01\x0A\x15ConversationReference\x12M\x0A\x0Cconversation\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/Conversation\x12Z\x0A\x12data_agent_context\x18\x03 \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\x03\xE0A\x02\"\xA2\x01\x0A\x1CClientManagedResourceContext\x12M\x0A\x0Einline_context\x18\x01 \x01(\x0B20.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xE0A\x02\x12\x1C\x0A\x0Fconversation_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08agent_id\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xFE\x01\x0A\x07Message\x12L\x0A\x0Cuser_message\x18\x02 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.UserMessageH\x00\x12P\x0A\x0Esystem_message\x18\x03 \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.SystemMessageH\x00\x122\x0A\x09timestamp\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x17\x0A\x0Amessage_id\x18\x04 \x01(\x09B\x03\xE0A\x01B\x06\x0A\x04kind\".\x0A\x0ELookerSettings\x12\x1C\x0A\x0Fenable_dev_mode\x18\x01 \x01(\x08B\x03\xE0A\x01\"%\x0A\x0BUserMessage\x12\x0E\x0A\x04text\x18\x01 \x01(\x09H\x00B\x06\x0A\x04kind\"\xF1\x05\x0A\x0DSystemMessage\x12D\x0A\x04text\x18\x01 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.TextMessageH\x00\x12H\x0A\x06schema\x18\x02 \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.SchemaMessageH\x00\x12D\x0A\x04data\x18\x03 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.DataMessageH\x00\x12L\x0A\x08analysis\x18\x04 \x01(\x0B28.google.cloud.geminidataanalytics.v1beta.AnalysisMessageH\x00\x12F\x0A\x05chart\x18\x05 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ChartMessageH\x00\x12F\x0A\x05error\x18\x06 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ErrorMessageH\x00\x12W\x0A\x0Fexample_queries\x18\x0D \x01(\x0B27.google.cloud.geminidataanalytics.v1beta.ExampleQueriesB\x03\xE0A\x01H\x00\x12]\x0A\x0Dclarification\x18\x0E \x01(\x0B2=.google.cloud.geminidataanalytics.v1beta.ClarificationMessageB\x05\x18\x01\xE0A\x01H\x00\x12\x15\x0A\x08group_id\x18\x0C \x01(\x05H\x01\x88\x01\x01\x12H\x0A\x08citation\x18\x0F \x01(\x0B21.google.cloud.geminidataanalytics.v1beta.CitationB\x03\xE0A\x03B\x06\x0A\x04kindB\x0B\x0A\x09_group_id\"\x86\x02\x0A\x0BTextMessage\x12\x12\x0A\x05parts\x18\x01 \x03(\x09B\x03\xE0A\x01\x12U\x0A\x09text_type\x18\x02 \x01(\x0E2=.google.cloud.geminidataanalytics.v1beta.TextMessage.TextTypeB\x03\xE0A\x01\x12\x1E\x0A\x11thought_signature\x18\x03 \x01(\x0CB\x03\xE0A\x01\"l\x0A\x08TextType\x12\x19\x0A\x15TEXT_TYPE_UNSPECIFIED\x10\x00\x12\x12\x0A\x0EFINAL_RESPONSE\x10\x01\x12\x0B\x0A\x07THOUGHT\x10\x02\x12\x0C\x0A\x08PROGRESS\x10\x03\x12\x16\x0A\x12FOLLOWUP_QUESTIONS\x10\x04\"\xA7\x01\x0A\x0DSchemaMessage\x12E\x0A\x05query\x18\x01 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.SchemaQueryH\x00\x12G\x0A\x06result\x18\x02 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.SchemaResultH\x00B\x06\x0A\x04kind\"\$\x0A\x0BSchemaQuery\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x01\"]\x0A\x0CSchemaResult\x12M\x0A\x0Bdatasources\x18\x01 \x03(\x0B23.google.cloud.geminidataanalytics.v1beta.DatasourceB\x03\xE0A\x01\"\xB5\x03\x0A\x0BDataMessage\x12C\x0A\x05query\x18\x01 \x01(\x0B22.google.cloud.geminidataanalytics.v1beta.DataQueryH\x00\x12\x17\x0A\x0Dgenerated_sql\x18\x02 \x01(\x09H\x00\x12E\x0A\x06result\x18\x03 \x01(\x0B23.google.cloud.geminidataanalytics.v1beta.DataResultH\x00\x12Z\x0A\x16generated_looker_query\x18\x04 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x02\x18\x01H\x00\x12M\x0A\x0Dbig_query_job\x18\x05 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.BigQueryJobH\x00\x12N\x0A\x0Dmatched_query\x18\x06 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.MatchedQueryH\x00B\x06\x0A\x04kind\"\xDF\x01\x0A\x09DataQuery\x12K\x0A\x06looker\x18\x04 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x03\xE0A\x01H\x00\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12M\x0A\x0Bdatasources\x18\x02 \x03(\x0B23.google.cloud.geminidataanalytics.v1beta.DatasourceB\x03\xE0A\x01B\x0C\x0A\x0Aquery_type\"\xC7\x01\x0A\x0ADataResult\x12\x11\x0A\x04name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12D\x0A\x06schema\x18\x05 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\x12*\x0A\x04data\x18\x02 \x03(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x124\x0A\x0Eformatted_data\x18\x06 \x03(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\"\xF9\x01\x0A\x0BBigQueryJob\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06job_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08location\x18\x05 \x01(\x09B\x03\xE0A\x01\x12_\x0A\x11destination_table\x18\x03 \x01(\x0B2?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\x03\xE0A\x01\x12D\x0A\x06schema\x18\x07 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\"\xB4\x01\x0A\x0FAnalysisMessage\x12G\x0A\x05query\x18\x01 \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.AnalysisQueryH\x00\x12P\x0A\x0Eprogress_event\x18\x02 \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.AnalysisEventH\x00B\x06\x0A\x04kind\"F\x0A\x0DAnalysisQuery\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11data_result_names\x18\x02 \x03(\x09B\x03\xE0A\x01\"\xAA\x02\x0A\x0DAnalysisEvent\x12\x1B\x0A\x11planner_reasoning\x18\x02 \x01(\x09H\x00\x12\x1B\x0A\x11coder_instruction\x18\x03 \x01(\x09H\x00\x12\x0E\x0A\x04code\x18\x04 \x01(\x09H\x00\x12\x1A\x0A\x10execution_output\x18\x05 \x01(\x09H\x00\x12\x19\x0A\x0Fexecution_error\x18\x06 \x01(\x09H\x00\x12 \x0A\x16result_vega_chart_json\x18\x07 \x01(\x09H\x00\x12!\x0A\x17result_natural_language\x18\x08 \x01(\x09H\x00\x12\x19\x0A\x0Fresult_csv_data\x18\x09 \x01(\x09H\x00\x12\x1F\x0A\x15result_reference_data\x18\x0A \x01(\x09H\x00\x12\x0F\x0A\x05error\x18\x0B \x01(\x09H\x00B\x06\x0A\x04kind\"\xA4\x01\x0A\x0CChartMessage\x12D\x0A\x05query\x18\x01 \x01(\x0B23.google.cloud.geminidataanalytics.v1beta.ChartQueryH\x00\x12F\x0A\x06result\x18\x02 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.ChartResultH\x00B\x06\x0A\x04kind\"F\x0A\x0AChartQuery\x12\x19\x0A\x0Cinstructions\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10data_result_name\x18\x02 \x01(\x09B\x03\xE0A\x01\"\x83\x01\x0A\x0BChartResult\x121\x0A\x0Bvega_config\x18\x02 \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x12A\x0A\x05image\x18\x03 \x01(\x0B2-.google.cloud.geminidataanalytics.v1beta.BlobB\x03\xE0A\x01\"!\x0A\x0CErrorMessage\x12\x11\x0A\x04text\x18\x01 \x01(\x09B\x03\xE0A\x03\"\x9F\x04\x0A\x15ClarificationQuestion\x12\x17\x0A\x08question\x18\x01 \x01(\x09B\x05\x18\x01\xE0A\x02\x12k\x0A\x0Eselection_mode\x18\x02 \x01(\x0E2L.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionModeB\x05\x18\x01\xE0A\x02\x12\x16\x0A\x07options\x18\x03 \x03(\x09B\x05\x18\x01\xE0A\x02\x12\x84\x01\x0A\x1Bclarification_question_type\x18\x04 \x01(\x0E2X.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionTypeB\x05\x18\x01\xE0A\x01\"d\x0A\x0DSelectionMode\x12\"\x0A\x1ASELECTION_MODE_UNSPECIFIED\x10\x00\x1A\x02\x08\x01\x12\x15\x0A\x0DSINGLE_SELECT\x10\x01\x1A\x02\x08\x01\x12\x14\x0A\x0CMULTI_SELECT\x10\x02\x1A\x02\x08\x01\x1A\x02\x18\x01\"w\x0A\x19ClarificationQuestionType\x12/\x0A'CLARIFICATION_QUESTION_TYPE_UNSPECIFIED\x10\x00\x1A\x02\x08\x01\x12\x15\x0A\x0DFILTER_VALUES\x10\x01\x1A\x02\x08\x01\x12\x0E\x0A\x06FIELDS\x10\x02\x1A\x02\x08\x01\x1A\x02\x18\x01:\x02\x18\x01\"t\x0A\x14ClarificationMessage\x12X\x0A\x09questions\x18\x01 \x03(\x0B2>.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionB\x05\x18\x01\xE0A\x02:\x02\x18\x01\"e\x0A\x0EExampleQueries\x12S\x0A\x0Fexample_queries\x18\x01 \x03(\x0B25.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xE0A\x01\"1\x0A\x04Blob\x12\x16\x0A\x09mime_type\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04data\x18\x02 \x01(\x0CB\x03\xE0A\x022\xAE\x0C\x0A\x0FDataChatService\x12\xA9\x01\x0A\x04Chat\x124.google.cloud.geminidataanalytics.v1beta.ChatRequest\x1A0.google.cloud.geminidataanalytics.v1beta.Message\"7\x82\xD3\xE4\x93\x021\",/v1beta/{parent=projects/*/locations/*}:chat:\x01*0\x01\x12\x82\x02\x0A\x12CreateConversation\x12B.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest\x1A5.google.cloud.geminidataanalytics.v1beta.Conversation\"q\xDAA#parent,conversation,conversation_id\x82\xD3\xE4\x93\x02E\"5/v1beta/{parent=projects/*/locations/*}/conversations:\x0Cconversation\x12\xB6\x01\x0A\x12DeleteConversation\x12B.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest\x1A\x16.google.protobuf.Empty\"D\xDAA\x04name\x82\xD3\xE4\x93\x027*5/v1beta/{name=projects/*/locations/*/conversations/*}\x12\xCF\x01\x0A\x0FGetConversation\x12?.google.cloud.geminidataanalytics.v1beta.GetConversationRequest\x1A5.google.cloud.geminidataanalytics.v1beta.Conversation\"D\xDAA\x04name\x82\xD3\xE4\x93\x027\x125/v1beta/{name=projects/*/locations/*/conversations/*}\x12\xE2\x01\x0A\x11ListConversations\x12A.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest\x1AB.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse\"F\xDAA\x06parent\x82\xD3\xE4\x93\x027\x125/v1beta/{parent=projects/*/locations/*}/conversations\x12\xDE\x01\x0A\x0CListMessages\x12<.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest\x1A=.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse\"Q\xDAA\x06parent\x82\xD3\xE4\x93\x02B\x12@/v1beta/{parent=projects/*/locations/*/conversations/*}/messages\x12\xC0\x01\x0A\x09QueryData\x129.google.cloud.geminidataanalytics.v1beta.QueryDataRequest\x1A:.google.cloud.geminidataanalytics.v1beta.QueryDataResponse\"<\x82\xD3\xE4\x93\x026\"1/v1beta/{parent=projects/*/locations/*}:queryData:\x01*\x1AV\xCAA\"geminidataanalytics.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xA5\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x14DataChatServiceProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" , true); static::$is_initialized = true; diff --git a/GeminiDataAnalytics/metadata/V1Beta/Datasource.php b/GeminiDataAnalytics/metadata/V1Beta/Datasource.php index 095092236abc..112b8b824467 100644 --- a/GeminiDataAnalytics/metadata/V1Beta/Datasource.php +++ b/GeminiDataAnalytics/metadata/V1Beta/Datasource.php @@ -19,7 +19,7 @@ public static function initOnce() { \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Credentials::initOnce(); \GPBMetadata\Google\Protobuf\Struct::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\x9B'\x0A8google/cloud/geminidataanalytics/v1beta/datasource.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A;google/cloud/geminidataanalytics/v1beta/agent_context.proto\x1A9google/cloud/geminidataanalytics/v1beta/credentials.proto\x1A\x1Cgoogle/protobuf/struct.proto\"\xA0\x04\x0A\x14DatasourceReferences\x12N\x0A\x02bq\x18\x01 \x01(\x0B2@.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferencesH\x00\x12U\x0A\x06studio\x18\x02 \x01(\x0B2C.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferencesH\x00\x12R\x0A\x06looker\x18\x03 \x01(\x0B2@.google.cloud.geminidataanalytics.v1beta.LookerExploreReferencesH\x00\x12L\x0A\x07alloydb\x18\x08 \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceH\x00\x12V\x0A\x11spanner_reference\x18\x09 \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.SpannerReferenceH\x00\x12Y\x0A\x13cloud_sql_reference\x18\x0A \x01(\x0B2:.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceH\x00B\x0C\x0A\x0Areferences\"y\x0A\x17BigQueryTableReferences\x12^\x0A\x10table_references\x18\x01 \x03(\x0B2?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\x03\xE0A\x01\"\xA7\x01\x0A\x16BigQueryTableReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Adataset_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08table_id\x18\x04 \x01(\x09B\x03\xE0A\x02\x12D\x0A\x06schema\x18\x06 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\"{\x0A\x1AStudioDatasourceReferences\x12]\x0A\x11studio_references\x18\x02 \x03(\x0B2B.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference\"7\x0A\x19StudioDatasourceReference\x12\x1A\x0A\x0Ddatasource_id\x18\x01 \x01(\x09B\x03\xE0A\x02\"\xDC\x01\x0A\x10AlloyDbReference\x12b\x0A\x12database_reference\x18\x01 \x01(\x0B2A.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReferenceB\x03\xE0A\x02\x12d\x0A\x17agent_context_reference\x18\x03 \x01(\x0B2>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\x03\xE0A\x01\"\xAD\x01\x0A\x18AlloyDbDatabaseReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06region\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Acluster_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Binstance_id\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdatabase_id\x18\x05 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09table_ids\x18\x06 \x03(\x09B\x03\xE0A\x01\"\xDC\x01\x0A\x10SpannerReference\x12b\x0A\x12database_reference\x18\x01 \x01(\x0B2A.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReferenceB\x03\xE0A\x02\x12d\x0A\x17agent_context_reference\x18\x02 \x01(\x0B2>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\x03\xE0A\x01\"\xB5\x02\x0A\x18SpannerDatabaseReference\x12]\x0A\x06engine\x18\x06 \x01(\x0E2H.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.EngineB\x03\xE0A\x02\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06region\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Binstance_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdatabase_id\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09table_ids\x18\x05 \x03(\x09B\x03\xE0A\x01\"@\x0A\x06Engine\x12\x16\x0A\x12ENGINE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AGOOGLE_SQL\x10\x01\x12\x0E\x0A\x0APOSTGRESQL\x10\x02\"\xDE\x01\x0A\x11CloudSqlReference\x12c\x0A\x12database_reference\x18\x01 \x01(\x0B2B.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReferenceB\x03\xE0A\x02\x12d\x0A\x17agent_context_reference\x18\x02 \x01(\x0B2>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\x03\xE0A\x01\"\xB2\x02\x0A\x19CloudSqlDatabaseReference\x12^\x0A\x06engine\x18\x01 \x01(\x0E2I.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.EngineB\x03\xE0A\x02\x12\x17\x0A\x0Aproject_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06region\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Binstance_id\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdatabase_id\x18\x05 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09table_ids\x18\x07 \x03(\x09B\x03\xE0A\x01\";\x0A\x06Engine\x12\x16\x0A\x12ENGINE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0APOSTGRESQL\x10\x01\x12\x09\x0A\x05MYSQL\x10\x02\"\xCB\x01\x0A\x17LookerExploreReferences\x12`\x0A\x12explore_references\x18\x01 \x03(\x0B2?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceB\x03\xE0A\x02\x12N\x0A\x0Bcredentials\x18\x02 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.CredentialsB\x03\xE0A\x01\"\xA6\x02\x0A\x16LookerExploreReference\x12\x1D\x0A\x13looker_instance_uri\x18\x09 \x01(\x09H\x00\x12j\x0A\x1Cprivate_looker_instance_info\x18\x0A \x01(\x0B2B.google.cloud.geminidataanalytics.v1beta.PrivateLookerInstanceInfoH\x00\x12\x19\x0A\x0Clookml_model\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x14\x0A\x07explore\x18\x05 \x01(\x09B\x03\xE0A\x02\x12D\x0A\x06schema\x18\x08 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01B\x0A\x0A\x08instance\"W\x0A\x19PrivateLookerInstanceInfo\x12\x1A\x0A\x12looker_instance_id\x18\x01 \x01(\x09\x12\x1E\x0A\x16service_directory_name\x18\x02 \x01(\x09\"\x8A\x05\x0A\x0ADatasource\x12c\x0A\x18bigquery_table_reference\x18\x01 \x01(\x0B2?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceH\x00\x12\x1E\x0A\x14studio_datasource_id\x18\x02 \x01(\x09H\x00\x12c\x0A\x18looker_explore_reference\x18\x04 \x01(\x0B2?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceH\x00\x12W\x0A\x12alloy_db_reference\x18\x0C \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceH\x00\x12V\x0A\x11spanner_reference\x18\x0D \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.SpannerReferenceH\x00\x12Y\x0A\x13cloud_sql_reference\x18\x0E \x01(\x0B2:.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceH\x00\x12D\x0A\x06schema\x18\x07 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\x123\x0A\x0Dstruct_schema\x18\x0A \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01B\x0B\x0A\x09reference\"\xF7\x01\x0A\x06Schema\x12C\x0A\x06fields\x18\x01 \x03(\x0B2..google.cloud.geminidataanalytics.v1beta.FieldB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08synonyms\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x11\x0A\x04tags\x18\x04 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x05 \x01(\x09B\x03\xE0A\x01\x12I\x0A\x07filters\x18\x06 \x03(\x0B23.google.cloud.geminidataanalytics.v1beta.DataFilterB\x03\xE0A\x01\"\x99\x02\x0A\x05Field\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04type\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04mode\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08synonyms\x18\x06 \x03(\x09B\x03\xE0A\x01\x12\x11\x0A\x04tags\x18\x07 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x08 \x01(\x09B\x03\xE0A\x01\x12F\x0A\x09subfields\x18\x09 \x03(\x0B2..google.cloud.geminidataanalytics.v1beta.FieldB\x03\xE0A\x01\x12\x15\x0A\x08category\x18\x0A \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cvalue_format\x18\x0B \x01(\x09B\x03\xE0A\x01\"\x80\x01\x0A\x0ADataFilter\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x01\x12J\x0A\x04type\x18\x03 \x01(\x0E27.google.cloud.geminidataanalytics.v1beta.DataFilterTypeB\x03\xE0A\x01*E\x0A\x0EDataFilterType\x12 \x0A\x1CDATA_FILTER_TYPE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DALWAYS_FILTER\x10\x01B\xA0\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x0FDatasourceProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" + "\x0A\xC8-\x0A8google/cloud/geminidataanalytics/v1beta/datasource.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A;google/cloud/geminidataanalytics/v1beta/agent_context.proto\x1A9google/cloud/geminidataanalytics/v1beta/credentials.proto\x1A\x1Cgoogle/protobuf/struct.proto\"\xA0\x04\x0A\x14DatasourceReferences\x12N\x0A\x02bq\x18\x01 \x01(\x0B2@.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferencesH\x00\x12U\x0A\x06studio\x18\x02 \x01(\x0B2C.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferencesH\x00\x12R\x0A\x06looker\x18\x03 \x01(\x0B2@.google.cloud.geminidataanalytics.v1beta.LookerExploreReferencesH\x00\x12L\x0A\x07alloydb\x18\x08 \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceH\x00\x12V\x0A\x11spanner_reference\x18\x09 \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.SpannerReferenceH\x00\x12Y\x0A\x13cloud_sql_reference\x18\x0A \x01(\x0B2:.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceH\x00B\x0C\x0A\x0Areferences\"\xEA\x01\x0A\x17BigQueryTableReferences\x12^\x0A\x10table_references\x18\x01 \x03(\x0B2?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\x03\xE0A\x01\x12o\x0A\x19property_graph_references\x18\x02 \x03(\x0B2G.google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReferenceB\x03\xE0A\x01\"\xA7\x01\x0A\x16BigQueryTableReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Adataset_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08table_id\x18\x04 \x01(\x09B\x03\xE0A\x02\x12D\x0A\x06schema\x18\x06 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\"\x80\x01\x0A\x1AStudioDatasourceReferences\x12b\x0A\x11studio_references\x18\x02 \x03(\x0B2B.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferenceB\x03\xE0A\x01\"7\x0A\x19StudioDatasourceReference\x12\x1A\x0A\x0Ddatasource_id\x18\x01 \x01(\x09B\x03\xE0A\x02\"\xDC\x01\x0A\x10AlloyDbReference\x12b\x0A\x12database_reference\x18\x01 \x01(\x0B2A.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReferenceB\x03\xE0A\x02\x12d\x0A\x17agent_context_reference\x18\x03 \x01(\x0B2>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\x03\xE0A\x01\"u\x0A\x16DatabaseTableReference\x12\x15\x0A\x08table_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12D\x0A\x06schema\x18\x02 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\"\x96\x02\x0A\x18AlloyDbDatabaseReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06region\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Acluster_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Binstance_id\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdatabase_id\x18\x05 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09table_ids\x18\x06 \x03(\x09B\x03\xE0A\x01\x12g\x0A\x19database_table_references\x18\x07 \x03(\x0B2?.google.cloud.geminidataanalytics.v1beta.DatabaseTableReferenceB\x03\xE0A\x01\"\xDC\x01\x0A\x10SpannerReference\x12b\x0A\x12database_reference\x18\x01 \x01(\x0B2A.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReferenceB\x03\xE0A\x02\x12d\x0A\x17agent_context_reference\x18\x02 \x01(\x0B2>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\x03\xE0A\x01\"\xB5\x03\x0A\x18SpannerDatabaseReference\x12]\x0A\x06engine\x18\x06 \x01(\x0E2H.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.EngineB\x03\xE0A\x02\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Binstance_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdatabase_id\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09table_ids\x18\x05 \x03(\x09B\x03\xE0A\x01\x12g\x0A\x19database_table_references\x18\x07 \x03(\x0B2?.google.cloud.geminidataanalytics.v1beta.DatabaseTableReferenceB\x03\xE0A\x01\x12\x15\x0A\x08priority\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x0Brequest_tag\x18\x09 \x01(\x09\"@\x0A\x06Engine\x12\x16\x0A\x12ENGINE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AGOOGLE_SQL\x10\x01\x12\x0E\x0A\x0APOSTGRESQL\x10\x02\"\xDE\x01\x0A\x11CloudSqlReference\x12c\x0A\x12database_reference\x18\x01 \x01(\x0B2B.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReferenceB\x03\xE0A\x02\x12d\x0A\x17agent_context_reference\x18\x02 \x01(\x0B2>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\x03\xE0A\x01\"\x9B\x03\x0A\x19CloudSqlDatabaseReference\x12^\x0A\x06engine\x18\x01 \x01(\x0E2I.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.EngineB\x03\xE0A\x02\x12\x17\x0A\x0Aproject_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06region\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Binstance_id\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdatabase_id\x18\x05 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09table_ids\x18\x07 \x03(\x09B\x03\xE0A\x01\x12g\x0A\x19database_table_references\x18\x08 \x03(\x0B2?.google.cloud.geminidataanalytics.v1beta.DatabaseTableReferenceB\x03\xE0A\x01\";\x0A\x06Engine\x12\x16\x0A\x12ENGINE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0APOSTGRESQL\x10\x01\x12\x09\x0A\x05MYSQL\x10\x02\"\xCD\x01\x0A\x17LookerExploreReferences\x12`\x0A\x12explore_references\x18\x01 \x03(\x0B2?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceB\x03\xE0A\x02\x12P\x0A\x0Bcredentials\x18\x02 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.CredentialsB\x05\x18\x01\xE0A\x01\"\xA6\x02\x0A\x16LookerExploreReference\x12\x1D\x0A\x13looker_instance_uri\x18\x09 \x01(\x09H\x00\x12j\x0A\x1Cprivate_looker_instance_info\x18\x0A \x01(\x0B2B.google.cloud.geminidataanalytics.v1beta.PrivateLookerInstanceInfoH\x00\x12\x19\x0A\x0Clookml_model\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x14\x0A\x07explore\x18\x05 \x01(\x09B\x03\xE0A\x02\x12D\x0A\x06schema\x18\x08 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01B\x0A\x0A\x08instance\"r\x0A\x1EBigQueryPropertyGraphReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Adataset_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1E\x0A\x11property_graph_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"W\x0A\x19PrivateLookerInstanceInfo\x12\x1A\x0A\x12looker_instance_id\x18\x01 \x01(\x09\x12\x1E\x0A\x16service_directory_name\x18\x02 \x01(\x09\"\x80\x06\x0A\x0ADatasource\x12c\x0A\x18bigquery_table_reference\x18\x01 \x01(\x0B2?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceH\x00\x12\x1E\x0A\x14studio_datasource_id\x18\x02 \x01(\x09H\x00\x12c\x0A\x18looker_explore_reference\x18\x04 \x01(\x0B2?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceH\x00\x12W\x0A\x12alloy_db_reference\x18\x0C \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceH\x00\x12V\x0A\x11spanner_reference\x18\x0D \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.SpannerReferenceH\x00\x12Y\x0A\x13cloud_sql_reference\x18\x0E \x01(\x0B2:.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceH\x00\x12t\x0A!bigquery_property_graph_reference\x18\x10 \x01(\x0B2G.google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReferenceH\x00\x12D\x0A\x06schema\x18\x07 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\x123\x0A\x0Dstruct_schema\x18\x0A \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01B\x0B\x0A\x09reference\"\xF7\x01\x0A\x06Schema\x12C\x0A\x06fields\x18\x01 \x03(\x0B2..google.cloud.geminidataanalytics.v1beta.FieldB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08synonyms\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x11\x0A\x04tags\x18\x04 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x05 \x01(\x09B\x03\xE0A\x01\x12I\x0A\x07filters\x18\x06 \x03(\x0B23.google.cloud.geminidataanalytics.v1beta.DataFilterB\x03\xE0A\x01\"\x99\x02\x0A\x05Field\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04type\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04mode\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08synonyms\x18\x06 \x03(\x09B\x03\xE0A\x01\x12\x11\x0A\x04tags\x18\x07 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x08 \x01(\x09B\x03\xE0A\x01\x12F\x0A\x09subfields\x18\x09 \x03(\x0B2..google.cloud.geminidataanalytics.v1beta.FieldB\x03\xE0A\x01\x12\x15\x0A\x08category\x18\x0A \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cvalue_format\x18\x0B \x01(\x09B\x03\xE0A\x01\"\x80\x01\x0A\x0ADataFilter\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x01\x12J\x0A\x04type\x18\x03 \x01(\x0E27.google.cloud.geminidataanalytics.v1beta.DataFilterTypeB\x03\xE0A\x01*E\x0A\x0EDataFilterType\x12 \x0A\x1CDATA_FILTER_TYPE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DALWAYS_FILTER\x10\x01B\xA0\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x0FDatasourceProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" , true); static::$is_initialized = true; diff --git a/GeminiDataAnalytics/samples/V1beta/DataAgentServiceClient/list_locations.php b/GeminiDataAnalytics/samples/V1beta/DataAgentServiceClient/list_locations.php index 7016ca9d006a..bbe815f6b281 100644 --- a/GeminiDataAnalytics/samples/V1beta/DataAgentServiceClient/list_locations.php +++ b/GeminiDataAnalytics/samples/V1beta/DataAgentServiceClient/list_locations.php @@ -31,13 +31,21 @@ /** * Lists information about the supported locations for this service. -This method can be called in two ways: -* **List all public locations:** Use the path `GET /v1/locations`. -* **List project-visible locations:** Use the path -`GET /v1/projects/{project_id}/locations`. This may include public -locations as well as private or other locations specifically visible -to the project. +This method lists locations based on the resource scope provided in +the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * +**Global locations**: If `name` is empty, the method lists the +public locations available to all projects. * **Project-specific +locations**: If `name` follows the format +`projects/{project}`, the method lists locations visible to that +specific project. This includes public, private, or other +project-specific locations enabled for the project. + +For gRPC and client library implementations, the resource name is +passed as the `name` field. For direct service calls, the resource +name is +incorporated into the request path based on the specific service +implementation and version. * * This sample has been automatically generated and should be regarded as a code * template only. It will require modifications to work: diff --git a/GeminiDataAnalytics/samples/V1beta/DataChatServiceClient/chat.php b/GeminiDataAnalytics/samples/V1beta/DataChatServiceClient/chat.php index 44101ac684c9..82a57601a9ee 100644 --- a/GeminiDataAnalytics/samples/V1beta/DataChatServiceClient/chat.php +++ b/GeminiDataAnalytics/samples/V1beta/DataChatServiceClient/chat.php @@ -31,7 +31,7 @@ /** * Answers a data question by generating a stream of - * [Message][google.cloud.geminidataanalytics.v1alpha.Message] objects. + * [Message][google.cloud.geminidataanalytics.v1.Message] objects. * * @param string $parent The parent value for chat request. * Pattern: `projects/{project}/locations/{location}` diff --git a/GeminiDataAnalytics/samples/V1beta/DataChatServiceClient/list_locations.php b/GeminiDataAnalytics/samples/V1beta/DataChatServiceClient/list_locations.php index d85988b58605..d1917776c6c0 100644 --- a/GeminiDataAnalytics/samples/V1beta/DataChatServiceClient/list_locations.php +++ b/GeminiDataAnalytics/samples/V1beta/DataChatServiceClient/list_locations.php @@ -31,13 +31,21 @@ /** * Lists information about the supported locations for this service. -This method can be called in two ways: -* **List all public locations:** Use the path `GET /v1/locations`. -* **List project-visible locations:** Use the path -`GET /v1/projects/{project_id}/locations`. This may include public -locations as well as private or other locations specifically visible -to the project. +This method lists locations based on the resource scope provided in +the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * +**Global locations**: If `name` is empty, the method lists the +public locations available to all projects. * **Project-specific +locations**: If `name` follows the format +`projects/{project}`, the method lists locations visible to that +specific project. This includes public, private, or other +project-specific locations enabled for the project. + +For gRPC and client library implementations, the resource name is +passed as the `name` field. For direct service calls, the resource +name is +incorporated into the request path based on the specific service +implementation and version. * * This sample has been automatically generated and should be regarded as a code * template only. It will require modifications to work: diff --git a/GeminiDataAnalytics/src/V1beta/AlloyDbDatabaseReference.php b/GeminiDataAnalytics/src/V1beta/AlloyDbDatabaseReference.php index c3c4646dd6e8..823951187962 100644 --- a/GeminiDataAnalytics/src/V1beta/AlloyDbDatabaseReference.php +++ b/GeminiDataAnalytics/src/V1beta/AlloyDbDatabaseReference.php @@ -51,6 +51,14 @@ class AlloyDbDatabaseReference extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private $table_ids; + /** + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $database_table_references; /** * Constructor. @@ -70,6 +78,10 @@ class AlloyDbDatabaseReference extends \Google\Protobuf\Internal\Message * Required. The database id. * @type string[] $table_ids * Optional. The table ids. Denotes all tables if unset. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference[] $database_table_references + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. * } */ public function __construct($data = NULL) { @@ -233,5 +245,35 @@ public function setTableIds($var) return $this; } + /** + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference> + */ + public function getDatabaseTableReferences() + { + return $this->database_table_references; + } + + /** + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference[] $var + * @return $this + */ + public function setDatabaseTableReferences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference::class); + $this->database_table_references = $arr; + + return $this; + } + } diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryPropertyGraphReference.php b/GeminiDataAnalytics/src/V1beta/BigQueryPropertyGraphReference.php similarity index 100% rename from owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryPropertyGraphReference.php rename to GeminiDataAnalytics/src/V1beta/BigQueryPropertyGraphReference.php diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryRoutine.php b/GeminiDataAnalytics/src/V1beta/BigQueryRoutine.php similarity index 100% rename from owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryRoutine.php rename to GeminiDataAnalytics/src/V1beta/BigQueryRoutine.php diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryRoutineReference.php b/GeminiDataAnalytics/src/V1beta/BigQueryRoutineReference.php similarity index 100% rename from owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryRoutineReference.php rename to GeminiDataAnalytics/src/V1beta/BigQueryRoutineReference.php diff --git a/GeminiDataAnalytics/src/V1beta/BigQueryTableReferences.php b/GeminiDataAnalytics/src/V1beta/BigQueryTableReferences.php index ad964686251a..1bcd78e05ae5 100644 --- a/GeminiDataAnalytics/src/V1beta/BigQueryTableReferences.php +++ b/GeminiDataAnalytics/src/V1beta/BigQueryTableReferences.php @@ -10,8 +10,8 @@ /** * Message representing references to BigQuery tables and property graphs. - * At least one of `table_references` or `property_graph_references` must be - * populated. + * At least one of `table_references`, `property_graph_references`, or + * `search_scope` must be populated. * * Generated from protobuf message google.cloud.geminidataanalytics.v1beta.BigQueryTableReferences */ @@ -23,6 +23,15 @@ class BigQueryTableReferences extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference table_references = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private $table_references; + /** + * Optional. Preview feature. References to BigQuery property graphs. + * Note: Data sources must exclusively use either tables or property graphs, + * not both. When using property graphs, a maximum of one graph reference is + * supported. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReference property_graph_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $property_graph_references; /** * Constructor. @@ -32,6 +41,11 @@ class BigQueryTableReferences extends \Google\Protobuf\Internal\Message * * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference[] $table_references * Optional. References to BigQuery tables. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference[] $property_graph_references + * Optional. Preview feature. References to BigQuery property graphs. + * Note: Data sources must exclusively use either tables or property graphs, + * not both. When using property graphs, a maximum of one graph reference is + * supported. * } */ public function __construct($data = NULL) { @@ -65,5 +79,37 @@ public function setTableReferences($var) return $this; } + /** + * Optional. Preview feature. References to BigQuery property graphs. + * Note: Data sources must exclusively use either tables or property graphs, + * not both. When using property graphs, a maximum of one graph reference is + * supported. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReference property_graph_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference> + */ + public function getPropertyGraphReferences() + { + return $this->property_graph_references; + } + + /** + * Optional. Preview feature. References to BigQuery property graphs. + * Note: Data sources must exclusively use either tables or property graphs, + * not both. When using property graphs, a maximum of one graph reference is + * supported. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReference property_graph_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference[] $var + * @return $this + */ + public function setPropertyGraphReferences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference::class); + $this->property_graph_references = $arr; + + return $this; + } + } diff --git a/GeminiDataAnalytics/src/V1beta/ChatRequest.php b/GeminiDataAnalytics/src/V1beta/ChatRequest.php index 4bb3c17f331f..035f020fa760 100644 --- a/GeminiDataAnalytics/src/V1beta/ChatRequest.php +++ b/GeminiDataAnalytics/src/V1beta/ChatRequest.php @@ -16,7 +16,8 @@ class ChatRequest extends \Google\Protobuf\Internal\Message { /** - * Optional. The Google Cloud project to be used for quota and billing. + * Optional. Deprecated: Use `parent` field instead. + * The Google Cloud project to be used for quota and billing. * * Generated from protobuf field string project = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { * @deprecated @@ -35,6 +36,18 @@ class ChatRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Message messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $messages; + /** + * Optional. The credentials to use when calling the data source(s) specified + * in the context. + * This field can be used to provide credentials for various data sources. + * For example, when connecting to Looker, it currently supports both OAuth + * token and API key-based credentials, as described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $credentials = null; /** * Optional. The thinking mode to use for the agent loop. * Defaults to THINKING_MODE_UNSPECIFIED if not specified. @@ -42,7 +55,15 @@ class ChatRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChatRequest.ThinkingMode thinking_mode = 9 [(.google.api.field_behavior) = OPTIONAL]; */ protected $thinking_mode = 0; + /** + * Optional. The model to use for the agent loop when processing the request. + * This setting only has an effect when context.options.model is not set. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChatRequest.Model model = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $model = 0; protected $context_provider; + protected $datasource_settings; /** * Constructor. @@ -65,16 +86,30 @@ class ChatRequest extends \Google\Protobuf\Internal\Message * Some clients may not use GDA managed resources including * conversations and agents, instead they create and manage their own * conversations and agents resources. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerSettings $looker_settings + * Optional. Looker specific settings. * @type string $project - * Optional. The Google Cloud project to be used for quota and billing. + * Optional. Deprecated: Use `parent` field instead. + * The Google Cloud project to be used for quota and billing. * @type string $parent * Required. The parent value for chat request. * Pattern: `projects/{project}/locations/{location}` * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Message[] $messages * Required. Content of current conversation. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials $credentials + * Optional. The credentials to use when calling the data source(s) specified + * in the context. + * This field can be used to provide credentials for various data sources. + * For example, when connecting to Looker, it currently supports both OAuth + * token and API key-based credentials, as described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). * @type int $thinking_mode * Optional. The thinking mode to use for the agent loop. * Defaults to THINKING_MODE_UNSPECIFIED if not specified. + * @type int $model + * Optional. The model to use for the agent loop when processing the request. + * This setting only has an effect when context.options.model is not set. * } */ public function __construct($data = NULL) { @@ -221,7 +256,39 @@ public function setClientManagedResourceContext($var) } /** - * Optional. The Google Cloud project to be used for quota and billing. + * Optional. Looker specific settings. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerSettings looker_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\LookerSettings|null + */ + public function getLookerSettings() + { + return $this->readOneof(13); + } + + public function hasLookerSettings() + { + return $this->hasOneof(13); + } + + /** + * Optional. Looker specific settings. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerSettings looker_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerSettings $var + * @return $this + */ + public function setLookerSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerSettings::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Optional. Deprecated: Use `parent` field instead. + * The Google Cloud project to be used for quota and billing. * * Generated from protobuf field string project = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { * @return string @@ -236,7 +303,8 @@ public function getProject() } /** - * Optional. The Google Cloud project to be used for quota and billing. + * Optional. Deprecated: Use `parent` field instead. + * The Google Cloud project to be used for quota and billing. * * Generated from protobuf field string project = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { * @param string $var @@ -306,6 +374,54 @@ public function setMessages($var) return $this; } + /** + * Optional. The credentials to use when calling the data source(s) specified + * in the context. + * This field can be used to provide credentials for various data sources. + * For example, when connecting to Looker, it currently supports both OAuth + * token and API key-based credentials, as described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials|null + */ + public function getCredentials() + { + return $this->credentials; + } + + public function hasCredentials() + { + return isset($this->credentials); + } + + public function clearCredentials() + { + unset($this->credentials); + } + + /** + * Optional. The credentials to use when calling the data source(s) specified + * in the context. + * This field can be used to provide credentials for various data sources. + * For example, when connecting to Looker, it currently supports both OAuth + * token and API key-based credentials, as described in + * [Authentication with an + * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials $var + * @return $this + */ + public function setCredentials($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials::class); + $this->credentials = $var; + + return $this; + } + /** * Optional. The thinking mode to use for the agent loop. * Defaults to THINKING_MODE_UNSPECIFIED if not specified. @@ -334,6 +450,34 @@ public function setThinkingMode($var) return $this; } + /** + * Optional. The model to use for the agent loop when processing the request. + * This setting only has an effect when context.options.model is not set. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChatRequest.Model model = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getModel() + { + return $this->model; + } + + /** + * Optional. The model to use for the agent loop when processing the request. + * This setting only has an effect when context.options.model is not set. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChatRequest.Model model = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setModel($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChatRequest\Model::class); + $this->model = $var; + + return $this; + } + /** * @return string */ @@ -342,5 +486,13 @@ public function getContextProvider() return $this->whichOneof("context_provider"); } + /** + * @return string + */ + public function getDatasourceSettings() + { + return $this->whichOneof("datasource_settings"); + } + } diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest/Model.php b/GeminiDataAnalytics/src/V1beta/ChatRequest/Model.php similarity index 100% rename from owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest/Model.php rename to GeminiDataAnalytics/src/V1beta/ChatRequest/Model.php diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Citation.php b/GeminiDataAnalytics/src/V1beta/Citation.php similarity index 100% rename from owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Citation.php rename to GeminiDataAnalytics/src/V1beta/Citation.php diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CitationAnchor.php b/GeminiDataAnalytics/src/V1beta/CitationAnchor.php similarity index 100% rename from owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CitationAnchor.php rename to GeminiDataAnalytics/src/V1beta/CitationAnchor.php diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CitationAnchor/TextMessageCitationAnchor.php b/GeminiDataAnalytics/src/V1beta/CitationAnchor/TextMessageCitationAnchor.php similarity index 100% rename from owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CitationAnchor/TextMessageCitationAnchor.php rename to GeminiDataAnalytics/src/V1beta/CitationAnchor/TextMessageCitationAnchor.php diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CitationSource.php b/GeminiDataAnalytics/src/V1beta/CitationSource.php similarity index 100% rename from owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CitationSource.php rename to GeminiDataAnalytics/src/V1beta/CitationSource.php diff --git a/GeminiDataAnalytics/src/V1beta/ClarificationMessage.php b/GeminiDataAnalytics/src/V1beta/ClarificationMessage.php index 15dd91b20bab..cef13305b11f 100644 --- a/GeminiDataAnalytics/src/V1beta/ClarificationMessage.php +++ b/GeminiDataAnalytics/src/V1beta/ClarificationMessage.php @@ -9,17 +9,21 @@ use Google\Protobuf\RepeatedField; /** + * Deprecated: Use TextMessage with TextType.FINAL_RESPONSE instead. * A message of questions to help clarify the user's query. This is returned * when the system cannot confidently answer the user's question. * + * @deprecated * Generated from protobuf message google.cloud.geminidataanalytics.v1beta.ClarificationMessage */ class ClarificationMessage extends \Google\Protobuf\Internal\Message { /** - * Required. A batch of clarification questions to ask the user. + * Required. Deprecated: The parent message is deprecated. + * A batch of clarification questions to ask the user. * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated */ private $questions; @@ -30,7 +34,8 @@ class ClarificationMessage extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationQuestion[] $questions - * Required. A batch of clarification questions to ask the user. + * Required. Deprecated: The parent message is deprecated. + * A batch of clarification questions to ask the user. * } */ public function __construct($data = NULL) { @@ -39,26 +44,36 @@ public function __construct($data = NULL) { } /** - * Required. A batch of clarification questions to ask the user. + * Required. Deprecated: The parent message is deprecated. + * A batch of clarification questions to ask the user. * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationQuestion> + * @deprecated */ public function getQuestions() { + if ($this->questions->count() !== 0) { + @trigger_error('questions is deprecated.', E_USER_DEPRECATED); + } return $this->questions; } /** - * Required. A batch of clarification questions to ask the user. + * Required. Deprecated: The parent message is deprecated. + * A batch of clarification questions to ask the user. * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationQuestion[] $var * @return $this + * @deprecated */ public function setQuestions($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationQuestion::class); + if ($arr->count() !== 0) { + @trigger_error('questions is deprecated.', E_USER_DEPRECATED); + } $this->questions = $arr; return $this; diff --git a/GeminiDataAnalytics/src/V1beta/ClarificationQuestion.php b/GeminiDataAnalytics/src/V1beta/ClarificationQuestion.php index 18713cc9c4ae..0609695347c0 100644 --- a/GeminiDataAnalytics/src/V1beta/ClarificationQuestion.php +++ b/GeminiDataAnalytics/src/V1beta/ClarificationQuestion.php @@ -9,35 +9,45 @@ use Google\Protobuf\RepeatedField; /** + * Deprecated: Use TextMessage with TextType.FINAL_RESPONSE instead. * Represents a single question to the user to help clarify their query. * + * @deprecated * Generated from protobuf message google.cloud.geminidataanalytics.v1beta.ClarificationQuestion */ class ClarificationQuestion extends \Google\Protobuf\Internal\Message { /** - * Required. The natural language question to ask the user. + * Required. Deprecated: The parent message is deprecated. + * The natural language question to ask the user. * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field string question = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated */ protected $question = ''; /** - * Required. The selection mode for this question. + * Required. Deprecated: The parent message is deprecated. + * The selection mode for this question. * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated */ protected $selection_mode = 0; /** - * Required. A list of distinct options for the user to choose from. + * Required. Deprecated: The parent message is deprecated. + * A list of distinct options for the user to choose from. * The number of options is limited to a maximum of 5. * - * Generated from protobuf field repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field repeated string options = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated */ private $options; /** - * Optional. The type of clarification question. + * Optional. Deprecated: The parent message is deprecated. + * The type of clarification question. * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated */ protected $clarification_question_type = 0; @@ -48,14 +58,18 @@ class ClarificationQuestion extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $question - * Required. The natural language question to ask the user. + * Required. Deprecated: The parent message is deprecated. + * The natural language question to ask the user. * @type int $selection_mode - * Required. The selection mode for this question. + * Required. Deprecated: The parent message is deprecated. + * The selection mode for this question. * @type string[] $options - * Required. A list of distinct options for the user to choose from. + * Required. Deprecated: The parent message is deprecated. + * A list of distinct options for the user to choose from. * The number of options is limited to a maximum of 5. * @type int $clarification_question_type - * Optional. The type of clarification question. + * Optional. Deprecated: The parent message is deprecated. + * The type of clarification question. * } */ public function __construct($data = NULL) { @@ -64,25 +78,33 @@ public function __construct($data = NULL) { } /** - * Required. The natural language question to ask the user. + * Required. Deprecated: The parent message is deprecated. + * The natural language question to ask the user. * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field string question = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * @return string + * @deprecated */ public function getQuestion() { + if ($this->question !== '') { + @trigger_error('question is deprecated.', E_USER_DEPRECATED); + } return $this->question; } /** - * Required. The natural language question to ask the user. + * Required. Deprecated: The parent message is deprecated. + * The natural language question to ask the user. * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field string question = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this + * @deprecated */ public function setQuestion($var) { + @trigger_error('question is deprecated.', E_USER_DEPRECATED); GPBUtil::checkString($var, True); $this->question = $var; @@ -90,25 +112,33 @@ public function setQuestion($var) } /** - * Required. The selection mode for this question. + * Required. Deprecated: The parent message is deprecated. + * The selection mode for this question. * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * @return int + * @deprecated */ public function getSelectionMode() { + if ($this->selection_mode !== 0) { + @trigger_error('selection_mode is deprecated.', E_USER_DEPRECATED); + } return $this->selection_mode; } /** - * Required. The selection mode for this question. + * Required. Deprecated: The parent message is deprecated. + * The selection mode for this question. * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * @param int $var * @return $this + * @deprecated */ public function setSelectionMode($var) { + @trigger_error('selection_mode is deprecated.', E_USER_DEPRECATED); GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationQuestion\SelectionMode::class); $this->selection_mode = $var; @@ -116,53 +146,71 @@ public function setSelectionMode($var) } /** - * Required. A list of distinct options for the user to choose from. + * Required. Deprecated: The parent message is deprecated. + * A list of distinct options for the user to choose from. * The number of options is limited to a maximum of 5. * - * Generated from protobuf field repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field repeated string options = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * @return RepeatedField + * @deprecated */ public function getOptions() { + if ($this->options->count() !== 0) { + @trigger_error('options is deprecated.', E_USER_DEPRECATED); + } return $this->options; } /** - * Required. A list of distinct options for the user to choose from. + * Required. Deprecated: The parent message is deprecated. + * A list of distinct options for the user to choose from. * The number of options is limited to a maximum of 5. * - * Generated from protobuf field repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field repeated string options = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * @param string[] $var * @return $this + * @deprecated */ public function setOptions($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + if ($arr->count() !== 0) { + @trigger_error('options is deprecated.', E_USER_DEPRECATED); + } $this->options = $arr; return $this; } /** - * Optional. The type of clarification question. + * Optional. Deprecated: The parent message is deprecated. + * The type of clarification question. * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return int + * @deprecated */ public function getClarificationQuestionType() { + if ($this->clarification_question_type !== 0) { + @trigger_error('clarification_question_type is deprecated.', E_USER_DEPRECATED); + } return $this->clarification_question_type; } /** - * Optional. The type of clarification question. + * Optional. Deprecated: The parent message is deprecated. + * The type of clarification question. * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this + * @deprecated */ public function setClarificationQuestionType($var) { + @trigger_error('clarification_question_type is deprecated.', E_USER_DEPRECATED); GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationQuestion\ClarificationQuestionType::class); $this->clarification_question_type = $var; diff --git a/GeminiDataAnalytics/src/V1beta/ClarificationQuestion/ClarificationQuestionType.php b/GeminiDataAnalytics/src/V1beta/ClarificationQuestion/ClarificationQuestionType.php index d7437b20ca2e..f0d80de24953 100644 --- a/GeminiDataAnalytics/src/V1beta/ClarificationQuestion/ClarificationQuestionType.php +++ b/GeminiDataAnalytics/src/V1beta/ClarificationQuestion/ClarificationQuestionType.php @@ -7,6 +7,8 @@ use UnexpectedValueException; /** + * @deprecated + * Deprecated: The parent message is deprecated. * The type of clarification question. * This enum may be extended with new values in the future. * @@ -15,23 +17,26 @@ class ClarificationQuestionType { /** + * Deprecated: The parent message is deprecated. * Unspecified clarification question type. * - * Generated from protobuf enum CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0; + * Generated from protobuf enum CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0 [deprecated = true]; */ const CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0; /** + * Deprecated: The parent message is deprecated. * The clarification question is for filter values. * - * Generated from protobuf enum FILTER_VALUES = 1; + * Generated from protobuf enum FILTER_VALUES = 1 [deprecated = true]; */ const FILTER_VALUES = 1; /** + * Deprecated: The parent message is deprecated. * The clarification question is for data fields. This is a generic term * encompassing SQL columns, Looker fields (dimensions/measures), or * nested data structure properties. * - * Generated from protobuf enum FIELDS = 2; + * Generated from protobuf enum FIELDS = 2 [deprecated = true]; */ const FIELDS = 2; diff --git a/GeminiDataAnalytics/src/V1beta/ClarificationQuestion/SelectionMode.php b/GeminiDataAnalytics/src/V1beta/ClarificationQuestion/SelectionMode.php index f15bec20dd75..31c4f4e53289 100644 --- a/GeminiDataAnalytics/src/V1beta/ClarificationQuestion/SelectionMode.php +++ b/GeminiDataAnalytics/src/V1beta/ClarificationQuestion/SelectionMode.php @@ -7,6 +7,8 @@ use UnexpectedValueException; /** + * @deprecated + * Deprecated: The parent message is deprecated. * The selection mode for the clarification question. * * Protobuf type google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode @@ -14,21 +16,24 @@ class SelectionMode { /** + * Deprecated: The parent message is deprecated. * Unspecified selection mode. * - * Generated from protobuf enum SELECTION_MODE_UNSPECIFIED = 0; + * Generated from protobuf enum SELECTION_MODE_UNSPECIFIED = 0 [deprecated = true]; */ const SELECTION_MODE_UNSPECIFIED = 0; /** + * Deprecated: The parent message is deprecated. * The user can select only one option. * - * Generated from protobuf enum SINGLE_SELECT = 1; + * Generated from protobuf enum SINGLE_SELECT = 1 [deprecated = true]; */ const SINGLE_SELECT = 1; /** + * Deprecated: The parent message is deprecated. * The user can select multiple options. * - * Generated from protobuf enum MULTI_SELECT = 2; + * Generated from protobuf enum MULTI_SELECT = 2 [deprecated = true]; */ const MULTI_SELECT = 2; diff --git a/GeminiDataAnalytics/src/V1beta/Client/DataAgentServiceClient.php b/GeminiDataAnalytics/src/V1beta/Client/DataAgentServiceClient.php index 25ff16ef89f3..bd896da2414d 100644 --- a/GeminiDataAnalytics/src/V1beta/Client/DataAgentServiceClient.php +++ b/GeminiDataAnalytics/src/V1beta/Client/DataAgentServiceClient.php @@ -182,6 +182,29 @@ private function createOperationsClient(array $options) return new OperationsClient($options); } + /** + * Formats a string containing the fully-qualified path to represent a crypto_key + * resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * + * @return string The formatted crypto_key resource. + * + * @experimental + */ + public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string + { + return self::getPathTemplate('cryptoKey')->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a data_agent * resource. @@ -226,6 +249,7 @@ public static function locationName(string $project, string $location): string * Parses a formatted name string and returns an associative array of the components in the name. * The following name formats are supported: * Template: Pattern + * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} * - dataAgent: projects/{project}/locations/{location}/dataAgents/{data_agent} * - location: projects/{project}/locations/{location} * @@ -677,13 +701,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = [] /** * Lists information about the supported locations for this service. - This method can be called in two ways: - * **List all public locations:** Use the path `GET /v1/locations`. - * **List project-visible locations:** Use the path - `GET /v1/projects/{project_id}/locations`. This may include public - locations as well as private or other locations specifically visible - to the project. + This method lists locations based on the resource scope provided in + the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * + **Global locations**: If `name` is empty, the method lists the + public locations available to all projects. * **Project-specific + locations**: If `name` follows the format + `projects/{project}`, the method lists locations visible to that + specific project. This includes public, private, or other + project-specific locations enabled for the project. + + For gRPC and client library implementations, the resource name is + passed as the `name` field. For direct service calls, the resource + name is + incorporated into the request path based on the specific service + implementation and version. * * The async variant is {@see DataAgentServiceClient::listLocationsAsync()} . * diff --git a/GeminiDataAnalytics/src/V1beta/Client/DataChatServiceClient.php b/GeminiDataAnalytics/src/V1beta/Client/DataChatServiceClient.php index 041f2c05220d..185b6ae4a37b 100644 --- a/GeminiDataAnalytics/src/V1beta/Client/DataChatServiceClient.php +++ b/GeminiDataAnalytics/src/V1beta/Client/DataChatServiceClient.php @@ -144,6 +144,29 @@ public static function conversationName(string $project, string $location, strin ]); } + /** + * Formats a string containing the fully-qualified path to represent a crypto_key + * resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * + * @return string The formatted crypto_key resource. + * + * @experimental + */ + public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string + { + return self::getPathTemplate('cryptoKey')->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a data_agent * resource. @@ -206,6 +229,7 @@ public static function projectName(string $project): string * The following name formats are supported: * Template: Pattern * - conversation: projects/{project}/locations/{location}/conversations/{conversation} + * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} * - dataAgent: projects/{project}/locations/{location}/dataAgents/{data_agent} * - location: projects/{project}/locations/{location} * - project: projects/{project} @@ -319,7 +343,7 @@ public function __call($method, $args) /** * Answers a data question by generating a stream of - * [Message][google.cloud.geminidataanalytics.v1alpha.Message] objects. + * [Message][google.cloud.geminidataanalytics.v1.Message] objects. * * @example samples/V1beta/DataChatServiceClient/chat.php * @@ -539,13 +563,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = [] /** * Lists information about the supported locations for this service. - This method can be called in two ways: - * **List all public locations:** Use the path `GET /v1/locations`. - * **List project-visible locations:** Use the path - `GET /v1/projects/{project_id}/locations`. This may include public - locations as well as private or other locations specifically visible - to the project. + This method lists locations based on the resource scope provided in + the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * + **Global locations**: If `name` is empty, the method lists the + public locations available to all projects. * **Project-specific + locations**: If `name` follows the format + `projects/{project}`, the method lists locations visible to that + specific project. This includes public, private, or other + project-specific locations enabled for the project. + + For gRPC and client library implementations, the resource name is + passed as the `name` field. For direct service calls, the resource + name is + incorporated into the request path based on the specific service + implementation and version. * * The async variant is {@see DataChatServiceClient::listLocationsAsync()} . * diff --git a/GeminiDataAnalytics/src/V1beta/CloudSqlDatabaseReference.php b/GeminiDataAnalytics/src/V1beta/CloudSqlDatabaseReference.php index 7242d3fd3af9..121a147ec7d8 100644 --- a/GeminiDataAnalytics/src/V1beta/CloudSqlDatabaseReference.php +++ b/GeminiDataAnalytics/src/V1beta/CloudSqlDatabaseReference.php @@ -51,6 +51,14 @@ class CloudSqlDatabaseReference extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private $table_ids; + /** + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $database_table_references; /** * Constructor. @@ -70,6 +78,10 @@ class CloudSqlDatabaseReference extends \Google\Protobuf\Internal\Message * Required. The database id. * @type string[] $table_ids * Optional. The table ids. Denotes all tables if unset. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference[] $database_table_references + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. * } */ public function __construct($data = NULL) { @@ -233,5 +245,35 @@ public function setTableIds($var) return $this; } + /** + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference> + */ + public function getDatabaseTableReferences() + { + return $this->database_table_references; + } + + /** + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference[] $var + * @return $this + */ + public function setDatabaseTableReferences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference::class); + $this->database_table_references = $arr; + + return $this; + } + } diff --git a/GeminiDataAnalytics/src/V1beta/Context.php b/GeminiDataAnalytics/src/V1beta/Context.php index 67d08004d39c..7c639c3b017a 100644 --- a/GeminiDataAnalytics/src/V1beta/Context.php +++ b/GeminiDataAnalytics/src/V1beta/Context.php @@ -40,7 +40,8 @@ class Context extends \Google\Protobuf\Internal\Message /** * Optional. A list of example queries, providing examples of relevant and * commonly used SQL queries and their corresponding natural language queries - * optionally present. Currently only used for BigQuery data sources. + * optionally present. Currently only used for BigQuery data sources and + * databases (alloydb, cloudsql, spanner) data sources. * * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -48,13 +49,14 @@ class Context extends \Google\Protobuf\Internal\Message /** * Optional. A list of golden queries, providing examples of relevant and * commonly used Looker queries and their corresponding natural language - * queries optionally present. + * queries optionally present. Only supported for Looker data sources. * * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerGoldenQuery looker_golden_queries = 11 [(.google.api.field_behavior) = OPTIONAL]; */ private $looker_golden_queries; /** * Optional. Term definitions (currently, only user authored) + * Not supported for databases (alloydb, cloudsql, spanner) data sources. * * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -66,6 +68,12 @@ class Context extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; */ private $schema_relationships; + /** + * Optional. A collection of user functions to be included in context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.UserFunctions user_functions = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $user_functions = null; /** * Constructor. @@ -86,16 +94,20 @@ class Context extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery[] $example_queries * Optional. A list of example queries, providing examples of relevant and * commonly used SQL queries and their corresponding natural language queries - * optionally present. Currently only used for BigQuery data sources. + * optionally present. Currently only used for BigQuery data sources and + * databases (alloydb, cloudsql, spanner) data sources. * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerGoldenQuery[] $looker_golden_queries * Optional. A list of golden queries, providing examples of relevant and * commonly used Looker queries and their corresponding natural language - * queries optionally present. + * queries optionally present. Only supported for Looker data sources. * @type \Google\Cloud\GeminiDataAnalytics\V1beta\GlossaryTerm[] $glossary_terms * Optional. Term definitions (currently, only user authored) + * Not supported for databases (alloydb, cloudsql, spanner) data sources. * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship[] $schema_relationships * Optional. Relationships between table schema, including referencing and * referenced columns. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\UserFunctions $user_functions + * Optional. A collection of user functions to be included in context. * } */ public function __construct($data = NULL) { @@ -212,7 +224,8 @@ public function setOptions($var) /** * Optional. A list of example queries, providing examples of relevant and * commonly used SQL queries and their corresponding natural language queries - * optionally present. Currently only used for BigQuery data sources. + * optionally present. Currently only used for BigQuery data sources and + * databases (alloydb, cloudsql, spanner) data sources. * * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery> @@ -225,7 +238,8 @@ public function getExampleQueries() /** * Optional. A list of example queries, providing examples of relevant and * commonly used SQL queries and their corresponding natural language queries - * optionally present. Currently only used for BigQuery data sources. + * optionally present. Currently only used for BigQuery data sources and + * databases (alloydb, cloudsql, spanner) data sources. * * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery[] $var @@ -242,7 +256,7 @@ public function setExampleQueries($var) /** * Optional. A list of golden queries, providing examples of relevant and * commonly used Looker queries and their corresponding natural language - * queries optionally present. + * queries optionally present. Only supported for Looker data sources. * * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerGoldenQuery looker_golden_queries = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\LookerGoldenQuery> @@ -255,7 +269,7 @@ public function getLookerGoldenQueries() /** * Optional. A list of golden queries, providing examples of relevant and * commonly used Looker queries and their corresponding natural language - * queries optionally present. + * queries optionally present. Only supported for Looker data sources. * * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerGoldenQuery looker_golden_queries = 11 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerGoldenQuery[] $var @@ -271,6 +285,7 @@ public function setLookerGoldenQueries($var) /** * Optional. Term definitions (currently, only user authored) + * Not supported for databases (alloydb, cloudsql, spanner) data sources. * * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\GlossaryTerm> @@ -282,6 +297,7 @@ public function getGlossaryTerms() /** * Optional. Term definitions (currently, only user authored) + * Not supported for databases (alloydb, cloudsql, spanner) data sources. * * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\GeminiDataAnalytics\V1beta\GlossaryTerm[] $var @@ -323,5 +339,41 @@ public function setSchemaRelationships($var) return $this; } + /** + * Optional. A collection of user functions to be included in context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.UserFunctions user_functions = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\UserFunctions|null + */ + public function getUserFunctions() + { + return $this->user_functions; + } + + public function hasUserFunctions() + { + return isset($this->user_functions); + } + + public function clearUserFunctions() + { + unset($this->user_functions); + } + + /** + * Optional. A collection of user functions to be included in context. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.UserFunctions user_functions = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\UserFunctions $var + * @return $this + */ + public function setUserFunctions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\UserFunctions::class); + $this->user_functions = $var; + + return $this; + } + } diff --git a/GeminiDataAnalytics/src/V1beta/Context/SchemaRelationship.php b/GeminiDataAnalytics/src/V1beta/Context/SchemaRelationship.php index 1d42a66f4821..91d7350cd5f2 100644 --- a/GeminiDataAnalytics/src/V1beta/Context/SchemaRelationship.php +++ b/GeminiDataAnalytics/src/V1beta/Context/SchemaRelationship.php @@ -36,16 +36,16 @@ class SchemaRelationship extends \Google\Protobuf\Internal\Message */ protected $right_schema_paths = null; /** - * Sources which generated the schema relation edge. + * Optional. Sources which generated the schema relation edge. * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $sources; /** - * A confidence score for the suggested relationship. + * Optional. A confidence score for the suggested relationship. * Manually added edges have the highest confidence score. * - * Generated from protobuf field float confidence_score = 4; + * Generated from protobuf field float confidence_score = 4 [(.google.api.field_behavior) = OPTIONAL]; */ protected $confidence_score = 0.0; @@ -66,9 +66,9 @@ class SchemaRelationship extends \Google\Protobuf\Internal\Message * Each field at index i in this list must correspond to a field at the same * index in the `left_schema_paths` list. * @type int[] $sources - * Sources which generated the schema relation edge. + * Optional. Sources which generated the schema relation edge. * @type float $confidence_score - * A confidence score for the suggested relationship. + * Optional. A confidence score for the suggested relationship. * Manually added edges have the highest confidence score. * } */ @@ -162,9 +162,9 @@ public function setRightSchemaPaths($var) } /** - * Sources which generated the schema relation edge. + * Optional. Sources which generated the schema relation edge. * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return RepeatedField */ public function getSources() @@ -173,9 +173,9 @@ public function getSources() } /** - * Sources which generated the schema relation edge. + * Optional. Sources which generated the schema relation edge. * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param int[] $var * @return $this */ @@ -188,10 +188,10 @@ public function setSources($var) } /** - * A confidence score for the suggested relationship. + * Optional. A confidence score for the suggested relationship. * Manually added edges have the highest confidence score. * - * Generated from protobuf field float confidence_score = 4; + * Generated from protobuf field float confidence_score = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return float */ public function getConfidenceScore() @@ -200,10 +200,10 @@ public function getConfidenceScore() } /** - * A confidence score for the suggested relationship. + * Optional. A confidence score for the suggested relationship. * Manually added edges have the highest confidence score. * - * Generated from protobuf field float confidence_score = 4; + * Generated from protobuf field float confidence_score = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param float $var * @return $this */ diff --git a/GeminiDataAnalytics/src/V1beta/Conversation.php b/GeminiDataAnalytics/src/V1beta/Conversation.php index f8f5452b404d..7998a3c31727 100644 --- a/GeminiDataAnalytics/src/V1beta/Conversation.php +++ b/GeminiDataAnalytics/src/V1beta/Conversation.php @@ -59,6 +59,22 @@ class Conversation extends \Google\Protobuf\Internal\Message * Generated from protobuf field map labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ private $labels; + /** + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * Conversation resources. Encryption will happen at Titan layer, we will pass + * the KMS key to Titan. + * Format: + * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. + * + * Generated from protobuf field optional string kms_key = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $kms_key = null; + /** + * Optional. Whether memory is paused for this conversation. + * + * Generated from protobuf field optional bool memory_paused = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $memory_paused = null; /** * Constructor. @@ -90,6 +106,14 @@ class Conversation extends \Google\Protobuf\Internal\Message * Optional. Open-ended and user-defined labels that can be set by the client * to tag a conversation (e.g. to filter conversations for specific * surfaces/products). + * @type string $kms_key + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * Conversation resources. Encryption will happen at Titan layer, we will pass + * the KMS key to Titan. + * Format: + * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. + * @type bool $memory_paused + * Optional. Whether memory is paused for this conversation. * } */ public function __construct($data = NULL) { @@ -275,5 +299,85 @@ public function setLabels($var) return $this; } + /** + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * Conversation resources. Encryption will happen at Titan layer, we will pass + * the KMS key to Titan. + * Format: + * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. + * + * Generated from protobuf field optional string kms_key = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getKmsKey() + { + return isset($this->kms_key) ? $this->kms_key : ''; + } + + public function hasKmsKey() + { + return isset($this->kms_key); + } + + public function clearKmsKey() + { + unset($this->kms_key); + } + + /** + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * Conversation resources. Encryption will happen at Titan layer, we will pass + * the KMS key to Titan. + * Format: + * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. + * + * Generated from protobuf field optional string kms_key = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setKmsKey($var) + { + GPBUtil::checkString($var, True); + $this->kms_key = $var; + + return $this; + } + + /** + * Optional. Whether memory is paused for this conversation. + * + * Generated from protobuf field optional bool memory_paused = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getMemoryPaused() + { + return isset($this->memory_paused) ? $this->memory_paused : false; + } + + public function hasMemoryPaused() + { + return isset($this->memory_paused); + } + + public function clearMemoryPaused() + { + unset($this->memory_paused); + } + + /** + * Optional. Whether memory is paused for this conversation. + * + * Generated from protobuf field optional bool memory_paused = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setMemoryPaused($var) + { + GPBUtil::checkBool($var); + $this->memory_paused = $var; + + return $this; + } + } diff --git a/GeminiDataAnalytics/src/V1beta/ConversationOptions.php b/GeminiDataAnalytics/src/V1beta/ConversationOptions.php index 7d93d98950fa..cc5be0c1684c 100644 --- a/GeminiDataAnalytics/src/V1beta/ConversationOptions.php +++ b/GeminiDataAnalytics/src/V1beta/ConversationOptions.php @@ -33,6 +33,12 @@ class ConversationOptions extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; */ protected $datasource = null; + /** + * Optional. The model to use for the agent loop. + * + * Generated from protobuf field optional .google.cloud.geminidataanalytics.v1beta.ConversationOptions.Model model = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $model = null; /** * Constructor. @@ -46,6 +52,8 @@ class ConversationOptions extends \Google\Protobuf\Internal\Message * Optional. Options for analysis. * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceOptions $datasource * Optional. Options for datasources. + * @type int $model + * Optional. The model to use for the agent loop. * } */ public function __construct($data = NULL) { @@ -161,5 +169,41 @@ public function setDatasource($var) return $this; } + /** + * Optional. The model to use for the agent loop. + * + * Generated from protobuf field optional .google.cloud.geminidataanalytics.v1beta.ConversationOptions.Model model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getModel() + { + return isset($this->model) ? $this->model : 0; + } + + public function hasModel() + { + return isset($this->model); + } + + public function clearModel() + { + unset($this->model); + } + + /** + * Optional. The model to use for the agent loop. + * + * Generated from protobuf field optional .google.cloud.geminidataanalytics.v1beta.ConversationOptions.Model model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setModel($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationOptions\Model::class); + $this->model = $var; + + return $this; + } + } diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationOptions/Model.php b/GeminiDataAnalytics/src/V1beta/ConversationOptions/Model.php similarity index 100% rename from owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationOptions/Model.php rename to GeminiDataAnalytics/src/V1beta/ConversationOptions/Model.php diff --git a/GeminiDataAnalytics/src/V1beta/DataAgent.php b/GeminiDataAnalytics/src/V1beta/DataAgent.php index 2303c68c76b5..2b7479ea2d1b 100644 --- a/GeminiDataAnalytics/src/V1beta/DataAgent.php +++ b/GeminiDataAnalytics/src/V1beta/DataAgent.php @@ -81,6 +81,15 @@ class DataAgent extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.protobuf.Timestamp purge_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $purge_time = null; + /** + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location + * as the DataAgent. The expected format is + * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. + * + * Generated from protobuf field optional string kms_key = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $kms_key = null; protected $type; /** @@ -125,6 +134,11 @@ class DataAgent extends \Google\Protobuf\Internal\Message * Output only. Timestamp in UTC of when this data agent is considered * expired. This is *always* provided on output, regardless of what was sent * on input. + * @type string $kms_key + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location + * as the DataAgent. The expected format is + * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. * } */ public function __construct($data = NULL) { @@ -447,6 +461,48 @@ public function setPurgeTime($var) return $this; } + /** + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location + * as the DataAgent. The expected format is + * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. + * + * Generated from protobuf field optional string kms_key = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getKmsKey() + { + return isset($this->kms_key) ? $this->kms_key : ''; + } + + public function hasKmsKey() + { + return isset($this->kms_key); + } + + public function clearKmsKey() + { + unset($this->kms_key); + } + + /** + * Optional. Customer managed encryption key (CMEK) to use for encrypting the + * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location + * as the DataAgent. The expected format is + * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. + * + * Generated from protobuf field optional string kms_key = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setKmsKey($var) + { + GPBUtil::checkString($var, True); + $this->kms_key = $var; + + return $this; + } + /** * @return string */ diff --git a/GeminiDataAnalytics/src/V1beta/DataAgentContext.php b/GeminiDataAnalytics/src/V1beta/DataAgentContext.php index e58a46050365..0a4f9414e7ff 100644 --- a/GeminiDataAnalytics/src/V1beta/DataAgentContext.php +++ b/GeminiDataAnalytics/src/V1beta/DataAgentContext.php @@ -22,13 +22,15 @@ class DataAgentContext extends \Google\Protobuf\Internal\Message */ protected $data_agent = ''; /** - * Optional. The credentials to use when calling the Looker data source. + * Optional. Deprecated: Use credentials in ChatRequest. + * The credentials to use when calling the Looker data source. * Currently supports both OAuth token and API key-based credentials, as * described in * [Authentication with an * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated */ protected $credentials = null; /** @@ -47,7 +49,8 @@ class DataAgentContext extends \Google\Protobuf\Internal\Message * @type string $data_agent * Required. The name of the data agent resource. * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials $credentials - * Optional. The credentials to use when calling the Looker data source. + * Optional. Deprecated: Use credentials in ChatRequest. + * The credentials to use when calling the Looker data source. * Currently supports both OAuth token and API key-based credentials, as * described in * [Authentication with an @@ -88,43 +91,55 @@ public function setDataAgent($var) } /** - * Optional. The credentials to use when calling the Looker data source. + * Optional. Deprecated: Use credentials in ChatRequest. + * The credentials to use when calling the Looker data source. * Currently supports both OAuth token and API key-based credentials, as * described in * [Authentication with an * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials|null + * @deprecated */ public function getCredentials() { + if (isset($this->credentials)) { + @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); + } return $this->credentials; } public function hasCredentials() { + if (isset($this->credentials)) { + @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); + } return isset($this->credentials); } public function clearCredentials() { + @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); unset($this->credentials); } /** - * Optional. The credentials to use when calling the Looker data source. + * Optional. Deprecated: Use credentials in ChatRequest. + * The credentials to use when calling the Looker data source. * Currently supports both OAuth token and API key-based credentials, as * described in * [Authentication with an * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials $var * @return $this + * @deprecated */ public function setCredentials($var) { + @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials::class); $this->credentials = $var; diff --git a/GeminiDataAnalytics/src/V1beta/DataMessage.php b/GeminiDataAnalytics/src/V1beta/DataMessage.php index 4a7784763d95..0e7f2551c8da 100644 --- a/GeminiDataAnalytics/src/V1beta/DataMessage.php +++ b/GeminiDataAnalytics/src/V1beta/DataMessage.php @@ -30,10 +30,12 @@ class DataMessage extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataResult $result * Retrieved data. * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery $generated_looker_query - * Looker Query generated by the system to retrieve data. * Deprecated: generated looker query is now under DataQuery.looker. + * Looker Query generated by the system to retrieve data. * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryJob $big_query_job * A BigQuery job executed by the system to retrieve data. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\MatchedQuery $matched_query + * A pre-existing query that was matched to retrieve data. * } */ public function __construct($data = NULL) { @@ -135,8 +137,8 @@ public function setResult($var) } /** - * Looker Query generated by the system to retrieve data. * Deprecated: generated looker query is now under DataQuery.looker. + * Looker Query generated by the system to retrieve data. * * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; * @return \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery|null @@ -159,8 +161,8 @@ public function hasGeneratedLookerQuery() } /** - * Looker Query generated by the system to retrieve data. * Deprecated: generated looker query is now under DataQuery.looker. + * Looker Query generated by the system to retrieve data. * * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery $var @@ -207,6 +209,37 @@ public function setBigQueryJob($var) return $this; } + /** + * A pre-existing query that was matched to retrieve data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.MatchedQuery matched_query = 6; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\MatchedQuery|null + */ + public function getMatchedQuery() + { + return $this->readOneof(6); + } + + public function hasMatchedQuery() + { + return $this->hasOneof(6); + } + + /** + * A pre-existing query that was matched to retrieve data. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.MatchedQuery matched_query = 6; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\MatchedQuery $var + * @return $this + */ + public function setMatchedQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\MatchedQuery::class); + $this->writeOneof(6, $var); + + return $this; + } + /** * @return string */ diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatabaseTableReference.php b/GeminiDataAnalytics/src/V1beta/DatabaseTableReference.php similarity index 100% rename from owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatabaseTableReference.php rename to GeminiDataAnalytics/src/V1beta/DatabaseTableReference.php diff --git a/GeminiDataAnalytics/src/V1beta/Datasource.php b/GeminiDataAnalytics/src/V1beta/Datasource.php index 15247b54210f..c2bffe5ab7b5 100644 --- a/GeminiDataAnalytics/src/V1beta/Datasource.php +++ b/GeminiDataAnalytics/src/V1beta/Datasource.php @@ -51,6 +51,8 @@ class Datasource extends \Google\Protobuf\Internal\Message * A reference to a Spanner database. * @type \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlReference $cloud_sql_reference * A reference to a CloudSQL database. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference $bigquery_property_graph_reference + * A reference to a BigQuery property graph. * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $schema * Optional. The schema of the datasource. * @type \Google\Protobuf\Struct $struct_schema @@ -252,6 +254,37 @@ public function setCloudSqlReference($var) return $this; } + /** + * A reference to a BigQuery property graph. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReference bigquery_property_graph_reference = 16; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference|null + */ + public function getBigqueryPropertyGraphReference() + { + return $this->readOneof(16); + } + + public function hasBigqueryPropertyGraphReference() + { + return $this->hasOneof(16); + } + + /** + * A reference to a BigQuery property graph. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReference bigquery_property_graph_reference = 16; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference $var + * @return $this + */ + public function setBigqueryPropertyGraphReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference::class); + $this->writeOneof(16, $var); + + return $this; + } + /** * Optional. The schema of the datasource. * diff --git a/GeminiDataAnalytics/src/V1beta/ExampleQuery.php b/GeminiDataAnalytics/src/V1beta/ExampleQuery.php index 675d917c06df..8fa837a7aed7 100644 --- a/GeminiDataAnalytics/src/V1beta/ExampleQuery.php +++ b/GeminiDataAnalytics/src/V1beta/ExampleQuery.php @@ -24,6 +24,15 @@ class ExampleQuery extends \Google\Protobuf\Internal\Message * Generated from protobuf field string natural_language_question = 1 [(.google.api.field_behavior) = OPTIONAL]; */ protected $natural_language_question = ''; + /** + * Optional. The list of query parameters. + * Example: The parameterized SQL query + * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of + * id. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.QueryParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $parameters; protected $query; /** @@ -39,6 +48,11 @@ class ExampleQuery extends \Google\Protobuf\Internal\Message * @type string $natural_language_question * Optional. A natural language question that a user might ask. * For example: "How many orders were placed last month?" + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\QueryParameter[] $parameters + * Optional. The list of query parameters. + * Example: The parameterized SQL query + * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of + * id. * } */ public function __construct($data = NULL) { @@ -109,6 +123,38 @@ public function setNaturalLanguageQuestion($var) return $this; } + /** + * Optional. The list of query parameters. + * Example: The parameterized SQL query + * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of + * id. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.QueryParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\QueryParameter> + */ + public function getParameters() + { + return $this->parameters; + } + + /** + * Optional. The list of query parameters. + * Example: The parameterized SQL query + * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of + * id. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.QueryParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\QueryParameter[] $var + * @return $this + */ + public function setParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\QueryParameter::class); + $this->parameters = $arr; + + return $this; + } + /** * @return string */ diff --git a/GeminiDataAnalytics/src/V1beta/Field.php b/GeminiDataAnalytics/src/V1beta/Field.php index eb926f132d48..dea0c89210ed 100644 --- a/GeminiDataAnalytics/src/V1beta/Field.php +++ b/GeminiDataAnalytics/src/V1beta/Field.php @@ -69,8 +69,6 @@ class Field extends \Google\Protobuf\Internal\Message private $subfields; /** * Optional. Field category, not required, currently only useful for Looker. - * We are using a string to avoid depending on an external package and keep - * this package self-contained. * * Generated from protobuf field string category = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -112,8 +110,6 @@ class Field extends \Google\Protobuf\Internal\Message * Optional. Recursive property for nested schema structures. * @type string $category * Optional. Field category, not required, currently only useful for Looker. - * We are using a string to avoid depending on an external package and keep - * this package self-contained. * @type string $value_format * Optional. Looker only. Value format of the field. * Ref: @@ -343,8 +339,6 @@ public function setSubfields($var) /** * Optional. Field category, not required, currently only useful for Looker. - * We are using a string to avoid depending on an external package and keep - * this package self-contained. * * Generated from protobuf field string category = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -356,8 +350,6 @@ public function getCategory() /** * Optional. Field category, not required, currently only useful for Looker. - * We are using a string to avoid depending on an external package and keep - * this package self-contained. * * Generated from protobuf field string category = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/GeminiDataAnalytics/src/V1beta/ListConversationsRequest.php b/GeminiDataAnalytics/src/V1beta/ListConversationsRequest.php index 57b9444ec37e..12ad4ed74775 100644 --- a/GeminiDataAnalytics/src/V1beta/ListConversationsRequest.php +++ b/GeminiDataAnalytics/src/V1beta/ListConversationsRequest.php @@ -24,8 +24,9 @@ class ListConversationsRequest extends \Google\Protobuf\Internal\Message protected $parent = ''; /** * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is 100. All larger page sizes will be coerced - * to 100. If unspecified, server will pick 50 as an approperiate default. + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -72,8 +73,9 @@ public static function build(string $parent): self * Format: `projects/{project}/locations/{location}` * @type int $page_size * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is 100. All larger page sizes will be coerced - * to 100. If unspecified, server will pick 50 as an approperiate default. + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. * @type string $page_token * Optional. A token identifying a page of results the server should return. * @type string $filter @@ -118,8 +120,9 @@ public function setParent($var) /** * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is 100. All larger page sizes will be coerced - * to 100. If unspecified, server will pick 50 as an approperiate default. + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -131,8 +134,9 @@ public function getPageSize() /** * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is 100. All larger page sizes will be coerced - * to 100. If unspecified, server will pick 50 as an approperiate default. + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/GeminiDataAnalytics/src/V1beta/ListMessagesRequest.php b/GeminiDataAnalytics/src/V1beta/ListMessagesRequest.php index 7161de0998a2..e4bc1cf4f2b4 100644 --- a/GeminiDataAnalytics/src/V1beta/ListMessagesRequest.php +++ b/GeminiDataAnalytics/src/V1beta/ListMessagesRequest.php @@ -25,8 +25,9 @@ class ListMessagesRequest extends \Google\Protobuf\Internal\Message protected $parent = ''; /** * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is 100. All larger page sizes will be coerced - * to 100. If unspecified, server will pick 50 as an approperiate default. + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. * * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -76,8 +77,9 @@ public static function build(string $parent): self * `projects/{project}/locations/{location}/conversations/{conversation_id}` * @type int $page_size * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is 100. All larger page sizes will be coerced - * to 100. If unspecified, server will pick 50 as an approperiate default. + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. * @type string $page_token * Optional. A token identifying a page of results the server should return. * @type string $filter @@ -125,8 +127,9 @@ public function setParent($var) /** * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is 100. All larger page sizes will be coerced - * to 100. If unspecified, server will pick 50 as an approperiate default. + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. * * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -138,8 +141,9 @@ public function getPageSize() /** * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is 100. All larger page sizes will be coerced - * to 100. If unspecified, server will pick 50 as an approperiate default. + * requested. The max page size is `100`. All larger page sizes will be + * coerced to `100`. If unspecified, server will pick `50` as an appropriate + * default. * * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/GeminiDataAnalytics/src/V1beta/LookerExploreReferences.php b/GeminiDataAnalytics/src/V1beta/LookerExploreReferences.php index d29c4813d3f8..2f6d629e313e 100644 --- a/GeminiDataAnalytics/src/V1beta/LookerExploreReferences.php +++ b/GeminiDataAnalytics/src/V1beta/LookerExploreReferences.php @@ -22,13 +22,15 @@ class LookerExploreReferences extends \Google\Protobuf\Internal\Message */ private $explore_references; /** - * Optional. The credentials to use when calling the Looker API. + * Optional. Deprecated: Use credentials in ChatRequest. + * The credentials to use when calling the Looker API. * Currently supports both OAuth token and API key-based credentials, as * described in * [Authentication with an * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated */ protected $credentials = null; @@ -41,7 +43,8 @@ class LookerExploreReferences extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReference[] $explore_references * Required. References to Looker explores. * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials $credentials - * Optional. The credentials to use when calling the Looker API. + * Optional. Deprecated: Use credentials in ChatRequest. + * The credentials to use when calling the Looker API. * Currently supports both OAuth token and API key-based credentials, as * described in * [Authentication with an @@ -80,43 +83,55 @@ public function setExploreReferences($var) } /** - * Optional. The credentials to use when calling the Looker API. + * Optional. Deprecated: Use credentials in ChatRequest. + * The credentials to use when calling the Looker API. * Currently supports both OAuth token and API key-based credentials, as * described in * [Authentication with an * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials|null + * @deprecated */ public function getCredentials() { + if (isset($this->credentials)) { + @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); + } return $this->credentials; } public function hasCredentials() { + if (isset($this->credentials)) { + @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); + } return isset($this->credentials); } public function clearCredentials() { + @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); unset($this->credentials); } /** - * Optional. The credentials to use when calling the Looker API. + * Optional. Deprecated: Use credentials in ChatRequest. + * The credentials to use when calling the Looker API. * Currently supports both OAuth token and API key-based credentials, as * described in * [Authentication with an * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials $var * @return $this + * @deprecated */ public function setCredentials($var) { + @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials::class); $this->credentials = $var; diff --git a/GeminiDataAnalytics/src/V1beta/LookerQuery.php b/GeminiDataAnalytics/src/V1beta/LookerQuery.php index 1d3b58e0b213..e9af2dac06e7 100644 --- a/GeminiDataAnalytics/src/V1beta/LookerQuery.php +++ b/GeminiDataAnalytics/src/V1beta/LookerQuery.php @@ -53,6 +53,22 @@ class LookerQuery extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional string limit = 6 [(.google.api.field_behavior) = OPTIONAL]; */ protected $limit = null; + /** + * Optional. The primary identifier for the query resource in Looker, used for + * API operations. Maps to `id` (or `slug`) in the Looker API `Query` + * resource. + * + * Generated from protobuf field optional string query_id = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $query_id = null; + /** + * Optional. The short alphanumeric identifier for the query, used for share + * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` + * in the Looker API `Query` resource. + * + * Generated from protobuf field optional string client_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $client_id = null; /** * Constructor. @@ -72,6 +88,14 @@ class LookerQuery extends \Google\Protobuf\Internal\Message * Optional. The sorts to apply to the explore. * @type string $limit * Optional. Limit in the query. + * @type string $query_id + * Optional. The primary identifier for the query resource in Looker, used for + * API operations. Maps to `id` (or `slug`) in the Looker API `Query` + * resource. + * @type string $client_id + * Optional. The short alphanumeric identifier for the query, used for share + * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` + * in the Looker API `Query` resource. * } */ public function __construct($data = NULL) { @@ -245,5 +269,85 @@ public function setLimit($var) return $this; } + /** + * Optional. The primary identifier for the query resource in Looker, used for + * API operations. Maps to `id` (or `slug`) in the Looker API `Query` + * resource. + * + * Generated from protobuf field optional string query_id = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getQueryId() + { + return isset($this->query_id) ? $this->query_id : ''; + } + + public function hasQueryId() + { + return isset($this->query_id); + } + + public function clearQueryId() + { + unset($this->query_id); + } + + /** + * Optional. The primary identifier for the query resource in Looker, used for + * API operations. Maps to `id` (or `slug`) in the Looker API `Query` + * resource. + * + * Generated from protobuf field optional string query_id = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setQueryId($var) + { + GPBUtil::checkString($var, True); + $this->query_id = $var; + + return $this; + } + + /** + * Optional. The short alphanumeric identifier for the query, used for share + * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` + * in the Looker API `Query` resource. + * + * Generated from protobuf field optional string client_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getClientId() + { + return isset($this->client_id) ? $this->client_id : ''; + } + + public function hasClientId() + { + return isset($this->client_id); + } + + public function clearClientId() + { + unset($this->client_id); + } + + /** + * Optional. The short alphanumeric identifier for the query, used for share + * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` + * in the Looker API `Query` resource. + * + * Generated from protobuf field optional string client_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setClientId($var) + { + GPBUtil::checkString($var, True); + $this->client_id = $var; + + return $this; + } + } diff --git a/GeminiDataAnalytics/src/V1beta/LookerQuery/Filter.php b/GeminiDataAnalytics/src/V1beta/LookerQuery/Filter.php index d9856803eb0a..674f2f79180d 100644 --- a/GeminiDataAnalytics/src/V1beta/LookerQuery/Filter.php +++ b/GeminiDataAnalytics/src/V1beta/LookerQuery/Filter.php @@ -22,11 +22,13 @@ class Filter extends \Google\Protobuf\Internal\Message */ protected $field = ''; /** - * Required. The value for the field to filter on. + * Optional. The value for the field to filter on. + * Optional so we can preserve the default value as an empty + * string, important to get a valid and working Looker Explore url. * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $value = ''; + protected $value = null; /** * Constructor. @@ -37,7 +39,9 @@ class Filter extends \Google\Protobuf\Internal\Message * @type string $field * Required. The field to filter on. * @type string $value - * Required. The value for the field to filter on. + * Optional. The value for the field to filter on. + * Optional so we can preserve the default value as an empty + * string, important to get a valid and working Looker Explore url. * } */ public function __construct($data = NULL) { @@ -72,20 +76,34 @@ public function setField($var) } /** - * Required. The value for the field to filter on. + * Optional. The value for the field to filter on. + * Optional so we can preserve the default value as an empty + * string, important to get a valid and working Looker Explore url. * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getValue() { - return $this->value; + return isset($this->value) ? $this->value : ''; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); } /** - * Required. The value for the field to filter on. + * Optional. The value for the field to filter on. + * Optional so we can preserve the default value as an empty + * string, important to get a valid and working Looker Explore url. * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerSettings.php b/GeminiDataAnalytics/src/V1beta/LookerSettings.php similarity index 100% rename from owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerSettings.php rename to GeminiDataAnalytics/src/V1beta/LookerSettings.php diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/MatchedQuery.php b/GeminiDataAnalytics/src/V1beta/MatchedQuery.php similarity index 100% rename from owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/MatchedQuery.php rename to GeminiDataAnalytics/src/V1beta/MatchedQuery.php diff --git a/GeminiDataAnalytics/src/V1beta/ParameterizedSecureViewParameters.php b/GeminiDataAnalytics/src/V1beta/ParameterizedSecureViewParameters.php index a3c1154cf5b1..2f333b96a253 100644 --- a/GeminiDataAnalytics/src/V1beta/ParameterizedSecureViewParameters.php +++ b/GeminiDataAnalytics/src/V1beta/ParameterizedSecureViewParameters.php @@ -19,10 +19,8 @@ class ParameterizedSecureViewParameters extends \Google\Protobuf\Internal\Messag { /** * Optional. Named parameters for Parameterized Secure Views (PSV). - * The map keys are parameter names (e.g., `"user_id"`), and values are the - * corresponding parameter values (e.g., `"123"`). * - * Generated from protobuf field map parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters.Parameter parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private $parameters; @@ -32,10 +30,8 @@ class ParameterizedSecureViewParameters extends \Google\Protobuf\Internal\Messag * @param array $data { * Optional. Data for populating the Message object. * - * @type array|\Google\Protobuf\Internal\MapField $parameters + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters\Parameter[] $parameters * Optional. Named parameters for Parameterized Secure Views (PSV). - * The map keys are parameter names (e.g., `"user_id"`), and values are the - * corresponding parameter values (e.g., `"123"`). * } */ public function __construct($data = NULL) { @@ -45,11 +41,9 @@ public function __construct($data = NULL) { /** * Optional. Named parameters for Parameterized Secure Views (PSV). - * The map keys are parameter names (e.g., `"user_id"`), and values are the - * corresponding parameter values (e.g., `"123"`). * - * Generated from protobuf field map parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters.Parameter parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters\Parameter> */ public function getParameters() { @@ -58,16 +52,14 @@ public function getParameters() /** * Optional. Named parameters for Parameterized Secure Views (PSV). - * The map keys are parameter names (e.g., `"user_id"`), and values are the - * corresponding parameter values (e.g., `"123"`). * - * Generated from protobuf field map parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters.Parameter parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters\Parameter[] $var * @return $this */ public function setParameters($var) { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters\Parameter::class); $this->parameters = $arr; return $this; diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ParameterizedSecureViewParameters/Parameter.php b/GeminiDataAnalytics/src/V1beta/ParameterizedSecureViewParameters/Parameter.php similarity index 100% rename from owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ParameterizedSecureViewParameters/Parameter.php rename to GeminiDataAnalytics/src/V1beta/ParameterizedSecureViewParameters/Parameter.php diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryParameter.php b/GeminiDataAnalytics/src/V1beta/QueryParameter.php similarity index 100% rename from owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryParameter.php rename to GeminiDataAnalytics/src/V1beta/QueryParameter.php diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryParameterValues.php b/GeminiDataAnalytics/src/V1beta/QueryParameterValues.php similarity index 100% rename from owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryParameterValues.php rename to GeminiDataAnalytics/src/V1beta/QueryParameterValues.php diff --git a/GeminiDataAnalytics/src/V1beta/SpannerDatabaseReference.php b/GeminiDataAnalytics/src/V1beta/SpannerDatabaseReference.php index b1861fe10c70..7fef96622a97 100644 --- a/GeminiDataAnalytics/src/V1beta/SpannerDatabaseReference.php +++ b/GeminiDataAnalytics/src/V1beta/SpannerDatabaseReference.php @@ -27,12 +27,6 @@ class SpannerDatabaseReference extends \Google\Protobuf\Internal\Message * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ protected $project_id = ''; - /** - * Required. The region of the instance. - * - * Generated from protobuf field string region = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $region = ''; /** * Required. The instance id. * @@ -51,6 +45,31 @@ class SpannerDatabaseReference extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private $table_ids; + /** + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $database_table_references; + /** + * Optional. Priority for the queries to Spanner. Should be a value supported + * by Cloud Spanner e.g.: LOW, MEDIUM, HIGH. Unsupported values will be + * ignored. See + * https://docs.cloud.google.com/spanner/docs/reference/rest/v1/RequestOptions#Priority + * for complete list. + * + * Generated from protobuf field string priority = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $priority = ''; + /** + * Tag to be attached to all queries to Spanner. Allows to identify and + * monitor queries sent to Spanner by the GDA service. + * + * Generated from protobuf field string request_tag = 9; + */ + protected $request_tag = ''; /** * Constructor. @@ -62,14 +81,25 @@ class SpannerDatabaseReference extends \Google\Protobuf\Internal\Message * Required. The engine of the Spanner instance. * @type string $project_id * Required. The project the instance belongs to. - * @type string $region - * Required. The region of the instance. * @type string $instance_id * Required. The instance id. * @type string $database_id * Required. The database id. * @type string[] $table_ids * Optional. The table ids. Denotes all tables if unset. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference[] $database_table_references + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * @type string $priority + * Optional. Priority for the queries to Spanner. Should be a value supported + * by Cloud Spanner e.g.: LOW, MEDIUM, HIGH. Unsupported values will be + * ignored. See + * https://docs.cloud.google.com/spanner/docs/reference/rest/v1/RequestOptions#Priority + * for complete list. + * @type string $request_tag + * Tag to be attached to all queries to Spanner. Allows to identify and + * monitor queries sent to Spanner by the GDA service. * } */ public function __construct($data = NULL) { @@ -129,32 +159,6 @@ public function setProjectId($var) return $this; } - /** - * Required. The region of the instance. - * - * Generated from protobuf field string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * Required. The region of the instance. - * - * Generated from protobuf field string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - /** * Required. The instance id. * @@ -233,5 +237,97 @@ public function setTableIds($var) return $this; } + /** + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference> + */ + public function getDatabaseTableReferences() + { + return $this->database_table_references; + } + + /** + * Optional. References to tables within the database. Each reference + * specifies a table and can optionally include the table's schema to provide + * context for the query. + * + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference[] $var + * @return $this + */ + public function setDatabaseTableReferences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference::class); + $this->database_table_references = $arr; + + return $this; + } + + /** + * Optional. Priority for the queries to Spanner. Should be a value supported + * by Cloud Spanner e.g.: LOW, MEDIUM, HIGH. Unsupported values will be + * ignored. See + * https://docs.cloud.google.com/spanner/docs/reference/rest/v1/RequestOptions#Priority + * for complete list. + * + * Generated from protobuf field string priority = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPriority() + { + return $this->priority; + } + + /** + * Optional. Priority for the queries to Spanner. Should be a value supported + * by Cloud Spanner e.g.: LOW, MEDIUM, HIGH. Unsupported values will be + * ignored. See + * https://docs.cloud.google.com/spanner/docs/reference/rest/v1/RequestOptions#Priority + * for complete list. + * + * Generated from protobuf field string priority = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPriority($var) + { + GPBUtil::checkString($var, True); + $this->priority = $var; + + return $this; + } + + /** + * Tag to be attached to all queries to Spanner. Allows to identify and + * monitor queries sent to Spanner by the GDA service. + * + * Generated from protobuf field string request_tag = 9; + * @return string + */ + public function getRequestTag() + { + return $this->request_tag; + } + + /** + * Tag to be attached to all queries to Spanner. Allows to identify and + * monitor queries sent to Spanner by the GDA service. + * + * Generated from protobuf field string request_tag = 9; + * @param string $var + * @return $this + */ + public function setRequestTag($var) + { + GPBUtil::checkString($var, True); + $this->request_tag = $var; + + return $this; + } + } diff --git a/GeminiDataAnalytics/src/V1beta/StudioDatasourceReferences.php b/GeminiDataAnalytics/src/V1beta/StudioDatasourceReferences.php index a588b3673cda..dbb00ea32bc1 100644 --- a/GeminiDataAnalytics/src/V1beta/StudioDatasourceReferences.php +++ b/GeminiDataAnalytics/src/V1beta/StudioDatasourceReferences.php @@ -16,9 +16,9 @@ class StudioDatasourceReferences extends \Google\Protobuf\Internal\Message { /** - * The references to the studio datasources. + * Optional. The references to the studio datasources. * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference studio_references = 2; + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference studio_references = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $studio_references; @@ -29,7 +29,7 @@ class StudioDatasourceReferences extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type \Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReference[] $studio_references - * The references to the studio datasources. + * Optional. The references to the studio datasources. * } */ public function __construct($data = NULL) { @@ -38,9 +38,9 @@ public function __construct($data = NULL) { } /** - * The references to the studio datasources. + * Optional. The references to the studio datasources. * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference studio_references = 2; + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference studio_references = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReference> */ public function getStudioReferences() @@ -49,9 +49,9 @@ public function getStudioReferences() } /** - * The references to the studio datasources. + * Optional. The references to the studio datasources. * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference studio_references = 2; + * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference studio_references = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReference[] $var * @return $this */ diff --git a/GeminiDataAnalytics/src/V1beta/SystemMessage.php b/GeminiDataAnalytics/src/V1beta/SystemMessage.php index 6707c7facf35..97568b248d39 100644 --- a/GeminiDataAnalytics/src/V1beta/SystemMessage.php +++ b/GeminiDataAnalytics/src/V1beta/SystemMessage.php @@ -10,7 +10,7 @@ /** * A message from the system in response to the user. This message can also be a - * message from the user as historical context for multiturn conversations with + * message from the user as historical context for multi-turn conversations with * the system. * * Generated from protobuf message google.cloud.geminidataanalytics.v1beta.SystemMessage @@ -25,6 +25,12 @@ class SystemMessage extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional int32 group_id = 12; */ protected $group_id = null; + /** + * Output only. Citation information for the system message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Citation citation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $citation = null; protected $kind; /** @@ -48,11 +54,14 @@ class SystemMessage extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQueries $example_queries * Optional. A message containing example queries. * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationMessage $clarification - * Optional. A message containing clarification questions. + * Optional. Deprecated: Use TextMessage with TextType.FINAL_RESPONSE + * instead. A message containing clarification questions. * @type int $group_id * Identifies the group that the event belongs to. Similar events are deemed * to be logically relevant to each other and should be shown together in * the UI. + * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Citation $citation + * Output only. Citation information for the system message. * } */ public function __construct($data = NULL) { @@ -278,30 +287,41 @@ public function setExampleQueries($var) } /** - * Optional. A message containing clarification questions. + * Optional. Deprecated: Use TextMessage with TextType.FINAL_RESPONSE + * instead. A message containing clarification questions. * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationMessage|null + * @deprecated */ public function getClarification() { + if ($this->hasOneof(14)) { + @trigger_error('clarification is deprecated.', E_USER_DEPRECATED); + } return $this->readOneof(14); } public function hasClarification() { + if ($this->hasOneof(14)) { + @trigger_error('clarification is deprecated.', E_USER_DEPRECATED); + } return $this->hasOneof(14); } /** - * Optional. A message containing clarification questions. + * Optional. Deprecated: Use TextMessage with TextType.FINAL_RESPONSE + * instead. A message containing clarification questions. * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationMessage $var * @return $this + * @deprecated */ public function setClarification($var) { + @trigger_error('clarification is deprecated.', E_USER_DEPRECATED); GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationMessage::class); $this->writeOneof(14, $var); @@ -348,6 +368,42 @@ public function setGroupId($var) return $this; } + /** + * Output only. Citation information for the system message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Citation citation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Citation|null + */ + public function getCitation() + { + return $this->citation; + } + + public function hasCitation() + { + return isset($this->citation); + } + + public function clearCitation() + { + unset($this->citation); + } + + /** + * Output only. Citation information for the system message. + * + * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Citation citation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Citation $var + * @return $this + */ + public function setCitation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Citation::class); + $this->citation = $var; + + return $this; + } + /** * @return string */ diff --git a/GeminiDataAnalytics/src/V1beta/TextMessage/TextType.php b/GeminiDataAnalytics/src/V1beta/TextMessage/TextType.php index 6d3db5217ec7..8e92b4641f59 100644 --- a/GeminiDataAnalytics/src/V1beta/TextMessage/TextType.php +++ b/GeminiDataAnalytics/src/V1beta/TextMessage/TextType.php @@ -41,12 +41,20 @@ class TextType * Generated from protobuf enum PROGRESS = 3; */ const PROGRESS = 3; + /** + * The text is a list of follow-up questions suggested. + * Each item in parts is a follow-up question. + * + * Generated from protobuf enum FOLLOWUP_QUESTIONS = 4; + */ + const FOLLOWUP_QUESTIONS = 4; private static $valueToName = [ self::TEXT_TYPE_UNSPECIFIED => 'TEXT_TYPE_UNSPECIFIED', self::FINAL_RESPONSE => 'FINAL_RESPONSE', self::THOUGHT => 'THOUGHT', self::PROGRESS => 'PROGRESS', + self::FOLLOWUP_QUESTIONS => 'FOLLOWUP_QUESTIONS', ]; public static function name($value) diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UserFunctions.php b/GeminiDataAnalytics/src/V1beta/UserFunctions.php similarity index 100% rename from owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UserFunctions.php rename to GeminiDataAnalytics/src/V1beta/UserFunctions.php diff --git a/GeminiDataAnalytics/src/V1beta/resources/data_agent_service_descriptor_config.php b/GeminiDataAnalytics/src/V1beta/resources/data_agent_service_descriptor_config.php index f85f358a9a70..8211b654a562 100644 --- a/GeminiDataAnalytics/src/V1beta/resources/data_agent_service_descriptor_config.php +++ b/GeminiDataAnalytics/src/V1beta/resources/data_agent_service_descriptor_config.php @@ -229,6 +229,7 @@ 'interfaceOverride' => 'google.cloud.location.Locations', ], 'templateMap' => [ + 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', 'dataAgent' => 'projects/{project}/locations/{location}/dataAgents/{data_agent}', 'location' => 'projects/{project}/locations/{location}', ], diff --git a/GeminiDataAnalytics/src/V1beta/resources/data_chat_service_descriptor_config.php b/GeminiDataAnalytics/src/V1beta/resources/data_chat_service_descriptor_config.php index 27abde8aeb09..65cda6666d4e 100644 --- a/GeminiDataAnalytics/src/V1beta/resources/data_chat_service_descriptor_config.php +++ b/GeminiDataAnalytics/src/V1beta/resources/data_chat_service_descriptor_config.php @@ -162,6 +162,7 @@ ], 'templateMap' => [ 'conversation' => 'projects/{project}/locations/{location}/conversations/{conversation}', + 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', 'dataAgent' => 'projects/{project}/locations/{location}/dataAgents/{data_agent}', 'location' => 'projects/{project}/locations/{location}', 'project' => 'projects/{project}', diff --git a/GeminiDataAnalytics/tests/Unit/V1beta/Client/DataAgentServiceClientTest.php b/GeminiDataAnalytics/tests/Unit/V1beta/Client/DataAgentServiceClientTest.php index 602b1ccf4951..649e9835bf0e 100644 --- a/GeminiDataAnalytics/tests/Unit/V1beta/Client/DataAgentServiceClientTest.php +++ b/GeminiDataAnalytics/tests/Unit/V1beta/Client/DataAgentServiceClientTest.php @@ -105,10 +105,12 @@ public function createDataAgentTest() $name = 'name3373707'; $displayName = 'displayName1615086568'; $description = 'description-1724546052'; + $kmsKey = 'kmsKey-591635343'; $expectedResponse = new DataAgent(); $expectedResponse->setName($name); $expectedResponse->setDisplayName($displayName); $expectedResponse->setDescription($description); + $expectedResponse->setKmsKey($kmsKey); $anyResponse = new Any(); $anyResponse->setValue($expectedResponse->serializeToString()); $completeOperation = new Operation(); @@ -228,10 +230,12 @@ public function createDataAgentSyncTest() $name = 'name3373707'; $displayName = 'displayName1615086568'; $description = 'description-1724546052'; + $kmsKey = 'kmsKey-591635343'; $expectedResponse = new DataAgent(); $expectedResponse->setName($name); $expectedResponse->setDisplayName($displayName); $expectedResponse->setDescription($description); + $expectedResponse->setKmsKey($kmsKey); $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); @@ -494,10 +498,12 @@ public function getDataAgentTest() $name2 = 'name2-1052831874'; $displayName = 'displayName1615086568'; $description = 'description-1724546052'; + $kmsKey = 'kmsKey-591635343'; $expectedResponse = new DataAgent(); $expectedResponse->setName($name2); $expectedResponse->setDisplayName($displayName); $expectedResponse->setDescription($description); + $expectedResponse->setKmsKey($kmsKey); $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); @@ -858,10 +864,12 @@ public function updateDataAgentTest() $name = 'name3373707'; $displayName = 'displayName1615086568'; $description = 'description-1724546052'; + $kmsKey = 'kmsKey-591635343'; $expectedResponse = new DataAgent(); $expectedResponse->setName($name); $expectedResponse->setDisplayName($displayName); $expectedResponse->setDescription($description); + $expectedResponse->setKmsKey($kmsKey); $anyResponse = new Any(); $anyResponse->setValue($expectedResponse->serializeToString()); $completeOperation = new Operation(); @@ -977,10 +985,12 @@ public function updateDataAgentSyncTest() $name = 'name3373707'; $displayName = 'displayName1615086568'; $description = 'description-1724546052'; + $kmsKey = 'kmsKey-591635343'; $expectedResponse = new DataAgent(); $expectedResponse->setName($name); $expectedResponse->setDisplayName($displayName); $expectedResponse->setDescription($description); + $expectedResponse->setKmsKey($kmsKey); $transport->addResponse($expectedResponse); // Mock request $dataAgent = new DataAgent(); @@ -1189,10 +1199,12 @@ public function createDataAgentAsyncTest() $name = 'name3373707'; $displayName = 'displayName1615086568'; $description = 'description-1724546052'; + $kmsKey = 'kmsKey-591635343'; $expectedResponse = new DataAgent(); $expectedResponse->setName($name); $expectedResponse->setDisplayName($displayName); $expectedResponse->setDescription($description); + $expectedResponse->setKmsKey($kmsKey); $anyResponse = new Any(); $anyResponse->setValue($expectedResponse->serializeToString()); $completeOperation = new Operation(); diff --git a/GeminiDataAnalytics/tests/Unit/V1beta/Client/DataChatServiceClientTest.php b/GeminiDataAnalytics/tests/Unit/V1beta/Client/DataChatServiceClientTest.php index cf3073e4498a..182323c1cec1 100644 --- a/GeminiDataAnalytics/tests/Unit/V1beta/Client/DataChatServiceClientTest.php +++ b/GeminiDataAnalytics/tests/Unit/V1beta/Client/DataChatServiceClientTest.php @@ -176,8 +176,12 @@ public function createConversationTest() $this->assertTrue($transport->isExhausted()); // Mock response $name = 'name3373707'; + $kmsKey = 'kmsKey-591635343'; + $memoryPaused = true; $expectedResponse = new Conversation(); $expectedResponse->setName($name); + $expectedResponse->setKmsKey($kmsKey); + $expectedResponse->setMemoryPaused($memoryPaused); $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); @@ -317,8 +321,12 @@ public function getConversationTest() $this->assertTrue($transport->isExhausted()); // Mock response $name2 = 'name2-1052831874'; + $kmsKey = 'kmsKey-591635343'; + $memoryPaused = true; $expectedResponse = new Conversation(); $expectedResponse->setName($name2); + $expectedResponse->setKmsKey($kmsKey); + $expectedResponse->setMemoryPaused($memoryPaused); $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); @@ -742,8 +750,12 @@ public function createConversationAsyncTest() $this->assertTrue($transport->isExhausted()); // Mock response $name = 'name3373707'; + $kmsKey = 'kmsKey-591635343'; + $memoryPaused = true; $expectedResponse = new Conversation(); $expectedResponse->setName($name); + $expectedResponse->setKmsKey($kmsKey); + $expectedResponse->setMemoryPaused($memoryPaused); $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Context.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Context.php deleted file mode 100644 index 548d84386530..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Context.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE1!\x0A1google/cloud/geminidataanalytics/v1/context.proto\x12#google.cloud.geminidataanalytics.v1\x1A\x19google/api/resource.proto\x1A4google/cloud/geminidataanalytics/v1/datasource.proto\x1A\x1Egoogle/protobuf/wrappers.proto\"\x90\x09\x0A\x07Context\x12\x1F\x0A\x12system_instruction\x18\x01 \x01(\x09B\x03\xE0A\x01\x12]\x0A\x15datasource_references\x18\x07 \x01(\x0B29.google.cloud.geminidataanalytics.v1.DatasourceReferencesB\x03\xE0A\x02\x12N\x0A\x07options\x18\x03 \x01(\x0B28.google.cloud.geminidataanalytics.v1.ConversationOptionsB\x03\xE0A\x01\x12O\x0A\x0Fexample_queries\x18\x05 \x03(\x0B21.google.cloud.geminidataanalytics.v1.ExampleQueryB\x03\xE0A\x01\x12Z\x0A\x15looker_golden_queries\x18\x0B \x03(\x0B26.google.cloud.geminidataanalytics.v1.LookerGoldenQueryB\x03\xE0A\x01\x12N\x0A\x0Eglossary_terms\x18\x08 \x03(\x0B21.google.cloud.geminidataanalytics.v1.GlossaryTermB\x03\xE0A\x01\x12b\x0A\x14schema_relationships\x18\x09 \x03(\x0B2?.google.cloud.geminidataanalytics.v1.Context.SchemaRelationshipB\x03\xE0A\x01\x12O\x0A\x0Euser_functions\x18\x0A \x01(\x0B22.google.cloud.geminidataanalytics.v1.UserFunctionsB\x03\xE0A\x01\x1A\x82\x04\x0A\x12SchemaRelationship\x12f\x0A\x11left_schema_paths\x18\x01 \x01(\x0B2K.google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SchemaPaths\x12g\x0A\x12right_schema_paths\x18\x02 \x01(\x0B2K.google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SchemaPaths\x12\\\x0A\x07sources\x18\x03 \x03(\x0E2F.google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SourceB\x03\xE0A\x01\x12\x1D\x0A\x10confidence_score\x18\x04 \x01(\x02B\x03\xE0A\x01\x1A/\x0A\x0BSchemaPaths\x12\x11\x0A\x09table_fqn\x18\x01 \x01(\x09\x12\x0D\x0A\x05paths\x18\x02 \x03(\x09\"m\x0A\x06Source\x12\x16\x0A\x12SOURCE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14BIGQUERY_JOB_HISTORY\x10\x01\x12\x11\x0A\x0DLLM_SUGGESTED\x10\x02\x12\x1E\x0A\x1ABIGQUERY_TABLE_CONSTRAINTS\x10\x03\"Z\x0A\x0DUserFunctions\x12I\x0A\x0Bbq_routines\x18\x01 \x03(\x0B24.google.cloud.geminidataanalytics.v1.BigQueryRoutine\"\x80\x01\x0A\x0FBigQueryRoutine\x12X\x0A\x11routine_reference\x18\x01 \x01(\x0B2=.google.cloud.geminidataanalytics.v1.BigQueryRoutineReference\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\"V\x0A\x18BigQueryRoutineReference\x12\x12\x0A\x0Aproject_id\x18\x01 \x01(\x09\x12\x12\x0A\x0Adataset_id\x18\x02 \x01(\x09\x12\x12\x0A\x0Aroutine_id\x18\x03 \x01(\x09\"\xA7\x01\x0A\x0CExampleQuery\x12\x18\x0A\x09sql_query\x18e \x01(\x09B\x03\xE0A\x01H\x00\x12&\x0A\x19natural_language_question\x18\x01 \x01(\x09B\x03\xE0A\x01\x12L\x0A\x0Aparameters\x18\x03 \x03(\x0B23.google.cloud.geminidataanalytics.v1.QueryParameterB\x03\xE0A\x01B\x07\x0A\x05query\"U\x0A\x0EQueryParameter\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09data_type\x18\x03 \x01(\x09B\x03\xE0A\x02\"\xB3\x01\x0A\x0CMatchedQuery\x12H\x0A\x0Dexample_query\x18\x01 \x01(\x0B21.google.cloud.geminidataanalytics.v1.ExampleQuery\x12Y\x0A\x16query_parameter_values\x18\x02 \x03(\x0B29.google.cloud.geminidataanalytics.v1.QueryParameterValues\"=\x0A\x14QueryParameterValues\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x12\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x89\x01\x0A\x11LookerGoldenQuery\x12'\x0A\x1Anatural_language_questions\x18\x04 \x03(\x09B\x03\xE0A\x01\x12K\x0A\x0Clooker_query\x18\x05 \x01(\x0B20.google.cloud.geminidataanalytics.v1.LookerQueryB\x03\xE0A\x01\"\xE7\x02\x0A\x0BLookerQuery\x12\x12\x0A\x05model\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x14\x0A\x07explore\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06fields\x18\x03 \x03(\x09B\x03\xE0A\x01\x12M\x0A\x07filters\x18\x04 \x03(\x0B27.google.cloud.geminidataanalytics.v1.LookerQuery.FilterB\x03\xE0A\x01\x12\x12\x0A\x05sorts\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\x17\x0A\x05limit\x18\x06 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01\x12\x1A\x0A\x08query_id\x18\x0A \x01(\x09B\x03\xE0A\x01H\x01\x88\x01\x01\x12\x1B\x0A\x09client_id\x18\x0B \x01(\x09B\x03\xE0A\x01H\x02\x88\x01\x01\x1A?\x0A\x06Filter\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B\x08\x0A\x06_valueB\x08\x0A\x06_limitB\x0B\x0A\x09_query_idB\x0C\x0A\x0A_client_id\"X\x0A\x0CGlossaryTerm\x12\x19\x0A\x0Cdisplay_name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06labels\x18\x03 \x03(\x09B\x03\xE0A\x01\"\xCB\x02\x0A\x13ConversationOptions\x12K\x0A\x08analysis\x18\x02 \x01(\x0B24.google.cloud.geminidataanalytics.v1.AnalysisOptionsB\x03\xE0A\x01\x12O\x0A\x0Adatasource\x18\x03 \x01(\x0B26.google.cloud.geminidataanalytics.v1.DatasourceOptionsB\x03\xE0A\x01\x12W\x0A\x05model\x18\x06 \x01(\x0E2>.google.cloud.geminidataanalytics.v1.ConversationOptions.ModelB\x03\xE0A\x01H\x00\x88\x01\x01\"3\x0A\x05Model\x12\x15\x0A\x11MODEL_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FLATEST_GA_MODEL\x10\x01B\x08\x0A\x06_model\"Y\x0A\x11DatasourceOptions\x12D\x0A\x1Abig_query_max_billed_bytes\x18\x01 \x01(\x0B2\x1B.google.protobuf.Int64ValueB\x03\xE0A\x01\"\x83\x01\x0A\x0FAnalysisOptions\x12P\x0A\x06python\x18\x01 \x01(\x0B2;.google.cloud.geminidataanalytics.v1.AnalysisOptions.PythonB\x03\xE0A\x01\x1A\x1E\x0A\x06Python\x12\x14\x0A\x07enabled\x18\x01 \x01(\x08B\x03\xE0A\x01\"\xA0\x01\x0A\x08Citation\x12I\x0A\x07sources\x18\x01 \x03(\x0B23.google.cloud.geminidataanalytics.v1.CitationSourceB\x03\xE0A\x03\x12I\x0A\x07anchors\x18\x02 \x03(\x0B23.google.cloud.geminidataanalytics.v1.CitationAnchorB\x03\xE0A\x03\"\xFA\x01\x0A\x0ECitationSource\x12\x12\x0A\x03uri\x18\x03 \x01(\x09B\x03\xE0A\x03H\x00\x12O\x0A\x0Dexample_query\x18\x04 \x01(\x0B21.google.cloud.geminidataanalytics.v1.ExampleQueryB\x03\xE0A\x03H\x00\x12O\x0A\x0Dglossary_term\x18\x05 \x01(\x0B21.google.cloud.geminidataanalytics.v1.GlossaryTermB\x03\xE0A\x03H\x00\x12\x0F\x0A\x02id\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05title\x18\x02 \x01(\x09B\x03\xE0A\x03B\x0D\x0A\x0Bsource_type\"\xA2\x02\x0A\x0ECitationAnchor\x12q\x0A\x13text_message_anchor\x18\x01 \x01(\x0B2M.google.cloud.geminidataanalytics.v1.CitationAnchor.TextMessageCitationAnchorB\x03\xE0A\x03H\x00\x1A\x8D\x01\x0A\x19TextMessageCitationAnchor\x12\x17\x0A\x0Apart_index\x18\x01 \x01(\x05B\x03\xE0A\x03\x12\x1F\x0A\x12start_offset_bytes\x18\x02 \x01(\x05B\x03\xE0A\x03\x12\x1D\x0A\x10end_offset_bytes\x18\x03 \x01(\x05B\x03\xE0A\x03\x12\x17\x0A\x0Asource_ids\x18\x04 \x03(\x09B\x03\xE0A\x03B\x0D\x0A\x0Banchor_typeB\x89\x02\x0A'com.google.cloud.geminidataanalytics.v1B\x0CContextProtoP\x01ZYcloud.google.com/go/geminidataanalytics/apiv1/geminidataanalyticspb;geminidataanalyticspb\xAA\x02#Google.Cloud.GeminiDataAnalytics.V1\xCA\x02#Google\\Cloud\\GeminiDataAnalytics\\V1\xEA\x02&Google::Cloud::GeminiDataAnalytics::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Conversation.php deleted file mode 100644 index c7884d60e600..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Conversation.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x90\x0F\x0A6google/cloud/geminidataanalytics/v1/conversation.proto\x12#google.cloud.geminidataanalytics.v1\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xC6\x04\x0A\x0CConversation\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x01\xE0A\x08\x12\x13\x0A\x06agents\x18\x02 \x03(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x127\x0A\x0Elast_used_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12R\x0A\x06labels\x18\x09 \x03(\x0B2=.google.cloud.geminidataanalytics.v1.Conversation.LabelsEntryB\x03\xE0A\x01\x12?\x0A\x07kms_key\x18\x0A \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKeyH\x00\x88\x01\x01\x12\x1F\x0A\x0Dmemory_paused\x18\x0B \x01(\x08B\x03\xE0A\x01H\x01\x88\x01\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x98\x01\xEAA\x94\x01\x0A/geminidataanalytics.googleapis.com/Conversation\x12Dprojects/{project}/locations/{location}/conversations/{conversation}*\x0Dconversations2\x0CconversationB\x0A\x0A\x08_kms_keyB\x10\x0A\x0E_memory_paused\"\xF1\x01\x0A\x19CreateConversationRequest\x12G\x0A\x06parent\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x12/geminidataanalytics.googleapis.com/Conversation\x12\x1C\x0A\x0Fconversation_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12L\x0A\x0Cconversation\x18\x03 \x01(\x0B21.google.cloud.geminidataanalytics.v1.ConversationB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"_\x0A\x16GetConversationRequest\x12E\x0A\x04name\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/Conversation\"\xA9\x01\x0A\x18ListConversationsRequest\x12G\x0A\x06parent\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x12/geminidataanalytics.googleapis.com/Conversation\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\"~\x0A\x19ListConversationsResponse\x12H\x0A\x0Dconversations\x18\x01 \x03(\x0B21.google.cloud.geminidataanalytics.v1.Conversation\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"b\x0A\x19DeleteConversationRequest\x12E\x0A\x04name\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/ConversationB\xA1\x03\x0A'com.google.cloud.geminidataanalytics.v1B\x11ConversationProtoP\x01ZYcloud.google.com/go/geminidataanalytics/apiv1/geminidataanalyticspb;geminidataanalyticspb\xAA\x02#Google.Cloud.GeminiDataAnalytics.V1\xCA\x02#Google\\Cloud\\GeminiDataAnalytics\\V1\xEA\x02&Google::Cloud::GeminiDataAnalytics::V1\xEAA\x8F\x01\x0A!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}*\x0AcryptoKeys2\x09cryptoKeyb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Credentials.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Credentials.php deleted file mode 100644 index eb17d512fd0e..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/Credentials.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x84\x06\x0A5google/cloud/geminidataanalytics/v1/credentials.proto\x12#google.cloud.geminidataanalytics.v1\"]\x0A\x0BCredentials\x12F\x0A\x05oauth\x18\x01 \x01(\x0B25.google.cloud.geminidataanalytics.v1.OAuthCredentialsH\x00B\x06\x0A\x04kind\"\xAE\x02\x0A\x10OAuthCredentials\x12S\x0A\x06secret\x18\x02 \x01(\x0B2A.google.cloud.geminidataanalytics.v1.OAuthCredentials.SecretBasedH\x00\x12Q\x0A\x05token\x18\x03 \x01(\x0B2@.google.cloud.geminidataanalytics.v1.OAuthCredentials.TokenBasedH\x00\x1AA\x0A\x0BSecretBased\x12\x16\x0A\x09client_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1A\x0A\x0Dclient_secret\x18\x03 \x01(\x09B\x03\xE0A\x02\x1A'\x0A\x0ATokenBased\x12\x19\x0A\x0Caccess_token\x18\x01 \x01(\x09B\x03\xE0A\x02B\x06\x0A\x04kindB\x8D\x02\x0A'com.google.cloud.geminidataanalytics.v1B\x10CredentialsProtoP\x01ZYcloud.google.com/go/geminidataanalytics/apiv1/geminidataanalyticspb;geminidataanalyticspb\xAA\x02#Google.Cloud.GeminiDataAnalytics.V1\xCA\x02#Google\\Cloud\\GeminiDataAnalytics\\V1\xEA\x02&Google::Cloud::GeminiDataAnalytics::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataAgent.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataAgent.php deleted file mode 100644 index da6a077cca8f..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataAgent.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xD8\x09\x0A4google/cloud/geminidataanalytics/v1/data_agent.proto\x12#google.cloud.geminidataanalytics.v1\x1A\x19google/api/resource.proto\x1A>google/cloud/geminidataanalytics/v1/data_analytics_agent.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xE8\x05\x0A\x09DataAgent\x12W\x0A\x14data_analytics_agent\x18e \x01(\x0B27.google.cloud.geminidataanalytics.v1.DataAnalyticsAgentH\x00\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x01\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x12O\x0A\x06labels\x18\x05 \x03(\x0B2:.google.cloud.geminidataanalytics.v1.DataAgent.LabelsEntryB\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bdelete_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x123\x0A\x0Apurge_time\x18\x0D \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12?\x0A\x07kms_key\x18\x0E \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKeyH\x01\x88\x01\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x8A\x01\xEAA\x86\x01\x0A,geminidataanalytics.googleapis.com/DataAgent\x12?projects/{project}/locations/{location}/dataAgents/{data_agent}*\x0AdataAgents2\x09dataAgentB\x06\x0A\x04typeB\x0A\x0A\x08_kms_keyB\x8B\x02\x0A'com.google.cloud.geminidataanalytics.v1B\x0EDataAgentProtoP\x01ZYcloud.google.com/go/geminidataanalytics/apiv1/geminidataanalyticspb;geminidataanalyticspb\xAA\x02#Google.Cloud.GeminiDataAnalytics.V1\xCA\x02#Google\\Cloud\\GeminiDataAnalytics\\V1\xEA\x02&Google::Cloud::GeminiDataAnalytics::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataAgentService.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataAgentService.php deleted file mode 100644 index f392675a5827..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataAgentService.php +++ /dev/null @@ -1,36 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xCD'\x0AinternalAddGeneratedFile( - "\x0A\xBB\x05\x0A>google/cloud/geminidataanalytics/v1/data_analytics_agent.proto\x12#google.cloud.geminidataanalytics.v1\x1A1google/cloud/geminidataanalytics/v1/context.proto\"\x81\x02\x0A\x12DataAnalyticsAgent\x12J\x0A\x0Fstaging_context\x18\x05 \x01(\x0B2,.google.cloud.geminidataanalytics.v1.ContextB\x03\xE0A\x01\x12L\x0A\x11published_context\x18\x06 \x01(\x0B2,.google.cloud.geminidataanalytics.v1.ContextB\x03\xE0A\x01\x12Q\x0A\x16last_published_context\x18\x07 \x01(\x0B2,.google.cloud.geminidataanalytics.v1.ContextB\x03\xE0A\x03B\x94\x02\x0A'com.google.cloud.geminidataanalytics.v1B\x17DataAnalyticsAgentProtoP\x01ZYcloud.google.com/go/geminidataanalytics/apiv1/geminidataanalyticspb;geminidataanalyticspb\xAA\x02#Google.Cloud.GeminiDataAnalytics.V1\xCA\x02#Google\\Cloud\\GeminiDataAnalytics\\V1\xEA\x02&Google::Cloud::GeminiDataAnalytics::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataChatService.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataChatService.php deleted file mode 100644 index a066e4867182..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1/DataChatService.php +++ /dev/null @@ -1,35 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x91<\x0A;google/cloud/geminidataanalytics/v1/data_chat_service.proto\x12#google.cloud.geminidataanalytics.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A1google/cloud/geminidataanalytics/v1/context.proto\x1A6google/cloud/geminidataanalytics/v1/conversation.proto\x1A5google/cloud/geminidataanalytics/v1/credentials.proto\x1A4google/cloud/geminidataanalytics/v1/datasource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xA4\x01\x0A\x13ListMessagesRequest\x12G\x0A\x06parent\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/Conversation\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"v\x0A\x14ListMessagesResponse\x12E\x0A\x08messages\x18\x01 \x03(\x0B23.google.cloud.geminidataanalytics.v1.StorageMessage\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"c\x0A\x0EStorageMessage\x12\x12\x0A\x0Amessage_id\x18\x01 \x01(\x09\x12=\x0A\x07message\x18\x02 \x01(\x0B2,.google.cloud.geminidataanalytics.v1.Message\"\xD3\x07\x0A\x0BChatRequest\x12K\x0A\x0Einline_context\x18e \x01(\x0B2,.google.cloud.geminidataanalytics.v1.ContextB\x03\xE0A\x01H\x00\x12a\x0A\x16conversation_reference\x18g \x01(\x0B2:.google.cloud.geminidataanalytics.v1.ConversationReferenceB\x03\xE0A\x01H\x00\x12X\x0A\x12data_agent_context\x18h \x01(\x0B25.google.cloud.geminidataanalytics.v1.DataAgentContextB\x03\xE0A\x01H\x00\x12q\x0A\x1Fclient_managed_resource_context\x18i \x01(\x0B2A.google.cloud.geminidataanalytics.v1.ClientManagedResourceContextB\x03\xE0A\x01H\x00\x12S\x0A\x0Flooker_settings\x18\x0D \x01(\x0B23.google.cloud.geminidataanalytics.v1.LookerSettingsB\x03\xE0A\x01H\x01\x12\x13\x0A\x06parent\x18\x03 \x01(\x09B\x03\xE0A\x02\x12C\x0A\x08messages\x18\x02 \x03(\x0B2,.google.cloud.geminidataanalytics.v1.MessageB\x03\xE0A\x02\x12J\x0A\x0Bcredentials\x18\x07 \x01(\x0B20.google.cloud.geminidataanalytics.v1.CredentialsB\x03\xE0A\x01\x12Y\x0A\x0Dthinking_mode\x18\x09 \x01(\x0E2=.google.cloud.geminidataanalytics.v1.ChatRequest.ThinkingModeB\x03\xE0A\x01\x12J\x0A\x05model\x18\x0B \x01(\x0E26.google.cloud.geminidataanalytics.v1.ChatRequest.ModelB\x03\xE0A\x01\"E\x0A\x0CThinkingMode\x12\x1D\x0A\x19THINKING_MODE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04FAST\x10\x01\x12\x0C\x0A\x08THINKING\x10\x02\"3\x0A\x05Model\x12\x15\x0A\x11MODEL_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FLATEST_GA_MODEL\x10\x01B\x12\x0A\x10context_providerB\x15\x0A\x13datasource_settings\"\x8F\x02\x0A\x10DataAgentContext\x12H\x0A\x0Adata_agent\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,geminidataanalytics.googleapis.com/DataAgent\x12b\x0A\x0Fcontext_version\x18\x03 \x01(\x0E2D.google.cloud.geminidataanalytics.v1.DataAgentContext.ContextVersionB\x03\xE0A\x01\"M\x0A\x0EContextVersion\x12\x1F\x0A\x1BCONTEXT_VERSION_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07STAGING\x10\x01\x12\x0D\x0A\x09PUBLISHED\x10\x02\"\xBE\x01\x0A\x15ConversationReference\x12M\x0A\x0Cconversation\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/Conversation\x12V\x0A\x12data_agent_context\x18\x03 \x01(\x0B25.google.cloud.geminidataanalytics.v1.DataAgentContextB\x03\xE0A\x02\"\x9E\x01\x0A\x1CClientManagedResourceContext\x12I\x0A\x0Einline_context\x18\x01 \x01(\x0B2,.google.cloud.geminidataanalytics.v1.ContextB\x03\xE0A\x02\x12\x1C\x0A\x0Fconversation_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08agent_id\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xF6\x01\x0A\x07Message\x12H\x0A\x0Cuser_message\x18\x02 \x01(\x0B20.google.cloud.geminidataanalytics.v1.UserMessageH\x00\x12L\x0A\x0Esystem_message\x18\x03 \x01(\x0B22.google.cloud.geminidataanalytics.v1.SystemMessageH\x00\x122\x0A\x09timestamp\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x17\x0A\x0Amessage_id\x18\x04 \x01(\x09B\x03\xE0A\x01B\x06\x0A\x04kind\".\x0A\x0ELookerSettings\x12\x1C\x0A\x0Fenable_dev_mode\x18\x01 \x01(\x08B\x03\xE0A\x01\"%\x0A\x0BUserMessage\x12\x0E\x0A\x04text\x18\x01 \x01(\x09H\x00B\x06\x0A\x04kind\"\xF2\x04\x0A\x0DSystemMessage\x12@\x0A\x04text\x18\x01 \x01(\x0B20.google.cloud.geminidataanalytics.v1.TextMessageH\x00\x12D\x0A\x06schema\x18\x02 \x01(\x0B22.google.cloud.geminidataanalytics.v1.SchemaMessageH\x00\x12@\x0A\x04data\x18\x03 \x01(\x0B20.google.cloud.geminidataanalytics.v1.DataMessageH\x00\x12H\x0A\x08analysis\x18\x04 \x01(\x0B24.google.cloud.geminidataanalytics.v1.AnalysisMessageH\x00\x12B\x0A\x05chart\x18\x05 \x01(\x0B21.google.cloud.geminidataanalytics.v1.ChartMessageH\x00\x12B\x0A\x05error\x18\x06 \x01(\x0B21.google.cloud.geminidataanalytics.v1.ErrorMessageH\x00\x12S\x0A\x0Fexample_queries\x18\x0D \x01(\x0B23.google.cloud.geminidataanalytics.v1.ExampleQueriesB\x03\xE0A\x01H\x00\x12\x15\x0A\x08group_id\x18\x0C \x01(\x05H\x01\x88\x01\x01\x12D\x0A\x08citation\x18\x0F \x01(\x0B2-.google.cloud.geminidataanalytics.v1.CitationB\x03\xE0A\x03B\x06\x0A\x04kindB\x0B\x0A\x09_group_id\"\x82\x02\x0A\x0BTextMessage\x12\x12\x0A\x05parts\x18\x01 \x03(\x09B\x03\xE0A\x01\x12Q\x0A\x09text_type\x18\x02 \x01(\x0E29.google.cloud.geminidataanalytics.v1.TextMessage.TextTypeB\x03\xE0A\x01\x12\x1E\x0A\x11thought_signature\x18\x03 \x01(\x0CB\x03\xE0A\x01\"l\x0A\x08TextType\x12\x19\x0A\x15TEXT_TYPE_UNSPECIFIED\x10\x00\x12\x12\x0A\x0EFINAL_RESPONSE\x10\x01\x12\x0B\x0A\x07THOUGHT\x10\x02\x12\x0C\x0A\x08PROGRESS\x10\x03\x12\x16\x0A\x12FOLLOWUP_QUESTIONS\x10\x04\"\x9F\x01\x0A\x0DSchemaMessage\x12A\x0A\x05query\x18\x01 \x01(\x0B20.google.cloud.geminidataanalytics.v1.SchemaQueryH\x00\x12C\x0A\x06result\x18\x02 \x01(\x0B21.google.cloud.geminidataanalytics.v1.SchemaResultH\x00B\x06\x0A\x04kind\"\$\x0A\x0BSchemaQuery\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x01\"Y\x0A\x0CSchemaResult\x12I\x0A\x0Bdatasources\x18\x01 \x03(\x0B2/.google.cloud.geminidataanalytics.v1.DatasourceB\x03\xE0A\x01\"\xC9\x02\x0A\x0BDataMessage\x12?\x0A\x05query\x18\x01 \x01(\x0B2..google.cloud.geminidataanalytics.v1.DataQueryH\x00\x12\x17\x0A\x0Dgenerated_sql\x18\x02 \x01(\x09H\x00\x12A\x0A\x06result\x18\x03 \x01(\x0B2/.google.cloud.geminidataanalytics.v1.DataResultH\x00\x12I\x0A\x0Dbig_query_job\x18\x05 \x01(\x0B20.google.cloud.geminidataanalytics.v1.BigQueryJobH\x00\x12J\x0A\x0Dmatched_query\x18\x06 \x01(\x0B21.google.cloud.geminidataanalytics.v1.MatchedQueryH\x00B\x06\x0A\x04kind\"\xD7\x01\x0A\x09DataQuery\x12G\x0A\x06looker\x18\x04 \x01(\x0B20.google.cloud.geminidataanalytics.v1.LookerQueryB\x03\xE0A\x01H\x00\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12I\x0A\x0Bdatasources\x18\x02 \x03(\x0B2/.google.cloud.geminidataanalytics.v1.DatasourceB\x03\xE0A\x01B\x0C\x0A\x0Aquery_type\"\xC3\x01\x0A\x0ADataResult\x12\x11\x0A\x04name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12@\x0A\x06schema\x18\x05 \x01(\x0B2+.google.cloud.geminidataanalytics.v1.SchemaB\x03\xE0A\x01\x12*\x0A\x04data\x18\x02 \x03(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x124\x0A\x0Eformatted_data\x18\x06 \x03(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\"\xF1\x01\x0A\x0BBigQueryJob\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06job_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08location\x18\x05 \x01(\x09B\x03\xE0A\x01\x12[\x0A\x11destination_table\x18\x03 \x01(\x0B2;.google.cloud.geminidataanalytics.v1.BigQueryTableReferenceB\x03\xE0A\x01\x12@\x0A\x06schema\x18\x07 \x01(\x0B2+.google.cloud.geminidataanalytics.v1.SchemaB\x03\xE0A\x01\"\xAC\x01\x0A\x0FAnalysisMessage\x12C\x0A\x05query\x18\x01 \x01(\x0B22.google.cloud.geminidataanalytics.v1.AnalysisQueryH\x00\x12L\x0A\x0Eprogress_event\x18\x02 \x01(\x0B22.google.cloud.geminidataanalytics.v1.AnalysisEventH\x00B\x06\x0A\x04kind\"F\x0A\x0DAnalysisQuery\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11data_result_names\x18\x02 \x03(\x09B\x03\xE0A\x01\"\xAA\x02\x0A\x0DAnalysisEvent\x12\x1B\x0A\x11planner_reasoning\x18\x02 \x01(\x09H\x00\x12\x1B\x0A\x11coder_instruction\x18\x03 \x01(\x09H\x00\x12\x0E\x0A\x04code\x18\x04 \x01(\x09H\x00\x12\x1A\x0A\x10execution_output\x18\x05 \x01(\x09H\x00\x12\x19\x0A\x0Fexecution_error\x18\x06 \x01(\x09H\x00\x12 \x0A\x16result_vega_chart_json\x18\x07 \x01(\x09H\x00\x12!\x0A\x17result_natural_language\x18\x08 \x01(\x09H\x00\x12\x19\x0A\x0Fresult_csv_data\x18\x09 \x01(\x09H\x00\x12\x1F\x0A\x15result_reference_data\x18\x0A \x01(\x09H\x00\x12\x0F\x0A\x05error\x18\x0B \x01(\x09H\x00B\x06\x0A\x04kind\"\x9C\x01\x0A\x0CChartMessage\x12@\x0A\x05query\x18\x01 \x01(\x0B2/.google.cloud.geminidataanalytics.v1.ChartQueryH\x00\x12B\x0A\x06result\x18\x02 \x01(\x0B20.google.cloud.geminidataanalytics.v1.ChartResultH\x00B\x06\x0A\x04kind\"F\x0A\x0AChartQuery\x12\x19\x0A\x0Cinstructions\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10data_result_name\x18\x02 \x01(\x09B\x03\xE0A\x01\"\x7F\x0A\x0BChartResult\x121\x0A\x0Bvega_config\x18\x02 \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x12=\x0A\x05image\x18\x03 \x01(\x0B2).google.cloud.geminidataanalytics.v1.BlobB\x03\xE0A\x01\"!\x0A\x0CErrorMessage\x12\x11\x0A\x04text\x18\x01 \x01(\x09B\x03\xE0A\x03\"a\x0A\x0EExampleQueries\x12O\x0A\x0Fexample_queries\x18\x01 \x03(\x0B21.google.cloud.geminidataanalytics.v1.ExampleQueryB\x03\xE0A\x01\"1\x0A\x04Blob\x12\x16\x0A\x09mime_type\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04data\x18\x02 \x01(\x0CB\x03\xE0A\x022\xA7\x0A\x0A\x0FDataChatService\x12\x9D\x01\x0A\x04Chat\x120.google.cloud.geminidataanalytics.v1.ChatRequest\x1A,.google.cloud.geminidataanalytics.v1.Message\"3\x82\xD3\xE4\x93\x02-\"(/v1/{parent=projects/*/locations/*}:chat:\x01*0\x01\x12\xF6\x01\x0A\x12CreateConversation\x12>.google.cloud.geminidataanalytics.v1.CreateConversationRequest\x1A1.google.cloud.geminidataanalytics.v1.Conversation\"m\xDAA#parent,conversation,conversation_id\x82\xD3\xE4\x93\x02A\"1/v1/{parent=projects/*/locations/*}/conversations:\x0Cconversation\x12\xAE\x01\x0A\x12DeleteConversation\x12>.google.cloud.geminidataanalytics.v1.DeleteConversationRequest\x1A\x16.google.protobuf.Empty\"@\xDAA\x04name\x82\xD3\xE4\x93\x023*1/v1/{name=projects/*/locations/*/conversations/*}\x12\xC3\x01\x0A\x0FGetConversation\x12;.google.cloud.geminidataanalytics.v1.GetConversationRequest\x1A1.google.cloud.geminidataanalytics.v1.Conversation\"@\xDAA\x04name\x82\xD3\xE4\x93\x023\x121/v1/{name=projects/*/locations/*/conversations/*}\x12\xD6\x01\x0A\x11ListConversations\x12=.google.cloud.geminidataanalytics.v1.ListConversationsRequest\x1A>.google.cloud.geminidataanalytics.v1.ListConversationsResponse\"B\xDAA\x06parent\x82\xD3\xE4\x93\x023\x121/v1/{parent=projects/*/locations/*}/conversations\x12\xD2\x01\x0A\x0CListMessages\x128.google.cloud.geminidataanalytics.v1.ListMessagesRequest\x1A9.google.cloud.geminidataanalytics.v1.ListMessagesResponse\"M\xDAA\x06parent\x82\xD3\xE4\x93\x02>\x12internalAddGeneratedFile( - "\x0A\x97\x17\x0A4google/cloud/geminidataanalytics/v1/datasource.proto\x12#google.cloud.geminidataanalytics.v1\x1A\x1Cgoogle/protobuf/struct.proto\"\x93\x02\x0A\x14DatasourceReferences\x12J\x0A\x02bq\x18\x01 \x01(\x0B2<.google.cloud.geminidataanalytics.v1.BigQueryTableReferencesH\x00\x12Q\x0A\x06studio\x18\x02 \x01(\x0B2?.google.cloud.geminidataanalytics.v1.StudioDatasourceReferencesH\x00\x12N\x0A\x06looker\x18\x03 \x01(\x0B2<.google.cloud.geminidataanalytics.v1.LookerExploreReferencesH\x00B\x0C\x0A\x0Areferences\"u\x0A\x17BigQueryTableReferences\x12Z\x0A\x10table_references\x18\x01 \x03(\x0B2;.google.cloud.geminidataanalytics.v1.BigQueryTableReferenceB\x03\xE0A\x01\"\xA3\x01\x0A\x16BigQueryTableReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Adataset_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08table_id\x18\x04 \x01(\x09B\x03\xE0A\x02\x12@\x0A\x06schema\x18\x06 \x01(\x0B2+.google.cloud.geminidataanalytics.v1.SchemaB\x03\xE0A\x01\"|\x0A\x1AStudioDatasourceReferences\x12^\x0A\x11studio_references\x18\x02 \x03(\x0B2>.google.cloud.geminidataanalytics.v1.StudioDatasourceReferenceB\x03\xE0A\x01\"7\x0A\x19StudioDatasourceReference\x12\x1A\x0A\x0Ddatasource_id\x18\x01 \x01(\x09B\x03\xE0A\x02\"w\x0A\x17LookerExploreReferences\x12\\\x0A\x12explore_references\x18\x01 \x03(\x0B2;.google.cloud.geminidataanalytics.v1.LookerExploreReferenceB\x03\xE0A\x02\"\x9E\x02\x0A\x16LookerExploreReference\x12\x1D\x0A\x13looker_instance_uri\x18\x09 \x01(\x09H\x00\x12f\x0A\x1Cprivate_looker_instance_info\x18\x0A \x01(\x0B2>.google.cloud.geminidataanalytics.v1.PrivateLookerInstanceInfoH\x00\x12\x19\x0A\x0Clookml_model\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x14\x0A\x07explore\x18\x05 \x01(\x09B\x03\xE0A\x02\x12@\x0A\x06schema\x18\x08 \x01(\x0B2+.google.cloud.geminidataanalytics.v1.SchemaB\x03\xE0A\x01B\x0A\x0A\x08instance\"r\x0A\x1EBigQueryPropertyGraphReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Adataset_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1E\x0A\x11property_graph_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"W\x0A\x19PrivateLookerInstanceInfo\x12\x1A\x0A\x12looker_instance_id\x18\x01 \x01(\x09\x12\x1E\x0A\x16service_directory_name\x18\x02 \x01(\x09\"\xE4\x03\x0A\x0ADatasource\x12_\x0A\x18bigquery_table_reference\x18\x01 \x01(\x0B2;.google.cloud.geminidataanalytics.v1.BigQueryTableReferenceH\x00\x12\x1E\x0A\x14studio_datasource_id\x18\x02 \x01(\x09H\x00\x12_\x0A\x18looker_explore_reference\x18\x04 \x01(\x0B2;.google.cloud.geminidataanalytics.v1.LookerExploreReferenceH\x00\x12p\x0A!bigquery_property_graph_reference\x18\x10 \x01(\x0B2C.google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReferenceH\x00\x12@\x0A\x06schema\x18\x07 \x01(\x0B2+.google.cloud.geminidataanalytics.v1.SchemaB\x03\xE0A\x01\x123\x0A\x0Dstruct_schema\x18\x0A \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01B\x0B\x0A\x09reference\"\xEF\x01\x0A\x06Schema\x12?\x0A\x06fields\x18\x01 \x03(\x0B2*.google.cloud.geminidataanalytics.v1.FieldB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08synonyms\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x11\x0A\x04tags\x18\x04 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x05 \x01(\x09B\x03\xE0A\x01\x12E\x0A\x07filters\x18\x06 \x03(\x0B2/.google.cloud.geminidataanalytics.v1.DataFilterB\x03\xE0A\x01\"\x95\x02\x0A\x05Field\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04type\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04mode\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08synonyms\x18\x06 \x03(\x09B\x03\xE0A\x01\x12\x11\x0A\x04tags\x18\x07 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x08 \x01(\x09B\x03\xE0A\x01\x12B\x0A\x09subfields\x18\x09 \x03(\x0B2*.google.cloud.geminidataanalytics.v1.FieldB\x03\xE0A\x01\x12\x15\x0A\x08category\x18\x0A \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cvalue_format\x18\x0B \x01(\x09B\x03\xE0A\x01\"|\x0A\x0ADataFilter\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x01\x12F\x0A\x04type\x18\x03 \x01(\x0E23.google.cloud.geminidataanalytics.v1.DataFilterTypeB\x03\xE0A\x01*E\x0A\x0EDataFilterType\x12 \x0A\x1CDATA_FILTER_TYPE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DALWAYS_FILTER\x10\x01B\x8C\x02\x0A'com.google.cloud.geminidataanalytics.v1B\x0FDatasourceProtoP\x01ZYcloud.google.com/go/geminidataanalytics/apiv1/geminidataanalyticspb;geminidataanalyticspb\xAA\x02#Google.Cloud.GeminiDataAnalytics.V1\xCA\x02#Google\\Cloud\\GeminiDataAnalytics\\V1\xEA\x02&Google::Cloud::GeminiDataAnalytics::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisEvent.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisEvent.php deleted file mode 100644 index d3becd306291..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisEvent.php +++ /dev/null @@ -1,372 +0,0 @@ -google.cloud.geminidataanalytics.v1.AnalysisEvent - */ -class AnalysisEvent extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $planner_reasoning - * Python codegen planner's reasoning. - * @type string $coder_instruction - * Instructions issued for code generation. - * @type string $code - * Generated code. - * @type string $execution_output - * Output from code execution. - * @type string $execution_error - * An error from code execution. - * @type string $result_vega_chart_json - * Result as Vega chart JSON string. - * @type string $result_natural_language - * Result as NL string. - * @type string $result_csv_data - * Result as CSV string. - * @type string $result_reference_data - * Result as a reference to a data source. - * @type string $error - * A generic error message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Python codegen planner's reasoning. - * - * Generated from protobuf field string planner_reasoning = 2; - * @return string - */ - public function getPlannerReasoning() - { - return $this->readOneof(2); - } - - public function hasPlannerReasoning() - { - return $this->hasOneof(2); - } - - /** - * Python codegen planner's reasoning. - * - * Generated from protobuf field string planner_reasoning = 2; - * @param string $var - * @return $this - */ - public function setPlannerReasoning($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Instructions issued for code generation. - * - * Generated from protobuf field string coder_instruction = 3; - * @return string - */ - public function getCoderInstruction() - { - return $this->readOneof(3); - } - - public function hasCoderInstruction() - { - return $this->hasOneof(3); - } - - /** - * Instructions issued for code generation. - * - * Generated from protobuf field string coder_instruction = 3; - * @param string $var - * @return $this - */ - public function setCoderInstruction($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Generated code. - * - * Generated from protobuf field string code = 4; - * @return string - */ - public function getCode() - { - return $this->readOneof(4); - } - - public function hasCode() - { - return $this->hasOneof(4); - } - - /** - * Generated code. - * - * Generated from protobuf field string code = 4; - * @param string $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output from code execution. - * - * Generated from protobuf field string execution_output = 5; - * @return string - */ - public function getExecutionOutput() - { - return $this->readOneof(5); - } - - public function hasExecutionOutput() - { - return $this->hasOneof(5); - } - - /** - * Output from code execution. - * - * Generated from protobuf field string execution_output = 5; - * @param string $var - * @return $this - */ - public function setExecutionOutput($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * An error from code execution. - * - * Generated from protobuf field string execution_error = 6; - * @return string - */ - public function getExecutionError() - { - return $this->readOneof(6); - } - - public function hasExecutionError() - { - return $this->hasOneof(6); - } - - /** - * An error from code execution. - * - * Generated from protobuf field string execution_error = 6; - * @param string $var - * @return $this - */ - public function setExecutionError($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Result as Vega chart JSON string. - * - * Generated from protobuf field string result_vega_chart_json = 7; - * @return string - */ - public function getResultVegaChartJson() - { - return $this->readOneof(7); - } - - public function hasResultVegaChartJson() - { - return $this->hasOneof(7); - } - - /** - * Result as Vega chart JSON string. - * - * Generated from protobuf field string result_vega_chart_json = 7; - * @param string $var - * @return $this - */ - public function setResultVegaChartJson($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Result as NL string. - * - * Generated from protobuf field string result_natural_language = 8; - * @return string - */ - public function getResultNaturalLanguage() - { - return $this->readOneof(8); - } - - public function hasResultNaturalLanguage() - { - return $this->hasOneof(8); - } - - /** - * Result as NL string. - * - * Generated from protobuf field string result_natural_language = 8; - * @param string $var - * @return $this - */ - public function setResultNaturalLanguage($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Result as CSV string. - * - * Generated from protobuf field string result_csv_data = 9; - * @return string - */ - public function getResultCsvData() - { - return $this->readOneof(9); - } - - public function hasResultCsvData() - { - return $this->hasOneof(9); - } - - /** - * Result as CSV string. - * - * Generated from protobuf field string result_csv_data = 9; - * @param string $var - * @return $this - */ - public function setResultCsvData($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Result as a reference to a data source. - * - * Generated from protobuf field string result_reference_data = 10; - * @return string - */ - public function getResultReferenceData() - { - return $this->readOneof(10); - } - - public function hasResultReferenceData() - { - return $this->hasOneof(10); - } - - /** - * Result as a reference to a data source. - * - * Generated from protobuf field string result_reference_data = 10; - * @param string $var - * @return $this - */ - public function setResultReferenceData($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * A generic error message. - * - * Generated from protobuf field string error = 11; - * @return string - */ - public function getError() - { - return $this->readOneof(11); - } - - public function hasError() - { - return $this->hasOneof(11); - } - - /** - * A generic error message. - * - * Generated from protobuf field string error = 11; - * @param string $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisMessage.php deleted file mode 100644 index 619f2791054e..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisMessage.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.geminidataanalytics.v1.AnalysisMessage - */ -class AnalysisMessage extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\AnalysisQuery $query - * An analysis query. - * @type \Google\Cloud\GeminiDataAnalytics\V1\AnalysisEvent $progress_event - * An event indicating the progress of the analysis. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * An analysis query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisQuery query = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1\AnalysisQuery|null - */ - public function getQuery() - { - return $this->readOneof(1); - } - - public function hasQuery() - { - return $this->hasOneof(1); - } - - /** - * An analysis query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisQuery query = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1\AnalysisQuery $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\AnalysisQuery::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * An event indicating the progress of the analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisEvent progress_event = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1\AnalysisEvent|null - */ - public function getProgressEvent() - { - return $this->readOneof(2); - } - - public function hasProgressEvent() - { - return $this->hasOneof(2); - } - - /** - * An event indicating the progress of the analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisEvent progress_event = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1\AnalysisEvent $var - * @return $this - */ - public function setProgressEvent($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\AnalysisEvent::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisOptions.php deleted file mode 100644 index ab128ea7aaaa..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisOptions.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.geminidataanalytics.v1.AnalysisOptions - */ -class AnalysisOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Options for Python analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisOptions.Python python = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $python = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\AnalysisOptions\Python $python - * Optional. Options for Python analysis. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Options for Python analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisOptions.Python python = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\AnalysisOptions\Python|null - */ - public function getPython() - { - return $this->python; - } - - public function hasPython() - { - return isset($this->python); - } - - public function clearPython() - { - unset($this->python); - } - - /** - * Optional. Options for Python analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisOptions.Python python = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\AnalysisOptions\Python $var - * @return $this - */ - public function setPython($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\AnalysisOptions\Python::class); - $this->python = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisOptions/Python.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisOptions/Python.php deleted file mode 100644 index 43e2c4a9cc40..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisOptions/Python.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.geminidataanalytics.v1.AnalysisOptions.Python - */ -class Python extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Whether to enable Python analysis. - * Defaults to false. - * - * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Optional. Whether to enable Python analysis. - * Defaults to false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Whether to enable Python analysis. - * Defaults to false. - * - * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Optional. Whether to enable Python analysis. - * Defaults to false. - * - * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisQuery.php deleted file mode 100644 index 21dfff914053..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/AnalysisQuery.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.geminidataanalytics.v1.AnalysisQuery - */ -class AnalysisQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. An analysis question to help answer the user's original question. - * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $question = ''; - /** - * Optional. The names of previously retrieved data results to analyze. - * - * Generated from protobuf field repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $data_result_names; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $question - * Optional. An analysis question to help answer the user's original question. - * @type string[] $data_result_names - * Optional. The names of previously retrieved data results to analyze. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. An analysis question to help answer the user's original question. - * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getQuestion() - { - return $this->question; - } - - /** - * Optional. An analysis question to help answer the user's original question. - * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setQuestion($var) - { - GPBUtil::checkString($var, True); - $this->question = $var; - - return $this; - } - - /** - * Optional. The names of previously retrieved data results to analyze. - * - * Generated from protobuf field repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getDataResultNames() - { - return $this->data_result_names; - } - - /** - * Optional. The names of previously retrieved data results to analyze. - * - * Generated from protobuf field repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setDataResultNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->data_result_names = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryJob.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryJob.php deleted file mode 100644 index 3307f3525e36..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryJob.php +++ /dev/null @@ -1,263 +0,0 @@ -google.cloud.geminidataanalytics.v1.BigQueryJob - */ -class BigQueryJob extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project that the job belongs to. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * Required. The ID of the job. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * - * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $job_id = ''; - /** - * Optional. The location of the job. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * - * Generated from protobuf field string location = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $location = ''; - /** - * Optional. A reference to the destination table of the job's query results. - * See - * [JobConfigurationQuery](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryTableReference destination_table = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $destination_table = null; - /** - * Optional. The schema of the job's query results. - * See - * [JobStatistics2](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobstatistics2). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The project that the job belongs to. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * @type string $job_id - * Required. The ID of the job. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * @type string $location - * Optional. The location of the job. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * @type \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference $destination_table - * Optional. A reference to the destination table of the job's query results. - * See - * [JobConfigurationQuery](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery). - * @type \Google\Cloud\GeminiDataAnalytics\V1\Schema $schema - * Optional. The schema of the job's query results. - * See - * [JobStatistics2](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobstatistics2). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project that the job belongs to. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The project that the job belongs to. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The ID of the job. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * - * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * Required. The ID of the job. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * - * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * Optional. The location of the job. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * - * Generated from protobuf field string location = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Optional. The location of the job. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * - * Generated from protobuf field string location = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Optional. A reference to the destination table of the job's query results. - * See - * [JobConfigurationQuery](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryTableReference destination_table = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference|null - */ - public function getDestinationTable() - { - return $this->destination_table; - } - - public function hasDestinationTable() - { - return isset($this->destination_table); - } - - public function clearDestinationTable() - { - unset($this->destination_table); - } - - /** - * Optional. A reference to the destination table of the job's query results. - * See - * [JobConfigurationQuery](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryTableReference destination_table = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference $var - * @return $this - */ - public function setDestinationTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference::class); - $this->destination_table = $var; - - return $this; - } - - /** - * Optional. The schema of the job's query results. - * See - * [JobStatistics2](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobstatistics2). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\Schema|null - */ - public function getSchema() - { - return $this->schema; - } - - public function hasSchema() - { - return isset($this->schema); - } - - public function clearSchema() - { - unset($this->schema); - } - - /** - * Optional. The schema of the job's query results. - * See - * [JobStatistics2](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobstatistics2). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Schema $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Schema::class); - $this->schema = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryPropertyGraphReference.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryPropertyGraphReference.php deleted file mode 100644 index 9b1b44c8bd83..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryPropertyGraphReference.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReference - */ -class BigQueryPropertyGraphReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project that the property graph belongs to. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * Required. The dataset that the property graph belongs to. - * - * Generated from protobuf field string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $dataset_id = ''; - /** - * Required. The property graph id. - * - * Generated from protobuf field string property_graph_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $property_graph_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The project that the property graph belongs to. - * @type string $dataset_id - * Required. The dataset that the property graph belongs to. - * @type string $property_graph_id - * Required. The property graph id. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project that the property graph belongs to. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The project that the property graph belongs to. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The dataset that the property graph belongs to. - * - * Generated from protobuf field string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatasetId() - { - return $this->dataset_id; - } - - /** - * Required. The dataset that the property graph belongs to. - * - * Generated from protobuf field string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatasetId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_id = $var; - - return $this; - } - - /** - * Required. The property graph id. - * - * Generated from protobuf field string property_graph_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPropertyGraphId() - { - return $this->property_graph_id; - } - - /** - * Required. The property graph id. - * - * Generated from protobuf field string property_graph_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPropertyGraphId($var) - { - GPBUtil::checkString($var, True); - $this->property_graph_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryRoutine.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryRoutine.php deleted file mode 100644 index ccee90788580..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryRoutine.php +++ /dev/null @@ -1,115 +0,0 @@ -google.cloud.geminidataanalytics.v1.BigQueryRoutine - */ -class BigQueryRoutine extends \Google\Protobuf\Internal\Message -{ - /** - * The reference to the BigQuery routine. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryRoutineReference routine_reference = 1; - */ - protected $routine_reference = null; - /** - * User override or addition to description, to tell the agent when to use the - * UDF. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\BigQueryRoutineReference $routine_reference - * The reference to the BigQuery routine. - * @type string $description - * User override or addition to description, to tell the agent when to use the - * UDF. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * The reference to the BigQuery routine. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryRoutineReference routine_reference = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1\BigQueryRoutineReference|null - */ - public function getRoutineReference() - { - return $this->routine_reference; - } - - public function hasRoutineReference() - { - return isset($this->routine_reference); - } - - public function clearRoutineReference() - { - unset($this->routine_reference); - } - - /** - * The reference to the BigQuery routine. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryRoutineReference routine_reference = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1\BigQueryRoutineReference $var - * @return $this - */ - public function setRoutineReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\BigQueryRoutineReference::class); - $this->routine_reference = $var; - - return $this; - } - - /** - * User override or addition to description, to tell the agent when to use the - * UDF. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * User override or addition to description, to tell the agent when to use the - * UDF. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryRoutineReference.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryRoutineReference.php deleted file mode 100644 index 312c2aa518a2..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryRoutineReference.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.geminidataanalytics.v1.BigQueryRoutineReference - */ -class BigQueryRoutineReference extends \Google\Protobuf\Internal\Message -{ - /** - * The project ID of the routine. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * The dataset ID of the routine. - * - * Generated from protobuf field string dataset_id = 2; - */ - protected $dataset_id = ''; - /** - * The routine ID of the routine. - * - * Generated from protobuf field string routine_id = 3; - */ - protected $routine_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The project ID of the routine. - * @type string $dataset_id - * The dataset ID of the routine. - * @type string $routine_id - * The routine ID of the routine. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * The project ID of the routine. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The project ID of the routine. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The dataset ID of the routine. - * - * Generated from protobuf field string dataset_id = 2; - * @return string - */ - public function getDatasetId() - { - return $this->dataset_id; - } - - /** - * The dataset ID of the routine. - * - * Generated from protobuf field string dataset_id = 2; - * @param string $var - * @return $this - */ - public function setDatasetId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_id = $var; - - return $this; - } - - /** - * The routine ID of the routine. - * - * Generated from protobuf field string routine_id = 3; - * @return string - */ - public function getRoutineId() - { - return $this->routine_id; - } - - /** - * The routine ID of the routine. - * - * Generated from protobuf field string routine_id = 3; - * @param string $var - * @return $this - */ - public function setRoutineId($var) - { - GPBUtil::checkString($var, True); - $this->routine_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryTableReference.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryTableReference.php deleted file mode 100644 index 9cdd26c57ed2..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryTableReference.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.geminidataanalytics.v1.BigQueryTableReference - */ -class BigQueryTableReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project that the table belongs to. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * Required. The dataset that the table belongs to. - * - * Generated from protobuf field string dataset_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $dataset_id = ''; - /** - * Required. The table id. - * - * Generated from protobuf field string table_id = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table_id = ''; - /** - * Optional. The schema of the datasource. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The project that the table belongs to. - * @type string $dataset_id - * Required. The dataset that the table belongs to. - * @type string $table_id - * Required. The table id. - * @type \Google\Cloud\GeminiDataAnalytics\V1\Schema $schema - * Optional. The schema of the datasource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project that the table belongs to. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The project that the table belongs to. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The dataset that the table belongs to. - * - * Generated from protobuf field string dataset_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatasetId() - { - return $this->dataset_id; - } - - /** - * Required. The dataset that the table belongs to. - * - * Generated from protobuf field string dataset_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatasetId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_id = $var; - - return $this; - } - - /** - * Required. The table id. - * - * Generated from protobuf field string table_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * Required. The table id. - * - * Generated from protobuf field string table_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - - /** - * Optional. The schema of the datasource. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\Schema|null - */ - public function getSchema() - { - return $this->schema; - } - - public function hasSchema() - { - return isset($this->schema); - } - - public function clearSchema() - { - unset($this->schema); - } - - /** - * Optional. The schema of the datasource. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Schema $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Schema::class); - $this->schema = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryTableReferences.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryTableReferences.php deleted file mode 100644 index ffb0f9a9f64c..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/BigQueryTableReferences.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.geminidataanalytics.v1.BigQueryTableReferences - */ -class BigQueryTableReferences extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. References to BigQuery tables. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.BigQueryTableReference table_references = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $table_references; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference[] $table_references - * Optional. References to BigQuery tables. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Optional. References to BigQuery tables. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.BigQueryTableReference table_references = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference> - */ - public function getTableReferences() - { - return $this->table_references; - } - - /** - * Optional. References to BigQuery tables. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.BigQueryTableReference table_references = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference[] $var - * @return $this - */ - public function setTableReferences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference::class); - $this->table_references = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Blob.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Blob.php deleted file mode 100644 index 148be0cc50c3..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Blob.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.geminidataanalytics.v1.Blob - */ -class Blob extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The IANA standard MIME type of the message data. - * - * Generated from protobuf field string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $mime_type = ''; - /** - * Required. The data represented as bytes. - * - * Generated from protobuf field bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $mime_type - * Required. The IANA standard MIME type of the message data. - * @type string $data - * Required. The data represented as bytes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The IANA standard MIME type of the message data. - * - * Generated from protobuf field string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * Required. The IANA standard MIME type of the message data. - * - * Generated from protobuf field string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - - /** - * Required. The data represented as bytes. - * - * Generated from protobuf field bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getData() - { - return $this->data; - } - - /** - * Required. The data represented as bytes. - * - * Generated from protobuf field bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setData($var) - { - GPBUtil::checkString($var, False); - $this->data = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartMessage.php deleted file mode 100644 index cbe1fc637cf3..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartMessage.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.geminidataanalytics.v1.ChartMessage - */ -class ChartMessage extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\ChartQuery $query - * A query for generating a chart. - * @type \Google\Cloud\GeminiDataAnalytics\V1\ChartResult $result - * The result of a chart generation query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * A query for generating a chart. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChartQuery query = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1\ChartQuery|null - */ - public function getQuery() - { - return $this->readOneof(1); - } - - public function hasQuery() - { - return $this->hasOneof(1); - } - - /** - * A query for generating a chart. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChartQuery query = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1\ChartQuery $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ChartQuery::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The result of a chart generation query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChartResult result = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1\ChartResult|null - */ - public function getResult() - { - return $this->readOneof(2); - } - - public function hasResult() - { - return $this->hasOneof(2); - } - - /** - * The result of a chart generation query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChartResult result = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1\ChartResult $var - * @return $this - */ - public function setResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ChartResult::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartQuery.php deleted file mode 100644 index 63e4568c3a98..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartQuery.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.geminidataanalytics.v1.ChartQuery - */ -class ChartQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Natural language instructions for generating the chart. - * - * Generated from protobuf field string instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $instructions = ''; - /** - * Optional. The name of a previously retrieved data result to use in the - * chart. - * - * Generated from protobuf field string data_result_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $data_result_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $instructions - * Optional. Natural language instructions for generating the chart. - * @type string $data_result_name - * Optional. The name of a previously retrieved data result to use in the - * chart. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Natural language instructions for generating the chart. - * - * Generated from protobuf field string instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getInstructions() - { - return $this->instructions; - } - - /** - * Optional. Natural language instructions for generating the chart. - * - * Generated from protobuf field string instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setInstructions($var) - { - GPBUtil::checkString($var, True); - $this->instructions = $var; - - return $this; - } - - /** - * Optional. The name of a previously retrieved data result to use in the - * chart. - * - * Generated from protobuf field string data_result_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDataResultName() - { - return $this->data_result_name; - } - - /** - * Optional. The name of a previously retrieved data result to use in the - * chart. - * - * Generated from protobuf field string data_result_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDataResultName($var) - { - GPBUtil::checkString($var, True); - $this->data_result_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartResult.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartResult.php deleted file mode 100644 index a48ccf7d997b..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChartResult.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.geminidataanalytics.v1.ChartResult - */ -class ChartResult extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A generated Vega chart config. - * See https://vega.github.io/vega/docs/config/ - * - * Generated from protobuf field .google.protobuf.Struct vega_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $vega_config = null; - /** - * Optional. A rendering of the chart if this was requested in the context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Blob image = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $image = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Struct $vega_config - * Optional. A generated Vega chart config. - * See https://vega.github.io/vega/docs/config/ - * @type \Google\Cloud\GeminiDataAnalytics\V1\Blob $image - * Optional. A rendering of the chart if this was requested in the context. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A generated Vega chart config. - * See https://vega.github.io/vega/docs/config/ - * - * Generated from protobuf field .google.protobuf.Struct vega_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Struct|null - */ - public function getVegaConfig() - { - return $this->vega_config; - } - - public function hasVegaConfig() - { - return isset($this->vega_config); - } - - public function clearVegaConfig() - { - unset($this->vega_config); - } - - /** - * Optional. A generated Vega chart config. - * See https://vega.github.io/vega/docs/config/ - * - * Generated from protobuf field .google.protobuf.Struct vega_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setVegaConfig($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->vega_config = $var; - - return $this; - } - - /** - * Optional. A rendering of the chart if this was requested in the context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Blob image = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\Blob|null - */ - public function getImage() - { - return $this->image; - } - - public function hasImage() - { - return isset($this->image); - } - - public function clearImage() - { - unset($this->image); - } - - /** - * Optional. A rendering of the chart if this was requested in the context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Blob image = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Blob $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Blob::class); - $this->image = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest.php deleted file mode 100644 index 5b33b358fb23..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest.php +++ /dev/null @@ -1,453 +0,0 @@ -google.cloud.geminidataanalytics.v1.ChatRequest - */ -class ChatRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent value for chat request. - * Pattern: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Required. Content of current conversation. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Message messages = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $messages; - /** - * Optional. The credentials to use when calling the data source(s) specified - * in the context. - * This field can be used to provide credentials for various data sources. - * For example, when connecting to Looker, it currently supports both OAuth - * token and API key-based credentials, as described in - * [Authentication with an - * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Credentials credentials = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $credentials = null; - /** - * Optional. The thinking mode to use for the agent loop. - * Defaults to THINKING_MODE_UNSPECIFIED if not specified. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChatRequest.ThinkingMode thinking_mode = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $thinking_mode = 0; - /** - * Optional. The model to use for the agent loop when processing the request. - * This setting only has an effect when context.options.model is not set. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChatRequest.Model model = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $model = 0; - protected $context_provider; - protected $datasource_settings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\Context $inline_context - * Optional. Inline context for the chat request. Use this to chat - * statelessly (without managed conversation persistence and without an - * Agent) by passing all context inline. - * @type \Google\Cloud\GeminiDataAnalytics\V1\ConversationReference $conversation_reference - * Optional. Reference to a persisted conversation and agent context. - * Use this to chat with an Agent using managed conversation persistence. - * @type \Google\Cloud\GeminiDataAnalytics\V1\DataAgentContext $data_agent_context - * Optional. Context for the chat request. Use this to chat with an Agent - * statelessly, without managed conversation persistence. - * @type \Google\Cloud\GeminiDataAnalytics\V1\ClientManagedResourceContext $client_managed_resource_context - * Optional. Context with client managed resources. - * Some clients may not use GDA managed resources including - * conversations and agents, instead they create and manage their own - * conversations and agents resources. - * @type \Google\Cloud\GeminiDataAnalytics\V1\LookerSettings $looker_settings - * Optional. Looker specific settings. - * @type string $parent - * Required. The parent value for chat request. - * Pattern: `projects/{project}/locations/{location}` - * @type \Google\Cloud\GeminiDataAnalytics\V1\Message[] $messages - * Required. Content of current conversation. - * @type \Google\Cloud\GeminiDataAnalytics\V1\Credentials $credentials - * Optional. The credentials to use when calling the data source(s) specified - * in the context. - * This field can be used to provide credentials for various data sources. - * For example, when connecting to Looker, it currently supports both OAuth - * token and API key-based credentials, as described in - * [Authentication with an - * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). - * @type int $thinking_mode - * Optional. The thinking mode to use for the agent loop. - * Defaults to THINKING_MODE_UNSPECIFIED if not specified. - * @type int $model - * Optional. The model to use for the agent loop when processing the request. - * This setting only has an effect when context.options.model is not set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Inline context for the chat request. Use this to chat - * statelessly (without managed conversation persistence and without an - * Agent) by passing all context inline. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context inline_context = 101 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\Context|null - */ - public function getInlineContext() - { - return $this->readOneof(101); - } - - public function hasInlineContext() - { - return $this->hasOneof(101); - } - - /** - * Optional. Inline context for the chat request. Use this to chat - * statelessly (without managed conversation persistence and without an - * Agent) by passing all context inline. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context inline_context = 101 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Context $var - * @return $this - */ - public function setInlineContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Context::class); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * Optional. Reference to a persisted conversation and agent context. - * Use this to chat with an Agent using managed conversation persistence. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ConversationReference conversation_reference = 103 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\ConversationReference|null - */ - public function getConversationReference() - { - return $this->readOneof(103); - } - - public function hasConversationReference() - { - return $this->hasOneof(103); - } - - /** - * Optional. Reference to a persisted conversation and agent context. - * Use this to chat with an Agent using managed conversation persistence. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ConversationReference conversation_reference = 103 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\ConversationReference $var - * @return $this - */ - public function setConversationReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ConversationReference::class); - $this->writeOneof(103, $var); - - return $this; - } - - /** - * Optional. Context for the chat request. Use this to chat with an Agent - * statelessly, without managed conversation persistence. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgentContext data_agent_context = 104 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\DataAgentContext|null - */ - public function getDataAgentContext() - { - return $this->readOneof(104); - } - - public function hasDataAgentContext() - { - return $this->hasOneof(104); - } - - /** - * Optional. Context for the chat request. Use this to chat with an Agent - * statelessly, without managed conversation persistence. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgentContext data_agent_context = 104 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\DataAgentContext $var - * @return $this - */ - public function setDataAgentContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DataAgentContext::class); - $this->writeOneof(104, $var); - - return $this; - } - - /** - * Optional. Context with client managed resources. - * Some clients may not use GDA managed resources including - * conversations and agents, instead they create and manage their own - * conversations and agents resources. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\ClientManagedResourceContext|null - */ - public function getClientManagedResourceContext() - { - return $this->readOneof(105); - } - - public function hasClientManagedResourceContext() - { - return $this->hasOneof(105); - } - - /** - * Optional. Context with client managed resources. - * Some clients may not use GDA managed resources including - * conversations and agents, instead they create and manage their own - * conversations and agents resources. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\ClientManagedResourceContext $var - * @return $this - */ - public function setClientManagedResourceContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ClientManagedResourceContext::class); - $this->writeOneof(105, $var); - - return $this; - } - - /** - * Optional. Looker specific settings. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerSettings looker_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\LookerSettings|null - */ - public function getLookerSettings() - { - return $this->readOneof(13); - } - - public function hasLookerSettings() - { - return $this->hasOneof(13); - } - - /** - * Optional. Looker specific settings. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerSettings looker_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\LookerSettings $var - * @return $this - */ - public function setLookerSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\LookerSettings::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Required. The parent value for chat request. - * Pattern: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent value for chat request. - * Pattern: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Content of current conversation. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Message messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\Message> - */ - public function getMessages() - { - return $this->messages; - } - - /** - * Required. Content of current conversation. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Message messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Message[] $var - * @return $this - */ - public function setMessages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\Message::class); - $this->messages = $arr; - - return $this; - } - - /** - * Optional. The credentials to use when calling the data source(s) specified - * in the context. - * This field can be used to provide credentials for various data sources. - * For example, when connecting to Looker, it currently supports both OAuth - * token and API key-based credentials, as described in - * [Authentication with an - * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Credentials credentials = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\Credentials|null - */ - public function getCredentials() - { - return $this->credentials; - } - - public function hasCredentials() - { - return isset($this->credentials); - } - - public function clearCredentials() - { - unset($this->credentials); - } - - /** - * Optional. The credentials to use when calling the data source(s) specified - * in the context. - * This field can be used to provide credentials for various data sources. - * For example, when connecting to Looker, it currently supports both OAuth - * token and API key-based credentials, as described in - * [Authentication with an - * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Credentials credentials = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Credentials $var - * @return $this - */ - public function setCredentials($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Credentials::class); - $this->credentials = $var; - - return $this; - } - - /** - * Optional. The thinking mode to use for the agent loop. - * Defaults to THINKING_MODE_UNSPECIFIED if not specified. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChatRequest.ThinkingMode thinking_mode = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getThinkingMode() - { - return $this->thinking_mode; - } - - /** - * Optional. The thinking mode to use for the agent loop. - * Defaults to THINKING_MODE_UNSPECIFIED if not specified. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChatRequest.ThinkingMode thinking_mode = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setThinkingMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1\ChatRequest\ThinkingMode::class); - $this->thinking_mode = $var; - - return $this; - } - - /** - * Optional. The model to use for the agent loop when processing the request. - * This setting only has an effect when context.options.model is not set. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChatRequest.Model model = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getModel() - { - return $this->model; - } - - /** - * Optional. The model to use for the agent loop when processing the request. - * This setting only has an effect when context.options.model is not set. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChatRequest.Model model = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setModel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1\ChatRequest\Model::class); - $this->model = $var; - - return $this; - } - - /** - * @return string - */ - public function getContextProvider() - { - return $this->whichOneof("context_provider"); - } - - /** - * @return string - */ - public function getDatasourceSettings() - { - return $this->whichOneof("datasource_settings"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest/Model.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest/Model.php deleted file mode 100644 index 7e0355bc0b49..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest/Model.php +++ /dev/null @@ -1,58 +0,0 @@ -google.cloud.geminidataanalytics.v1.ChatRequest.Model - */ -class Model -{ - /** - * No model specified. The default model will be used. Currently, this is - * `gemini-3.0-flash-preview`. - * - * Generated from protobuf enum MODEL_UNSPECIFIED = 0; - */ - const MODEL_UNSPECIFIED = 0; - /** - * Use the most up-to-date non-preview model. Currently, this is - * `gemini-2.5-flash`. This constrains the request level settings. The - * default will change to `gemini-2.5-flash`, and setting `thinking_mode` - * will not be supported. - * - * Generated from protobuf enum LATEST_GA_MODEL = 1; - */ - const LATEST_GA_MODEL = 1; - - private static $valueToName = [ - self::MODEL_UNSPECIFIED => 'MODEL_UNSPECIFIED', - self::LATEST_GA_MODEL => 'LATEST_GA_MODEL', - ]; - - 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest/ThinkingMode.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest/ThinkingMode.php deleted file mode 100644 index 8f50ebf43cd1..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ChatRequest/ThinkingMode.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.geminidataanalytics.v1.ChatRequest.ThinkingMode - */ -class ThinkingMode -{ - /** - * Unspecified thinking mode, agent will use THINKING mode by default. - * - * Generated from protobuf enum THINKING_MODE_UNSPECIFIED = 0; - */ - const THINKING_MODE_UNSPECIFIED = 0; - /** - * Fast mode, answers quickly. - * - * Generated from protobuf enum FAST = 1; - */ - const FAST = 1; - /** - * Thinking mode, solves complex problems. - * - * Generated from protobuf enum THINKING = 2; - */ - const THINKING = 2; - - private static $valueToName = [ - self::THINKING_MODE_UNSPECIFIED => 'THINKING_MODE_UNSPECIFIED', - self::FAST => 'FAST', - self::THINKING => 'THINKING', - ]; - - 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Citation.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Citation.php deleted file mode 100644 index 1c5b72301cda..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Citation.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.geminidataanalytics.v1.Citation - */ -class Citation extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. List of the sources being cited. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.CitationSource sources = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $sources; - /** - * Output only. List of the anchors of the citations. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.CitationAnchor anchors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $anchors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\CitationSource[] $sources - * Output only. List of the sources being cited. - * @type \Google\Cloud\GeminiDataAnalytics\V1\CitationAnchor[] $anchors - * Output only. List of the anchors of the citations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * Output only. List of the sources being cited. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.CitationSource sources = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\CitationSource> - */ - public function getSources() - { - return $this->sources; - } - - /** - * Output only. List of the sources being cited. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.CitationSource sources = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\CitationSource[] $var - * @return $this - */ - public function setSources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\CitationSource::class); - $this->sources = $arr; - - return $this; - } - - /** - * Output only. List of the anchors of the citations. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.CitationAnchor anchors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\CitationAnchor> - */ - public function getAnchors() - { - return $this->anchors; - } - - /** - * Output only. List of the anchors of the citations. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.CitationAnchor anchors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\CitationAnchor[] $var - * @return $this - */ - public function setAnchors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\CitationAnchor::class); - $this->anchors = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationAnchor.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationAnchor.php deleted file mode 100644 index b62b20cd7a39..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationAnchor.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.geminidataanalytics.v1.CitationAnchor - */ -class CitationAnchor extends \Google\Protobuf\Internal\Message -{ - protected $anchor_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\CitationAnchor\TextMessageCitationAnchor $text_message_anchor - * Output only. Only set if the citation is for a TextMessage. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Only set if the citation is for a TextMessage. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.CitationAnchor.TextMessageCitationAnchor text_message_anchor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\CitationAnchor\TextMessageCitationAnchor|null - */ - public function getTextMessageAnchor() - { - return $this->readOneof(1); - } - - public function hasTextMessageAnchor() - { - return $this->hasOneof(1); - } - - /** - * Output only. Only set if the citation is for a TextMessage. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.CitationAnchor.TextMessageCitationAnchor text_message_anchor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\CitationAnchor\TextMessageCitationAnchor $var - * @return $this - */ - public function setTextMessageAnchor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\CitationAnchor\TextMessageCitationAnchor::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getAnchorType() - { - return $this->whichOneof("anchor_type"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationAnchor/TextMessageCitationAnchor.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationAnchor/TextMessageCitationAnchor.php deleted file mode 100644 index b3b40a3b811d..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationAnchor/TextMessageCitationAnchor.php +++ /dev/null @@ -1,197 +0,0 @@ -google.cloud.geminidataanalytics.v1.CitationAnchor.TextMessageCitationAnchor - */ -class TextMessageCitationAnchor extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The 0-based index of the part within the TextMessage.parts - * field. - * - * Generated from protobuf field int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $part_index = 0; - /** - * Output only. The offset, measured in UTF-8 bytes, within the part string - * where the citation begins (inclusive). Example: For the text "Hello, - * world" where "world" is cited, the start offset bytes (inclusive) is 7 - * and the end offset bytes (exclusive) is 12. - * - * Generated from protobuf field int32 start_offset_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_offset_bytes = 0; - /** - * Output only. The offset, measured in UTF-8 bytes, within the part string - * where the citation ends (exclusive). Example: For the text "Hello, world" - * where "world" is cited, the start offset bytes (inclusive) is 7 and the - * end offset bytes (exclusive) is 12. - * - * Generated from protobuf field int32 end_offset_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_offset_bytes = 0; - /** - * Output only. The ids of the sources that are cited. - * - * Generated from protobuf field repeated string source_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $source_ids; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $part_index - * Output only. The 0-based index of the part within the TextMessage.parts - * field. - * @type int $start_offset_bytes - * Output only. The offset, measured in UTF-8 bytes, within the part string - * where the citation begins (inclusive). Example: For the text "Hello, - * world" where "world" is cited, the start offset bytes (inclusive) is 7 - * and the end offset bytes (exclusive) is 12. - * @type int $end_offset_bytes - * Output only. The offset, measured in UTF-8 bytes, within the part string - * where the citation ends (exclusive). Example: For the text "Hello, world" - * where "world" is cited, the start offset bytes (inclusive) is 7 and the - * end offset bytes (exclusive) is 12. - * @type string[] $source_ids - * Output only. The ids of the sources that are cited. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The 0-based index of the part within the TextMessage.parts - * field. - * - * Generated from protobuf field int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getPartIndex() - { - return $this->part_index; - } - - /** - * Output only. The 0-based index of the part within the TextMessage.parts - * field. - * - * Generated from protobuf field int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setPartIndex($var) - { - GPBUtil::checkInt32($var); - $this->part_index = $var; - - return $this; - } - - /** - * Output only. The offset, measured in UTF-8 bytes, within the part string - * where the citation begins (inclusive). Example: For the text "Hello, - * world" where "world" is cited, the start offset bytes (inclusive) is 7 - * and the end offset bytes (exclusive) is 12. - * - * Generated from protobuf field int32 start_offset_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStartOffsetBytes() - { - return $this->start_offset_bytes; - } - - /** - * Output only. The offset, measured in UTF-8 bytes, within the part string - * where the citation begins (inclusive). Example: For the text "Hello, - * world" where "world" is cited, the start offset bytes (inclusive) is 7 - * and the end offset bytes (exclusive) is 12. - * - * Generated from protobuf field int32 start_offset_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStartOffsetBytes($var) - { - GPBUtil::checkInt32($var); - $this->start_offset_bytes = $var; - - return $this; - } - - /** - * Output only. The offset, measured in UTF-8 bytes, within the part string - * where the citation ends (exclusive). Example: For the text "Hello, world" - * where "world" is cited, the start offset bytes (inclusive) is 7 and the - * end offset bytes (exclusive) is 12. - * - * Generated from protobuf field int32 end_offset_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getEndOffsetBytes() - { - return $this->end_offset_bytes; - } - - /** - * Output only. The offset, measured in UTF-8 bytes, within the part string - * where the citation ends (exclusive). Example: For the text "Hello, world" - * where "world" is cited, the start offset bytes (inclusive) is 7 and the - * end offset bytes (exclusive) is 12. - * - * Generated from protobuf field int32 end_offset_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setEndOffsetBytes($var) - { - GPBUtil::checkInt32($var); - $this->end_offset_bytes = $var; - - return $this; - } - - /** - * Output only. The ids of the sources that are cited. - * - * Generated from protobuf field repeated string source_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField - */ - public function getSourceIds() - { - return $this->source_ids; - } - - /** - * Output only. The ids of the sources that are cited. - * - * Generated from protobuf field repeated string source_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string[] $var - * @return $this - */ - public function setSourceIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->source_ids = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationSource.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationSource.php deleted file mode 100644 index 46196e350386..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CitationSource.php +++ /dev/null @@ -1,213 +0,0 @@ -google.cloud.geminidataanalytics.v1.CitationSource - */ -class CitationSource extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Unique identifier of the source. This ID is service-generated - * and is unique within the scope of a single `Citation` message. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $id = ''; - /** - * Output only. The title of the source. - * - * Generated from protobuf field string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $title = ''; - protected $source_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * Output only. The uri used as the source, such as a web grounding URL. - * @type \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery $example_query - * Output only. The example query used as the source. - * @type \Google\Cloud\GeminiDataAnalytics\V1\GlossaryTerm $glossary_term - * Output only. The glossary term used as the source. - * @type string $id - * Output only. Unique identifier of the source. This ID is service-generated - * and is unique within the scope of a single `Citation` message. - * @type string $title - * Output only. The title of the source. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The uri used as the source, such as a web grounding URL. - * - * Generated from protobuf field string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUri() - { - return $this->readOneof(3); - } - - public function hasUri() - { - return $this->hasOneof(3); - } - - /** - * Output only. The uri used as the source, such as a web grounding URL. - * - * Generated from protobuf field string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Output only. The example query used as the source. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery|null - */ - public function getExampleQuery() - { - return $this->readOneof(4); - } - - public function hasExampleQuery() - { - return $this->hasOneof(4); - } - - /** - * Output only. The example query used as the source. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery $var - * @return $this - */ - public function setExampleQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output only. The glossary term used as the source. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_term = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\GlossaryTerm|null - */ - public function getGlossaryTerm() - { - return $this->readOneof(5); - } - - public function hasGlossaryTerm() - { - return $this->hasOneof(5); - } - - /** - * Output only. The glossary term used as the source. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_term = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\GlossaryTerm $var - * @return $this - */ - public function setGlossaryTerm($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\GlossaryTerm::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Output only. Unique identifier of the source. This ID is service-generated - * and is unique within the scope of a single `Citation` message. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Output only. Unique identifier of the source. This ID is service-generated - * and is unique within the scope of a single `Citation` message. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Output only. The title of the source. - * - * Generated from protobuf field string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Output only. The title of the source. - * - * Generated from protobuf field string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * @return string - */ - public function getSourceType() - { - return $this->whichOneof("source_type"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ClientManagedResourceContext.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ClientManagedResourceContext.php deleted file mode 100644 index acc25464673c..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ClientManagedResourceContext.php +++ /dev/null @@ -1,152 +0,0 @@ -google.cloud.geminidataanalytics.v1.ClientManagedResourceContext - */ -class ClientManagedResourceContext extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Context for the chat request. Use this to chat without GDA API - * managed conversation and agent persistence by passing all context inline. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $inline_context = null; - /** - * Optional. The client managed conversation id. - * - * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $conversation_id = ''; - /** - * Optional. The client managed agent id. - * - * Generated from protobuf field string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $agent_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\Context $inline_context - * Required. Context for the chat request. Use this to chat without GDA API - * managed conversation and agent persistence by passing all context inline. - * @type string $conversation_id - * Optional. The client managed conversation id. - * @type string $agent_id - * Optional. The client managed agent id. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Context for the chat request. Use this to chat without GDA API - * managed conversation and agent persistence by passing all context inline. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\Context|null - */ - public function getInlineContext() - { - return $this->inline_context; - } - - public function hasInlineContext() - { - return isset($this->inline_context); - } - - public function clearInlineContext() - { - unset($this->inline_context); - } - - /** - * Required. Context for the chat request. Use this to chat without GDA API - * managed conversation and agent persistence by passing all context inline. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Context $var - * @return $this - */ - public function setInlineContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Context::class); - $this->inline_context = $var; - - return $this; - } - - /** - * Optional. The client managed conversation id. - * - * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getConversationId() - { - return $this->conversation_id; - } - - /** - * Optional. The client managed conversation id. - * - * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setConversationId($var) - { - GPBUtil::checkString($var, True); - $this->conversation_id = $var; - - return $this; - } - - /** - * Optional. The client managed agent id. - * - * Generated from protobuf field string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAgentId() - { - return $this->agent_id; - } - - /** - * Optional. The client managed agent id. - * - * Generated from protobuf field string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAgentId($var) - { - GPBUtil::checkString($var, True); - $this->agent_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context.php deleted file mode 100644 index a3c7300eadbc..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context.php +++ /dev/null @@ -1,379 +0,0 @@ -google.cloud.geminidataanalytics.v1.Context - */ -class Context extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The basic entry point for data owners creating domain knowledge - * for Agent. - * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age - * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) - * can help the model understand the business context around a user question. - * - * Generated from protobuf field string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $system_instruction = ''; - /** - * Required. Data sources that are available for answering the question. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $datasource_references = null; - /** - * Optional. Additional options for the conversation. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $options = null; - /** - * Optional. A list of example queries, providing examples of relevant and - * commonly used SQL queries and their corresponding natural language queries - * optionally present. Currently only used for BigQuery data sources and - * databases (alloydb, cloudsql, spanner) data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $example_queries; - /** - * Optional. A list of golden queries, providing examples of relevant and - * commonly used Looker queries and their corresponding natural language - * queries optionally present. Only supported for Looker data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.LookerGoldenQuery looker_golden_queries = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $looker_golden_queries; - /** - * Optional. Term definitions (currently, only user authored) - * Not supported for databases (alloydb, cloudsql, spanner) data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $glossary_terms; - /** - * Optional. Relationships between table schema, including referencing and - * referenced columns. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $schema_relationships; - /** - * Optional. A collection of user functions to be included in context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.UserFunctions user_functions = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $user_functions = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $system_instruction - * Optional. The basic entry point for data owners creating domain knowledge - * for Agent. - * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age - * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) - * can help the model understand the business context around a user question. - * @type \Google\Cloud\GeminiDataAnalytics\V1\DatasourceReferences $datasource_references - * Required. Data sources that are available for answering the question. - * @type \Google\Cloud\GeminiDataAnalytics\V1\ConversationOptions $options - * Optional. Additional options for the conversation. - * @type \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery[] $example_queries - * Optional. A list of example queries, providing examples of relevant and - * commonly used SQL queries and their corresponding natural language queries - * optionally present. Currently only used for BigQuery data sources and - * databases (alloydb, cloudsql, spanner) data sources. - * @type \Google\Cloud\GeminiDataAnalytics\V1\LookerGoldenQuery[] $looker_golden_queries - * Optional. A list of golden queries, providing examples of relevant and - * commonly used Looker queries and their corresponding natural language - * queries optionally present. Only supported for Looker data sources. - * @type \Google\Cloud\GeminiDataAnalytics\V1\GlossaryTerm[] $glossary_terms - * Optional. Term definitions (currently, only user authored) - * Not supported for databases (alloydb, cloudsql, spanner) data sources. - * @type \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship[] $schema_relationships - * Optional. Relationships between table schema, including referencing and - * referenced columns. - * @type \Google\Cloud\GeminiDataAnalytics\V1\UserFunctions $user_functions - * Optional. A collection of user functions to be included in context. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The basic entry point for data owners creating domain knowledge - * for Agent. - * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age - * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) - * can help the model understand the business context around a user question. - * - * Generated from protobuf field string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSystemInstruction() - { - return $this->system_instruction; - } - - /** - * Optional. The basic entry point for data owners creating domain knowledge - * for Agent. - * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age - * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) - * can help the model understand the business context around a user question. - * - * Generated from protobuf field string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSystemInstruction($var) - { - GPBUtil::checkString($var, True); - $this->system_instruction = $var; - - return $this; - } - - /** - * Required. Data sources that are available for answering the question. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\DatasourceReferences|null - */ - public function getDatasourceReferences() - { - return $this->datasource_references; - } - - public function hasDatasourceReferences() - { - return isset($this->datasource_references); - } - - public function clearDatasourceReferences() - { - unset($this->datasource_references); - } - - /** - * Required. Data sources that are available for answering the question. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\DatasourceReferences $var - * @return $this - */ - public function setDatasourceReferences($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DatasourceReferences::class); - $this->datasource_references = $var; - - return $this; - } - - /** - * Optional. Additional options for the conversation. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\ConversationOptions|null - */ - public function getOptions() - { - return $this->options; - } - - public function hasOptions() - { - return isset($this->options); - } - - public function clearOptions() - { - unset($this->options); - } - - /** - * Optional. Additional options for the conversation. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\ConversationOptions $var - * @return $this - */ - public function setOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ConversationOptions::class); - $this->options = $var; - - return $this; - } - - /** - * Optional. A list of example queries, providing examples of relevant and - * commonly used SQL queries and their corresponding natural language queries - * optionally present. Currently only used for BigQuery data sources and - * databases (alloydb, cloudsql, spanner) data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery> - */ - public function getExampleQueries() - { - return $this->example_queries; - } - - /** - * Optional. A list of example queries, providing examples of relevant and - * commonly used SQL queries and their corresponding natural language queries - * optionally present. Currently only used for BigQuery data sources and - * databases (alloydb, cloudsql, spanner) data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery[] $var - * @return $this - */ - public function setExampleQueries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery::class); - $this->example_queries = $arr; - - return $this; - } - - /** - * Optional. A list of golden queries, providing examples of relevant and - * commonly used Looker queries and their corresponding natural language - * queries optionally present. Only supported for Looker data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.LookerGoldenQuery looker_golden_queries = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\LookerGoldenQuery> - */ - public function getLookerGoldenQueries() - { - return $this->looker_golden_queries; - } - - /** - * Optional. A list of golden queries, providing examples of relevant and - * commonly used Looker queries and their corresponding natural language - * queries optionally present. Only supported for Looker data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.LookerGoldenQuery looker_golden_queries = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\LookerGoldenQuery[] $var - * @return $this - */ - public function setLookerGoldenQueries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\LookerGoldenQuery::class); - $this->looker_golden_queries = $arr; - - return $this; - } - - /** - * Optional. Term definitions (currently, only user authored) - * Not supported for databases (alloydb, cloudsql, spanner) data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\GlossaryTerm> - */ - public function getGlossaryTerms() - { - return $this->glossary_terms; - } - - /** - * Optional. Term definitions (currently, only user authored) - * Not supported for databases (alloydb, cloudsql, spanner) data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\GlossaryTerm[] $var - * @return $this - */ - public function setGlossaryTerms($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\GlossaryTerm::class); - $this->glossary_terms = $arr; - - return $this; - } - - /** - * Optional. Relationships between table schema, including referencing and - * referenced columns. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship> - */ - public function getSchemaRelationships() - { - return $this->schema_relationships; - } - - /** - * Optional. Relationships between table schema, including referencing and - * referenced columns. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship[] $var - * @return $this - */ - public function setSchemaRelationships($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship::class); - $this->schema_relationships = $arr; - - return $this; - } - - /** - * Optional. A collection of user functions to be included in context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.UserFunctions user_functions = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\UserFunctions|null - */ - public function getUserFunctions() - { - return $this->user_functions; - } - - public function hasUserFunctions() - { - return isset($this->user_functions); - } - - public function clearUserFunctions() - { - unset($this->user_functions); - } - - /** - * Optional. A collection of user functions to be included in context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.UserFunctions user_functions = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\UserFunctions $var - * @return $this - */ - public function setUserFunctions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\UserFunctions::class); - $this->user_functions = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship.php deleted file mode 100644 index 22e212aad9a3..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship.php +++ /dev/null @@ -1,219 +0,0 @@ -google.cloud.geminidataanalytics.v1.Context.SchemaRelationship - */ -class SchemaRelationship extends \Google\Protobuf\Internal\Message -{ - /** - * An ordered list of fields for the join from the first table. - * The size of this list must be the same as `right_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `right_schema_paths` list. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; - */ - protected $left_schema_paths = null; - /** - * An ordered list of fields for the join from the second table. - * The size of this list must be the same as `left_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `left_schema_paths` list. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; - */ - protected $right_schema_paths = null; - /** - * Optional. Sources which generated the schema relation edge. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.Source sources = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $sources; - /** - * Optional. A confidence score for the suggested relationship. - * Manually added edges have the highest confidence score. - * - * Generated from protobuf field float confidence_score = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $confidence_score = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship\SchemaPaths $left_schema_paths - * An ordered list of fields for the join from the first table. - * The size of this list must be the same as `right_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `right_schema_paths` list. - * @type \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship\SchemaPaths $right_schema_paths - * An ordered list of fields for the join from the second table. - * The size of this list must be the same as `left_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `left_schema_paths` list. - * @type int[] $sources - * Optional. Sources which generated the schema relation edge. - * @type float $confidence_score - * Optional. A confidence score for the suggested relationship. - * Manually added edges have the highest confidence score. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * An ordered list of fields for the join from the first table. - * The size of this list must be the same as `right_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `right_schema_paths` list. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship\SchemaPaths|null - */ - public function getLeftSchemaPaths() - { - return $this->left_schema_paths; - } - - public function hasLeftSchemaPaths() - { - return isset($this->left_schema_paths); - } - - public function clearLeftSchemaPaths() - { - unset($this->left_schema_paths); - } - - /** - * An ordered list of fields for the join from the first table. - * The size of this list must be the same as `right_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `right_schema_paths` list. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship\SchemaPaths $var - * @return $this - */ - public function setLeftSchemaPaths($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship\SchemaPaths::class); - $this->left_schema_paths = $var; - - return $this; - } - - /** - * An ordered list of fields for the join from the second table. - * The size of this list must be the same as `left_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `left_schema_paths` list. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship\SchemaPaths|null - */ - public function getRightSchemaPaths() - { - return $this->right_schema_paths; - } - - public function hasRightSchemaPaths() - { - return isset($this->right_schema_paths); - } - - public function clearRightSchemaPaths() - { - unset($this->right_schema_paths); - } - - /** - * An ordered list of fields for the join from the second table. - * The size of this list must be the same as `left_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `left_schema_paths` list. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship\SchemaPaths $var - * @return $this - */ - public function setRightSchemaPaths($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship\SchemaPaths::class); - $this->right_schema_paths = $var; - - return $this; - } - - /** - * Optional. Sources which generated the schema relation edge. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.Source sources = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getSources() - { - return $this->sources; - } - - /** - * Optional. Sources which generated the schema relation edge. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.Source sources = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int[] $var - * @return $this - */ - public function setSources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\GeminiDataAnalytics\V1\Context\SchemaRelationship\Source::class); - $this->sources = $arr; - - return $this; - } - - /** - * Optional. A confidence score for the suggested relationship. - * Manually added edges have the highest confidence score. - * - * Generated from protobuf field float confidence_score = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getConfidenceScore() - { - return $this->confidence_score; - } - - /** - * Optional. A confidence score for the suggested relationship. - * Manually added edges have the highest confidence score. - * - * Generated from protobuf field float confidence_score = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setConfidenceScore($var) - { - GPBUtil::checkFloat($var); - $this->confidence_score = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship/SchemaPaths.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship/SchemaPaths.php deleted file mode 100644 index 9132b7b7362c..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship/SchemaPaths.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.SchemaPaths - */ -class SchemaPaths extends \Google\Protobuf\Internal\Message -{ - /** - * The service-qualified full resource name of the table - * Ex: - * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * - * Generated from protobuf field string table_fqn = 1; - */ - protected $table_fqn = ''; - /** - * The ordered list of paths within the table schema. - * - * Generated from protobuf field repeated string paths = 2; - */ - private $paths; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $table_fqn - * The service-qualified full resource name of the table - * Ex: - * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * @type string[] $paths - * The ordered list of paths within the table schema. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * The service-qualified full resource name of the table - * Ex: - * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * - * Generated from protobuf field string table_fqn = 1; - * @return string - */ - public function getTableFqn() - { - return $this->table_fqn; - } - - /** - * The service-qualified full resource name of the table - * Ex: - * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * - * Generated from protobuf field string table_fqn = 1; - * @param string $var - * @return $this - */ - public function setTableFqn($var) - { - GPBUtil::checkString($var, True); - $this->table_fqn = $var; - - return $this; - } - - /** - * The ordered list of paths within the table schema. - * - * Generated from protobuf field repeated string paths = 2; - * @return RepeatedField - */ - public function getPaths() - { - return $this->paths; - } - - /** - * The ordered list of paths within the table schema. - * - * Generated from protobuf field repeated string paths = 2; - * @param string[] $var - * @return $this - */ - public function setPaths($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->paths = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship/Source.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship/Source.php deleted file mode 100644 index 7005fc92287b..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Context/SchemaRelationship/Source.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.geminidataanalytics.v1.Context.SchemaRelationship.Source - */ -class Source -{ - /** - * The source of the schema relationship is unspecified. - * - * Generated from protobuf enum SOURCE_UNSPECIFIED = 0; - */ - const SOURCE_UNSPECIFIED = 0; - /** - * The source of the schema relationship is BigQuery job history. - * - * Generated from protobuf enum BIGQUERY_JOB_HISTORY = 1; - */ - const BIGQUERY_JOB_HISTORY = 1; - /** - * The source of the schema relationship is LLM suggested. - * - * Generated from protobuf enum LLM_SUGGESTED = 2; - */ - const LLM_SUGGESTED = 2; - /** - * The source of the schema relationship is BigQuery table constraints. - * - * Generated from protobuf enum BIGQUERY_TABLE_CONSTRAINTS = 3; - */ - const BIGQUERY_TABLE_CONSTRAINTS = 3; - - private static $valueToName = [ - self::SOURCE_UNSPECIFIED => 'SOURCE_UNSPECIFIED', - self::BIGQUERY_JOB_HISTORY => 'BIGQUERY_JOB_HISTORY', - self::LLM_SUGGESTED => 'LLM_SUGGESTED', - self::BIGQUERY_TABLE_CONSTRAINTS => 'BIGQUERY_TABLE_CONSTRAINTS', - ]; - - 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Conversation.php deleted file mode 100644 index 3c1e3c3d568a..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Conversation.php +++ /dev/null @@ -1,383 +0,0 @@ -google.cloud.geminidataanalytics.v1.Conversation - */ -class Conversation extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Identifier. The unique resource name of a conversation. Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * `{conversation_id}` is the resource id and should be 63 characters or less - * and must match the format described in - * https://google.aip.dev/122#resource-id-segments - * Example: - * `projects/1234567890/locations/global/conversations/my-conversation`. - * It is recommended to skip setting this field during conversation creation - * as it will be inferred automatically and overwritten with the - * {parent}/conversations/{conversation_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. Agent(s) in the conversation. - * Currently, only one agent is supported. This field is repeated to allow - * for future support of multiple agents in a conversation. - * Format: `projects/{project}/locations/{location}/dataAgents/{agent}` - * - * Generated from protobuf field repeated string agents = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $agents; - /** - * Output only. Creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Timestamp of the last used conversation. - * - * Generated from protobuf field .google.protobuf.Timestamp last_used_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_used_time = null; - /** - * Optional. Open-ended and user-defined labels that can be set by the client - * to tag a conversation (e.g. to filter conversations for specific - * surfaces/products). - * - * Generated from protobuf field map labels = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Customer managed encryption key (CMEK) to use for encrypting the - * Conversation resources. Encryption will happen at Titan layer, we will pass - * the KMS key to Titan. - * Format: - * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. - * - * Generated from protobuf field optional string kms_key = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $kms_key = null; - /** - * Optional. Whether memory is paused for this conversation. - * - * Generated from protobuf field optional bool memory_paused = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $memory_paused = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Optional. Identifier. The unique resource name of a conversation. Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * `{conversation_id}` is the resource id and should be 63 characters or less - * and must match the format described in - * https://google.aip.dev/122#resource-id-segments - * Example: - * `projects/1234567890/locations/global/conversations/my-conversation`. - * It is recommended to skip setting this field during conversation creation - * as it will be inferred automatically and overwritten with the - * {parent}/conversations/{conversation_id}. - * @type string[] $agents - * Required. Agent(s) in the conversation. - * Currently, only one agent is supported. This field is repeated to allow - * for future support of multiple agents in a conversation. - * Format: `projects/{project}/locations/{location}/dataAgents/{agent}` - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Creation timestamp. - * @type \Google\Protobuf\Timestamp $last_used_time - * Output only. Timestamp of the last used conversation. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Open-ended and user-defined labels that can be set by the client - * to tag a conversation (e.g. to filter conversations for specific - * surfaces/products). - * @type string $kms_key - * Optional. Customer managed encryption key (CMEK) to use for encrypting the - * Conversation resources. Encryption will happen at Titan layer, we will pass - * the KMS key to Titan. - * Format: - * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. - * @type bool $memory_paused - * Optional. Whether memory is paused for this conversation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Conversation::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Identifier. The unique resource name of a conversation. Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * `{conversation_id}` is the resource id and should be 63 characters or less - * and must match the format described in - * https://google.aip.dev/122#resource-id-segments - * Example: - * `projects/1234567890/locations/global/conversations/my-conversation`. - * It is recommended to skip setting this field during conversation creation - * as it will be inferred automatically and overwritten with the - * {parent}/conversations/{conversation_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. Identifier. The unique resource name of a conversation. Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * `{conversation_id}` is the resource id and should be 63 characters or less - * and must match the format described in - * https://google.aip.dev/122#resource-id-segments - * Example: - * `projects/1234567890/locations/global/conversations/my-conversation`. - * It is recommended to skip setting this field during conversation creation - * as it will be inferred automatically and overwritten with the - * {parent}/conversations/{conversation_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Agent(s) in the conversation. - * Currently, only one agent is supported. This field is repeated to allow - * for future support of multiple agents in a conversation. - * Format: `projects/{project}/locations/{location}/dataAgents/{agent}` - * - * Generated from protobuf field repeated string agents = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField - */ - public function getAgents() - { - return $this->agents; - } - - /** - * Required. Agent(s) in the conversation. - * Currently, only one agent is supported. This field is repeated to allow - * for future support of multiple agents in a conversation. - * Format: `projects/{project}/locations/{location}/dataAgents/{agent}` - * - * Generated from protobuf field repeated string agents = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string[] $var - * @return $this - */ - public function setAgents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->agents = $arr; - - return $this; - } - - /** - * Output only. Creation timestamp. - * - * 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. Creation timestamp. - * - * 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 of the last used conversation. - * - * Generated from protobuf field .google.protobuf.Timestamp last_used_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastUsedTime() - { - return $this->last_used_time; - } - - public function hasLastUsedTime() - { - return isset($this->last_used_time); - } - - public function clearLastUsedTime() - { - unset($this->last_used_time); - } - - /** - * Output only. Timestamp of the last used conversation. - * - * Generated from protobuf field .google.protobuf.Timestamp last_used_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastUsedTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_used_time = $var; - - return $this; - } - - /** - * Optional. Open-ended and user-defined labels that can be set by the client - * to tag a conversation (e.g. to filter conversations for specific - * surfaces/products). - * - * Generated from protobuf field map labels = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Open-ended and user-defined labels that can be set by the client - * to tag a conversation (e.g. to filter conversations for specific - * surfaces/products). - * - * Generated from protobuf field map labels = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Customer managed encryption key (CMEK) to use for encrypting the - * Conversation resources. Encryption will happen at Titan layer, we will pass - * the KMS key to Titan. - * Format: - * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. - * - * Generated from protobuf field optional string kms_key = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getKmsKey() - { - return isset($this->kms_key) ? $this->kms_key : ''; - } - - public function hasKmsKey() - { - return isset($this->kms_key); - } - - public function clearKmsKey() - { - unset($this->kms_key); - } - - /** - * Optional. Customer managed encryption key (CMEK) to use for encrypting the - * Conversation resources. Encryption will happen at Titan layer, we will pass - * the KMS key to Titan. - * Format: - * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. - * - * Generated from protobuf field optional string kms_key = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setKmsKey($var) - { - GPBUtil::checkString($var, True); - $this->kms_key = $var; - - return $this; - } - - /** - * Optional. Whether memory is paused for this conversation. - * - * Generated from protobuf field optional bool memory_paused = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getMemoryPaused() - { - return isset($this->memory_paused) ? $this->memory_paused : false; - } - - public function hasMemoryPaused() - { - return isset($this->memory_paused); - } - - public function clearMemoryPaused() - { - unset($this->memory_paused); - } - - /** - * Optional. Whether memory is paused for this conversation. - * - * Generated from protobuf field optional bool memory_paused = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setMemoryPaused($var) - { - GPBUtil::checkBool($var); - $this->memory_paused = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationOptions.php deleted file mode 100644 index 96481a4a8a8e..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationOptions.php +++ /dev/null @@ -1,165 +0,0 @@ -google.cloud.geminidataanalytics.v1.ConversationOptions - */ -class ConversationOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Options for analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisOptions analysis = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $analysis = null; - /** - * Optional. Options for datasources. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $datasource = null; - /** - * Optional. The model to use for the agent loop. - * - * Generated from protobuf field optional .google.cloud.geminidataanalytics.v1.ConversationOptions.Model model = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $model = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\AnalysisOptions $analysis - * Optional. Options for analysis. - * @type \Google\Cloud\GeminiDataAnalytics\V1\DatasourceOptions $datasource - * Optional. Options for datasources. - * @type int $model - * Optional. The model to use for the agent loop. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Options for analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisOptions analysis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\AnalysisOptions|null - */ - public function getAnalysis() - { - return $this->analysis; - } - - public function hasAnalysis() - { - return isset($this->analysis); - } - - public function clearAnalysis() - { - unset($this->analysis); - } - - /** - * Optional. Options for analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisOptions analysis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\AnalysisOptions $var - * @return $this - */ - public function setAnalysis($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\AnalysisOptions::class); - $this->analysis = $var; - - return $this; - } - - /** - * Optional. Options for datasources. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\DatasourceOptions|null - */ - public function getDatasource() - { - return $this->datasource; - } - - public function hasDatasource() - { - return isset($this->datasource); - } - - public function clearDatasource() - { - unset($this->datasource); - } - - /** - * Optional. Options for datasources. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\DatasourceOptions $var - * @return $this - */ - public function setDatasource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DatasourceOptions::class); - $this->datasource = $var; - - return $this; - } - - /** - * Optional. The model to use for the agent loop. - * - * Generated from protobuf field optional .google.cloud.geminidataanalytics.v1.ConversationOptions.Model model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getModel() - { - return isset($this->model) ? $this->model : 0; - } - - public function hasModel() - { - return isset($this->model); - } - - public function clearModel() - { - unset($this->model); - } - - /** - * Optional. The model to use for the agent loop. - * - * Generated from protobuf field optional .google.cloud.geminidataanalytics.v1.ConversationOptions.Model model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setModel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1\ConversationOptions\Model::class); - $this->model = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationOptions/Model.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationOptions/Model.php deleted file mode 100644 index 91e23402bc7c..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationOptions/Model.php +++ /dev/null @@ -1,59 +0,0 @@ -google.cloud.geminidataanalytics.v1.ConversationOptions.Model - */ -class Model -{ - /** - * No model specified. The model may be set on the chat request, or the - * default model will be used. Currently, this is - * `gemini-3.0-flash-preview`. - * - * Generated from protobuf enum MODEL_UNSPECIFIED = 0; - */ - const MODEL_UNSPECIFIED = 0; - /** - * Use the most up-to-date non-preview model. Currently, this is - * `gemini-2.5-flash`. This constrains the request level settings. The - * default will change to `gemini-2.5-flash`, and setting `thinking_mode` - * will not be supported. - * - * Generated from protobuf enum LATEST_GA_MODEL = 1; - */ - const LATEST_GA_MODEL = 1; - - private static $valueToName = [ - self::MODEL_UNSPECIFIED => 'MODEL_UNSPECIFIED', - self::LATEST_GA_MODEL => 'LATEST_GA_MODEL', - ]; - - 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationReference.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationReference.php deleted file mode 100644 index 822a53b62b3b..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ConversationReference.php +++ /dev/null @@ -1,119 +0,0 @@ -google.cloud.geminidataanalytics.v1.ConversationReference - */ -class ConversationReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the conversation resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * - * Generated from protobuf field string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $conversation = ''; - /** - * Required. Context for the chat request using a data agent. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_agent_context = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $conversation - * Required. Name of the conversation resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * @type \Google\Cloud\GeminiDataAnalytics\V1\DataAgentContext $data_agent_context - * Required. Context for the chat request using a data agent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the conversation resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * - * Generated from protobuf field string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getConversation() - { - return $this->conversation; - } - - /** - * Required. Name of the conversation resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * - * Generated from protobuf field string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setConversation($var) - { - GPBUtil::checkString($var, True); - $this->conversation = $var; - - return $this; - } - - /** - * Required. Context for the chat request using a data agent. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\DataAgentContext|null - */ - public function getDataAgentContext() - { - return $this->data_agent_context; - } - - public function hasDataAgentContext() - { - return isset($this->data_agent_context); - } - - public function clearDataAgentContext() - { - unset($this->data_agent_context); - } - - /** - * Required. Context for the chat request using a data agent. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\DataAgentContext $var - * @return $this - */ - public function setDataAgentContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DataAgentContext::class); - $this->data_agent_context = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CreateConversationRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CreateConversationRequest.php deleted file mode 100644 index a015fe6944d3..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CreateConversationRequest.php +++ /dev/null @@ -1,229 +0,0 @@ -google.cloud.geminidataanalytics.v1.CreateConversationRequest - */ -class CreateConversationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent value for CreateConversationRequest. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The conversation id of the conversation to create. - * Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * - * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $conversation_id = ''; - /** - * Required. The conversation to create. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Conversation conversation = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $conversation = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $parent Required. Parent value for CreateConversationRequest. - * Format: `projects/{project}/locations/{location}` - * Please see {@see DataChatServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\GeminiDataAnalytics\V1\Conversation $conversation Required. The conversation to create. - * @param string $conversationId Optional. The conversation id of the conversation to create. - * Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1\CreateConversationRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\GeminiDataAnalytics\V1\Conversation $conversation, string $conversationId): self - { - return (new self()) - ->setParent($parent) - ->setConversation($conversation) - ->setConversationId($conversationId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent value for CreateConversationRequest. - * Format: `projects/{project}/locations/{location}` - * @type string $conversation_id - * Optional. The conversation id of the conversation to create. - * Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * @type \Google\Cloud\GeminiDataAnalytics\V1\Conversation $conversation - * Required. The conversation to create. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Conversation::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent value for CreateConversationRequest. - * Format: `projects/{project}/locations/{location}` - * - * 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. Parent value for CreateConversationRequest. - * Format: `projects/{project}/locations/{location}` - * - * 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 conversation id of the conversation to create. - * Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * - * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getConversationId() - { - return $this->conversation_id; - } - - /** - * Optional. The conversation id of the conversation to create. - * Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * - * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setConversationId($var) - { - GPBUtil::checkString($var, True); - $this->conversation_id = $var; - - return $this; - } - - /** - * Required. The conversation to create. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Conversation conversation = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\Conversation|null - */ - public function getConversation() - { - return $this->conversation; - } - - public function hasConversation() - { - return isset($this->conversation); - } - - public function clearConversation() - { - unset($this->conversation); - } - - /** - * Required. The conversation to create. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Conversation conversation = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Conversation $var - * @return $this - */ - public function setConversation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Conversation::class); - $this->conversation = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CreateDataAgentRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CreateDataAgentRequest.php deleted file mode 100644 index cfb9055a539c..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/CreateDataAgentRequest.php +++ /dev/null @@ -1,247 +0,0 @@ -google.cloud.geminidataanalytics.v1.CreateDataAgentRequest - */ -class CreateDataAgentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Value for parent. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Id of the requesting object. Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * - * Generated from protobuf field string data_agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $data_agent_id = ''; - /** - * Required. The resource being created. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgent data_agent = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_agent = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $parent Required. Value for parent. Please see - * {@see DataAgentServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\GeminiDataAnalytics\V1\DataAgent $dataAgent Required. The resource being created. - * @param string $dataAgentId Optional. Id of the requesting object. Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1\CreateDataAgentRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\GeminiDataAnalytics\V1\DataAgent $dataAgent, string $dataAgentId): self - { - return (new self()) - ->setParent($parent) - ->setDataAgent($dataAgent) - ->setDataAgentId($dataAgentId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Value for parent. - * @type string $data_agent_id - * Optional. Id of the requesting object. Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * @type \Google\Cloud\GeminiDataAnalytics\V1\DataAgent $data_agent - * Required. The resource being created. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Value for parent. - * - * 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. Value for parent. - * - * 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. Id of the requesting object. Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * - * Generated from protobuf field string data_agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDataAgentId() - { - return $this->data_agent_id; - } - - /** - * Optional. Id of the requesting object. Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * - * Generated from protobuf field string data_agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDataAgentId($var) - { - GPBUtil::checkString($var, True); - $this->data_agent_id = $var; - - return $this; - } - - /** - * Required. The resource being created. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgent data_agent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\DataAgent|null - */ - public function getDataAgent() - { - return $this->data_agent; - } - - public function hasDataAgent() - { - return isset($this->data_agent); - } - - public function clearDataAgent() - { - unset($this->data_agent); - } - - /** - * Required. The resource being created. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgent data_agent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\DataAgent $var - * @return $this - */ - public function setDataAgent($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DataAgent::class); - $this->data_agent = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Credentials.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Credentials.php deleted file mode 100644 index 549875ac3f47..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Credentials.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.geminidataanalytics.v1.Credentials - */ -class Credentials extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials $oauth - * OAuth credentials. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Credentials::initOnce(); - parent::__construct($data); - } - - /** - * OAuth credentials. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.OAuthCredentials oauth = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials|null - */ - public function getOauth() - { - return $this->readOneof(1); - } - - public function hasOauth() - { - return $this->hasOneof(1); - } - - /** - * OAuth credentials. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.OAuthCredentials oauth = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials $var - * @return $this - */ - public function setOauth($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgent.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgent.php deleted file mode 100644 index 62e704033645..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgent.php +++ /dev/null @@ -1,515 +0,0 @@ -google.cloud.geminidataanalytics.v1.DataAgent - */ -class DataAgent extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Identifier. The unique resource name of a DataAgent. - * Format: - * `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` - * `{data_agent}` is the resource id and should be 63 characters or less and - * must match the format described in - * https://google.aip.dev/122#resource-id-segments - * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. - * It is recommended to skip setting this field during agent creation as it - * will be inferred automatically and overwritten with the - * {parent}/dataAgents/{data_agent_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. User friendly display name. - * * Must be between 1-256 characters. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. Description of the agent. - * * Must be between 1-1024 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. Labels to help users filter related agents. - * For example, "sales", "business", "etl", and so on. - * Note labels are used only for filtering and not for policies. - * See the [labels - * documentation](https://cloud.google.com/resource-manager/docs/labels-overview) - * for more details on label usage. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Output only. The time when the data agent was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the data agent was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. [Output only] The time the data agent was soft deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $delete_time = null; - /** - * Output only. Timestamp in UTC of when this data agent is considered - * expired. This is *always* provided on output, regardless of what was sent - * on input. - * - * Generated from protobuf field .google.protobuf.Timestamp purge_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $purge_time = null; - /** - * Optional. Customer managed encryption key (CMEK) to use for encrypting the - * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location - * as the DataAgent. The expected format is - * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. - * - * Generated from protobuf field optional string kms_key = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $kms_key = null; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\DataAnalyticsAgent $data_analytics_agent - * Data analytics agent. - * @type string $name - * Optional. Identifier. The unique resource name of a DataAgent. - * Format: - * `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` - * `{data_agent}` is the resource id and should be 63 characters or less and - * must match the format described in - * https://google.aip.dev/122#resource-id-segments - * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. - * It is recommended to skip setting this field during agent creation as it - * will be inferred automatically and overwritten with the - * {parent}/dataAgents/{data_agent_id}. - * @type string $display_name - * Optional. User friendly display name. - * * Must be between 1-256 characters. - * @type string $description - * Optional. Description of the agent. - * * Must be between 1-1024 characters. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Labels to help users filter related agents. - * For example, "sales", "business", "etl", and so on. - * Note labels are used only for filtering and not for policies. - * See the [labels - * documentation](https://cloud.google.com/resource-manager/docs/labels-overview) - * for more details on label usage. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the data agent was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the data agent was last updated. - * @type \Google\Protobuf\Timestamp $delete_time - * Output only. [Output only] The time the data agent was soft deleted. - * @type \Google\Protobuf\Timestamp $purge_time - * Output only. Timestamp in UTC of when this data agent is considered - * expired. This is *always* provided on output, regardless of what was sent - * on input. - * @type string $kms_key - * Optional. Customer managed encryption key (CMEK) to use for encrypting the - * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location - * as the DataAgent. The expected format is - * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgent::initOnce(); - parent::__construct($data); - } - - /** - * Data analytics agent. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAnalyticsAgent data_analytics_agent = 101; - * @return \Google\Cloud\GeminiDataAnalytics\V1\DataAnalyticsAgent|null - */ - public function getDataAnalyticsAgent() - { - return $this->readOneof(101); - } - - public function hasDataAnalyticsAgent() - { - return $this->hasOneof(101); - } - - /** - * Data analytics agent. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAnalyticsAgent data_analytics_agent = 101; - * @param \Google\Cloud\GeminiDataAnalytics\V1\DataAnalyticsAgent $var - * @return $this - */ - public function setDataAnalyticsAgent($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DataAnalyticsAgent::class); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * Optional. Identifier. The unique resource name of a DataAgent. - * Format: - * `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` - * `{data_agent}` is the resource id and should be 63 characters or less and - * must match the format described in - * https://google.aip.dev/122#resource-id-segments - * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. - * It is recommended to skip setting this field during agent creation as it - * will be inferred automatically and overwritten with the - * {parent}/dataAgents/{data_agent_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. Identifier. The unique resource name of a DataAgent. - * Format: - * `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` - * `{data_agent}` is the resource id and should be 63 characters or less and - * must match the format described in - * https://google.aip.dev/122#resource-id-segments - * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. - * It is recommended to skip setting this field during agent creation as it - * will be inferred automatically and overwritten with the - * {parent}/dataAgents/{data_agent_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. User friendly display name. - * * Must be between 1-256 characters. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User friendly display name. - * * Must be between 1-256 characters. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Description of the agent. - * * Must be between 1-1024 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the agent. - * * Must be between 1-1024 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. Labels to help users filter related agents. - * For example, "sales", "business", "etl", and so on. - * Note labels are used only for filtering and not for policies. - * See the [labels - * documentation](https://cloud.google.com/resource-manager/docs/labels-overview) - * for more details on label usage. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Labels to help users filter related agents. - * For example, "sales", "business", "etl", and so on. - * Note labels are used only for filtering and not for policies. - * See the [labels - * documentation](https://cloud.google.com/resource-manager/docs/labels-overview) - * for more details on label usage. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. The time when the data agent was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.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 when the data agent was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.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 when the data agent was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.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 when the data agent was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.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. [Output only] The time the data agent was soft deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeleteTime() - { - return $this->delete_time; - } - - public function hasDeleteTime() - { - return isset($this->delete_time); - } - - public function clearDeleteTime() - { - unset($this->delete_time); - } - - /** - * Output only. [Output only] The time the data agent was soft deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeleteTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->delete_time = $var; - - return $this; - } - - /** - * Output only. Timestamp in UTC of when this data agent is considered - * expired. This is *always* provided on output, regardless of what was sent - * on input. - * - * Generated from protobuf field .google.protobuf.Timestamp purge_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getPurgeTime() - { - return $this->purge_time; - } - - public function hasPurgeTime() - { - return isset($this->purge_time); - } - - public function clearPurgeTime() - { - unset($this->purge_time); - } - - /** - * Output only. Timestamp in UTC of when this data agent is considered - * expired. This is *always* provided on output, regardless of what was sent - * on input. - * - * Generated from protobuf field .google.protobuf.Timestamp purge_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setPurgeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->purge_time = $var; - - return $this; - } - - /** - * Optional. Customer managed encryption key (CMEK) to use for encrypting the - * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location - * as the DataAgent. The expected format is - * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. - * - * Generated from protobuf field optional string kms_key = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getKmsKey() - { - return isset($this->kms_key) ? $this->kms_key : ''; - } - - public function hasKmsKey() - { - return isset($this->kms_key); - } - - public function clearKmsKey() - { - unset($this->kms_key); - } - - /** - * Optional. Customer managed encryption key (CMEK) to use for encrypting the - * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location - * as the DataAgent. The expected format is - * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. - * - * Generated from protobuf field optional string kms_key = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setKmsKey($var) - { - GPBUtil::checkString($var, True); - $this->kms_key = $var; - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgentContext.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgentContext.php deleted file mode 100644 index f625369ef10f..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgentContext.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.geminidataanalytics.v1.DataAgentContext - */ -class DataAgentContext extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the data agent resource. - * - * Generated from protobuf field string data_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $data_agent = ''; - /** - * Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED) - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $context_version = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $data_agent - * Required. The name of the data agent resource. - * @type int $context_version - * Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the data agent resource. - * - * Generated from protobuf field string data_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getDataAgent() - { - return $this->data_agent; - } - - /** - * Required. The name of the data agent resource. - * - * Generated from protobuf field string data_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDataAgent($var) - { - GPBUtil::checkString($var, True); - $this->data_agent = $var; - - return $this; - } - - /** - * Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED) - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getContextVersion() - { - return $this->context_version; - } - - /** - * Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED) - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setContextVersion($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1\DataAgentContext\ContextVersion::class); - $this->context_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgentContext/ContextVersion.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgentContext/ContextVersion.php deleted file mode 100644 index 06792af16f83..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAgentContext/ContextVersion.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.geminidataanalytics.v1.DataAgentContext.ContextVersion - */ -class ContextVersion -{ - /** - * Unspecified or unrecognized. - * - * Generated from protobuf enum CONTEXT_VERSION_UNSPECIFIED = 0; - */ - const CONTEXT_VERSION_UNSPECIFIED = 0; - /** - * Using this version, DCS will use the latest staging context for the - * data agent. - * - * Generated from protobuf enum STAGING = 1; - */ - const STAGING = 1; - /** - * Using this version, DCS will use the latest published context for the - * data agent. - * - * Generated from protobuf enum PUBLISHED = 2; - */ - const PUBLISHED = 2; - - private static $valueToName = [ - self::CONTEXT_VERSION_UNSPECIFIED => 'CONTEXT_VERSION_UNSPECIFIED', - self::STAGING => 'STAGING', - self::PUBLISHED => 'PUBLISHED', - ]; - - 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAnalyticsAgent.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAnalyticsAgent.php deleted file mode 100644 index cd2e29130aab..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataAnalyticsAgent.php +++ /dev/null @@ -1,185 +0,0 @@ -google.cloud.geminidataanalytics.v1.DataAnalyticsAgent - */ -class DataAnalyticsAgent extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The staging context for the agent. - * This context is used to test and validate changes before publishing. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context staging_context = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $staging_context = null; - /** - * Optional. The published context for the agent. - * This context is used by the Chat API in production. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context published_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $published_context = null; - /** - * Output only. The last published context for the agent. - * This is an output-only field populated by the system when the - * published context is updated. It is used to restore the agent to a - * previous state. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context last_published_context = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_published_context = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\Context $staging_context - * Optional. The staging context for the agent. - * This context is used to test and validate changes before publishing. - * @type \Google\Cloud\GeminiDataAnalytics\V1\Context $published_context - * Optional. The published context for the agent. - * This context is used by the Chat API in production. - * @type \Google\Cloud\GeminiDataAnalytics\V1\Context $last_published_context - * Output only. The last published context for the agent. - * This is an output-only field populated by the system when the - * published context is updated. It is used to restore the agent to a - * previous state. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAnalyticsAgent::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The staging context for the agent. - * This context is used to test and validate changes before publishing. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context staging_context = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\Context|null - */ - public function getStagingContext() - { - return $this->staging_context; - } - - public function hasStagingContext() - { - return isset($this->staging_context); - } - - public function clearStagingContext() - { - unset($this->staging_context); - } - - /** - * Optional. The staging context for the agent. - * This context is used to test and validate changes before publishing. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context staging_context = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Context $var - * @return $this - */ - public function setStagingContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Context::class); - $this->staging_context = $var; - - return $this; - } - - /** - * Optional. The published context for the agent. - * This context is used by the Chat API in production. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context published_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\Context|null - */ - public function getPublishedContext() - { - return $this->published_context; - } - - public function hasPublishedContext() - { - return isset($this->published_context); - } - - public function clearPublishedContext() - { - unset($this->published_context); - } - - /** - * Optional. The published context for the agent. - * This context is used by the Chat API in production. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context published_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Context $var - * @return $this - */ - public function setPublishedContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Context::class); - $this->published_context = $var; - - return $this; - } - - /** - * Output only. The last published context for the agent. - * This is an output-only field populated by the system when the - * published context is updated. It is used to restore the agent to a - * previous state. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context last_published_context = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\Context|null - */ - public function getLastPublishedContext() - { - return $this->last_published_context; - } - - public function hasLastPublishedContext() - { - return isset($this->last_published_context); - } - - public function clearLastPublishedContext() - { - unset($this->last_published_context); - } - - /** - * Output only. The last published context for the agent. - * This is an output-only field populated by the system when the - * published context is updated. It is used to restore the agent to a - * previous state. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Context last_published_context = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Context $var - * @return $this - */ - public function setLastPublishedContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Context::class); - $this->last_published_context = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataFilter.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataFilter.php deleted file mode 100644 index 5289e914b19c..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataFilter.php +++ /dev/null @@ -1,148 +0,0 @@ -google.cloud.geminidataanalytics.v1.DataFilter - */ -class DataFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The field to filter on. For example: ["event_date", - * "customer_id", "product_category"] - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $field = ''; - /** - * Optional. The default value used for this filter if the filter is not - * overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"] - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $value = ''; - /** - * Optional. The type of filter present on a datasource, such as - * ALWAYS_FILTER. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field - * Optional. The field to filter on. For example: ["event_date", - * "customer_id", "product_category"] - * @type string $value - * Optional. The default value used for this filter if the filter is not - * overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"] - * @type int $type - * Optional. The type of filter present on a datasource, such as - * ALWAYS_FILTER. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The field to filter on. For example: ["event_date", - * "customer_id", "product_category"] - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * Optional. The field to filter on. For example: ["event_date", - * "customer_id", "product_category"] - * - * 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. The default value used for this filter if the filter is not - * overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"] - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Optional. The default value used for this filter if the filter is not - * overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"] - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Optional. The type of filter present on a datasource, such as - * ALWAYS_FILTER. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Optional. The type of filter present on a datasource, such as - * ALWAYS_FILTER. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1\DataFilterType::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataFilterType.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataFilterType.php deleted file mode 100644 index 11b5ce12beb4..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataFilterType.php +++ /dev/null @@ -1,56 +0,0 @@ -google.cloud.geminidataanalytics.v1.DataFilterType - */ -class DataFilterType -{ - /** - * The filter type was not specified. - * - * Generated from protobuf enum DATA_FILTER_TYPE_UNSPECIFIED = 0; - */ - const DATA_FILTER_TYPE_UNSPECIFIED = 0; - /** - * A filter that the user configures, and any queries to the Explore will - * always apply this filter by default. Currently only used for Looker data - * sources. - * - * Generated from protobuf enum ALWAYS_FILTER = 1; - */ - const ALWAYS_FILTER = 1; - - private static $valueToName = [ - self::DATA_FILTER_TYPE_UNSPECIFIED => 'DATA_FILTER_TYPE_UNSPECIFIED', - self::ALWAYS_FILTER => 'ALWAYS_FILTER', - ]; - - 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataMessage.php deleted file mode 100644 index 2b69ba1e9dc1..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataMessage.php +++ /dev/null @@ -1,207 +0,0 @@ -google.cloud.geminidataanalytics.v1.DataMessage - */ -class DataMessage extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\DataQuery $query - * A data retrieval query. - * @type string $generated_sql - * SQL generated by the system to retrieve data. - * @type \Google\Cloud\GeminiDataAnalytics\V1\DataResult $result - * Retrieved data. - * @type \Google\Cloud\GeminiDataAnalytics\V1\BigQueryJob $big_query_job - * A BigQuery job executed by the system to retrieve data. - * @type \Google\Cloud\GeminiDataAnalytics\V1\MatchedQuery $matched_query - * A pre-existing query that was matched to retrieve data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * A data retrieval query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataQuery query = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1\DataQuery|null - */ - public function getQuery() - { - return $this->readOneof(1); - } - - public function hasQuery() - { - return $this->hasOneof(1); - } - - /** - * A data retrieval query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataQuery query = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1\DataQuery $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DataQuery::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * SQL generated by the system to retrieve data. - * - * Generated from protobuf field string generated_sql = 2; - * @return string - */ - public function getGeneratedSql() - { - return $this->readOneof(2); - } - - public function hasGeneratedSql() - { - return $this->hasOneof(2); - } - - /** - * SQL generated by the system to retrieve data. - * - * Generated from protobuf field string generated_sql = 2; - * @param string $var - * @return $this - */ - public function setGeneratedSql($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Retrieved data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataResult result = 3; - * @return \Google\Cloud\GeminiDataAnalytics\V1\DataResult|null - */ - public function getResult() - { - return $this->readOneof(3); - } - - public function hasResult() - { - return $this->hasOneof(3); - } - - /** - * Retrieved data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataResult result = 3; - * @param \Google\Cloud\GeminiDataAnalytics\V1\DataResult $var - * @return $this - */ - public function setResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DataResult::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A BigQuery job executed by the system to retrieve data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryJob big_query_job = 5; - * @return \Google\Cloud\GeminiDataAnalytics\V1\BigQueryJob|null - */ - public function getBigQueryJob() - { - return $this->readOneof(5); - } - - public function hasBigQueryJob() - { - return $this->hasOneof(5); - } - - /** - * A BigQuery job executed by the system to retrieve data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryJob big_query_job = 5; - * @param \Google\Cloud\GeminiDataAnalytics\V1\BigQueryJob $var - * @return $this - */ - public function setBigQueryJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\BigQueryJob::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * A pre-existing query that was matched to retrieve data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.MatchedQuery matched_query = 6; - * @return \Google\Cloud\GeminiDataAnalytics\V1\MatchedQuery|null - */ - public function getMatchedQuery() - { - return $this->readOneof(6); - } - - public function hasMatchedQuery() - { - return $this->hasOneof(6); - } - - /** - * A pre-existing query that was matched to retrieve data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.MatchedQuery matched_query = 6; - * @param \Google\Cloud\GeminiDataAnalytics\V1\MatchedQuery $var - * @return $this - */ - public function setMatchedQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\MatchedQuery::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataQuery.php deleted file mode 100644 index 84e9abf81ac7..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataQuery.php +++ /dev/null @@ -1,193 +0,0 @@ -google.cloud.geminidataanalytics.v1.DataQuery - */ -class DataQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A natural language question to answer. - * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $question = ''; - /** - * Optional. A snake-case name for the query that reflects its intent. It is - * used to name the corresponding data result, so that it can be referenced in - * later steps. - * * Example: "total_sales_by_product" - * * Example: "sales_for_product_12345" - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - /** - * Optional. The datasources available to answer the question. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $datasources; - protected $query_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery $looker - * Optional. A query for retrieving data from a Looker explore. - * @type string $question - * Optional. A natural language question to answer. - * @type string $name - * Optional. A snake-case name for the query that reflects its intent. It is - * used to name the corresponding data result, so that it can be referenced in - * later steps. - * * Example: "total_sales_by_product" - * * Example: "sales_for_product_12345" - * @type \Google\Cloud\GeminiDataAnalytics\V1\Datasource[] $datasources - * Optional. The datasources available to answer the question. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A query for retrieving data from a Looker explore. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery|null - */ - public function getLooker() - { - return $this->readOneof(4); - } - - public function hasLooker() - { - return $this->hasOneof(4); - } - - /** - * Optional. A query for retrieving data from a Looker explore. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery $var - * @return $this - */ - public function setLooker($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Optional. A natural language question to answer. - * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getQuestion() - { - return $this->question; - } - - /** - * Optional. A natural language question to answer. - * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setQuestion($var) - { - GPBUtil::checkString($var, True); - $this->question = $var; - - return $this; - } - - /** - * Optional. A snake-case name for the query that reflects its intent. It is - * used to name the corresponding data result, so that it can be referenced in - * later steps. - * * Example: "total_sales_by_product" - * * Example: "sales_for_product_12345" - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. A snake-case name for the query that reflects its intent. It is - * used to name the corresponding data result, so that it can be referenced in - * later steps. - * * Example: "total_sales_by_product" - * * Example: "sales_for_product_12345" - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The datasources available to answer the question. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\Datasource> - */ - public function getDatasources() - { - return $this->datasources; - } - - /** - * Optional. The datasources available to answer the question. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Datasource[] $var - * @return $this - */ - public function setDatasources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\Datasource::class); - $this->datasources = $arr; - - return $this; - } - - /** - * @return string - */ - public function getQueryType() - { - return $this->whichOneof("query_type"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataResult.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataResult.php deleted file mode 100644 index f3f946795f8d..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DataResult.php +++ /dev/null @@ -1,227 +0,0 @@ -google.cloud.geminidataanalytics.v1.DataResult - */ -class DataResult extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A snake-case name for the data result that reflects its contents. - * The name is used to pass the result around by reference, and serves as a - * signal about its meaning. - * * Example: "total_sales_by_product" - * * Example: "sales_for_product_12345" - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - /** - * Optional. The schema of the data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema = null; - /** - * Optional. The content of the data. Each row is a struct that matches the - * schema. Simple values are represented as strings, while nested structures - * are represented as lists or structs. - * - * Generated from protobuf field repeated .google.protobuf.Struct data = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $data; - /** - * Optional. Formatted representation of the data, when applicable. - * Each row is a struct that directly corresponds to the row at the same index - * within the `data` field. Its values are string representations of the - * original data, formatted according to data source specifications (e.g., - * "$1,234.56" for currency). Columns without formatting will default to - * their raw value representation. If no columns have formatting rules, this - * field will be empty. - * - * Generated from protobuf field repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $formatted_data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Optional. A snake-case name for the data result that reflects its contents. - * The name is used to pass the result around by reference, and serves as a - * signal about its meaning. - * * Example: "total_sales_by_product" - * * Example: "sales_for_product_12345" - * @type \Google\Cloud\GeminiDataAnalytics\V1\Schema $schema - * Optional. The schema of the data. - * @type \Google\Protobuf\Struct[] $data - * Optional. The content of the data. Each row is a struct that matches the - * schema. Simple values are represented as strings, while nested structures - * are represented as lists or structs. - * @type \Google\Protobuf\Struct[] $formatted_data - * Optional. Formatted representation of the data, when applicable. - * Each row is a struct that directly corresponds to the row at the same index - * within the `data` field. Its values are string representations of the - * original data, formatted according to data source specifications (e.g., - * "$1,234.56" for currency). Columns without formatting will default to - * their raw value representation. If no columns have formatting rules, this - * field will be empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A snake-case name for the data result that reflects its contents. - * The name is used to pass the result around by reference, and serves as a - * signal about its meaning. - * * Example: "total_sales_by_product" - * * Example: "sales_for_product_12345" - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. A snake-case name for the data result that reflects its contents. - * The name is used to pass the result around by reference, and serves as a - * signal about its meaning. - * * Example: "total_sales_by_product" - * * Example: "sales_for_product_12345" - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The schema of the data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\Schema|null - */ - public function getSchema() - { - return $this->schema; - } - - public function hasSchema() - { - return isset($this->schema); - } - - public function clearSchema() - { - unset($this->schema); - } - - /** - * Optional. The schema of the data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Schema $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Schema::class); - $this->schema = $var; - - return $this; - } - - /** - * Optional. The content of the data. Each row is a struct that matches the - * schema. Simple values are represented as strings, while nested structures - * are represented as lists or structs. - * - * Generated from protobuf field repeated .google.protobuf.Struct data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Protobuf\Struct> - */ - public function getData() - { - return $this->data; - } - - /** - * Optional. The content of the data. Each row is a struct that matches the - * schema. Simple values are represented as strings, while nested structures - * are represented as lists or structs. - * - * Generated from protobuf field repeated .google.protobuf.Struct data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Struct[] $var - * @return $this - */ - public function setData($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Struct::class); - $this->data = $arr; - - return $this; - } - - /** - * Optional. Formatted representation of the data, when applicable. - * Each row is a struct that directly corresponds to the row at the same index - * within the `data` field. Its values are string representations of the - * original data, formatted according to data source specifications (e.g., - * "$1,234.56" for currency). Columns without formatting will default to - * their raw value representation. If no columns have formatting rules, this - * field will be empty. - * - * Generated from protobuf field repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Protobuf\Struct> - */ - public function getFormattedData() - { - return $this->formatted_data; - } - - /** - * Optional. Formatted representation of the data, when applicable. - * Each row is a struct that directly corresponds to the row at the same index - * within the `data` field. Its values are string representations of the - * original data, formatted according to data source specifications (e.g., - * "$1,234.56" for currency). Columns without formatting will default to - * their raw value representation. If no columns have formatting rules, this - * field will be empty. - * - * Generated from protobuf field repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Struct[] $var - * @return $this - */ - public function setFormattedData($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Struct::class); - $this->formatted_data = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Datasource.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Datasource.php deleted file mode 100644 index 10c910923ebe..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Datasource.php +++ /dev/null @@ -1,278 +0,0 @@ -google.cloud.geminidataanalytics.v1.Datasource - */ -class Datasource extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The schema of the datasource. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema = null; - /** - * Optional. A struct representation of the schema. - * This is populated for datasources with schemas that cannot be - * fully represented by the strongly-typed `schema` field. - * For Looker datasources, this maps to the LookmlModelExplore type: - * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore - * - * Generated from protobuf field .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $struct_schema = null; - protected $reference; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference $bigquery_table_reference - * A reference to a BigQuery table. - * @type string $studio_datasource_id - * A reference to a Looker Studio datasource. - * @type \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReference $looker_explore_reference - * A reference to a Looker explore. - * @type \Google\Cloud\GeminiDataAnalytics\V1\BigQueryPropertyGraphReference $bigquery_property_graph_reference - * A reference to a BigQuery property graph. - * @type \Google\Cloud\GeminiDataAnalytics\V1\Schema $schema - * Optional. The schema of the datasource. - * @type \Google\Protobuf\Struct $struct_schema - * Optional. A struct representation of the schema. - * This is populated for datasources with schemas that cannot be - * fully represented by the strongly-typed `schema` field. - * For Looker datasources, this maps to the LookmlModelExplore type: - * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * A reference to a BigQuery table. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryTableReference bigquery_table_reference = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference|null - */ - public function getBigqueryTableReference() - { - return $this->readOneof(1); - } - - public function hasBigqueryTableReference() - { - return $this->hasOneof(1); - } - - /** - * A reference to a BigQuery table. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryTableReference bigquery_table_reference = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference $var - * @return $this - */ - public function setBigqueryTableReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReference::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A reference to a Looker Studio datasource. - * - * Generated from protobuf field string studio_datasource_id = 2; - * @return string - */ - public function getStudioDatasourceId() - { - return $this->readOneof(2); - } - - public function hasStudioDatasourceId() - { - return $this->hasOneof(2); - } - - /** - * A reference to a Looker Studio datasource. - * - * Generated from protobuf field string studio_datasource_id = 2; - * @param string $var - * @return $this - */ - public function setStudioDatasourceId($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A reference to a Looker explore. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerExploreReference looker_explore_reference = 4; - * @return \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReference|null - */ - public function getLookerExploreReference() - { - return $this->readOneof(4); - } - - public function hasLookerExploreReference() - { - return $this->hasOneof(4); - } - - /** - * A reference to a Looker explore. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerExploreReference looker_explore_reference = 4; - * @param \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReference $var - * @return $this - */ - public function setLookerExploreReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReference::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A reference to a BigQuery property graph. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReference bigquery_property_graph_reference = 16; - * @return \Google\Cloud\GeminiDataAnalytics\V1\BigQueryPropertyGraphReference|null - */ - public function getBigqueryPropertyGraphReference() - { - return $this->readOneof(16); - } - - public function hasBigqueryPropertyGraphReference() - { - return $this->hasOneof(16); - } - - /** - * A reference to a BigQuery property graph. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReference bigquery_property_graph_reference = 16; - * @param \Google\Cloud\GeminiDataAnalytics\V1\BigQueryPropertyGraphReference $var - * @return $this - */ - public function setBigqueryPropertyGraphReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\BigQueryPropertyGraphReference::class); - $this->writeOneof(16, $var); - - return $this; - } - - /** - * Optional. The schema of the datasource. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\Schema|null - */ - public function getSchema() - { - return $this->schema; - } - - public function hasSchema() - { - return isset($this->schema); - } - - public function clearSchema() - { - unset($this->schema); - } - - /** - * Optional. The schema of the datasource. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Schema $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Schema::class); - $this->schema = $var; - - return $this; - } - - /** - * Optional. A struct representation of the schema. - * This is populated for datasources with schemas that cannot be - * fully represented by the strongly-typed `schema` field. - * For Looker datasources, this maps to the LookmlModelExplore type: - * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore - * - * Generated from protobuf field .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Struct|null - */ - public function getStructSchema() - { - return $this->struct_schema; - } - - public function hasStructSchema() - { - return isset($this->struct_schema); - } - - public function clearStructSchema() - { - unset($this->struct_schema); - } - - /** - * Optional. A struct representation of the schema. - * This is populated for datasources with schemas that cannot be - * fully represented by the strongly-typed `schema` field. - * For Looker datasources, this maps to the LookmlModelExplore type: - * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore - * - * Generated from protobuf field .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setStructSchema($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->struct_schema = $var; - - return $this; - } - - /** - * @return string - */ - public function getReference() - { - return $this->whichOneof("reference"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DatasourceOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DatasourceOptions.php deleted file mode 100644 index 9b7dd51c02a0..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DatasourceOptions.php +++ /dev/null @@ -1,122 +0,0 @@ -google.cloud.geminidataanalytics.v1.DatasourceOptions - */ -class DatasourceOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. This option applies to datasources that require BigQuery queries - * only. Limits the bytes billed for each BQ query job. Queries that will have - * bytes billed beyond this limit will fail (without incurring a charge). - * If unspecified, no limit will be applied. - * - * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $big_query_max_billed_bytes = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Int64Value $big_query_max_billed_bytes - * Optional. This option applies to datasources that require BigQuery queries - * only. Limits the bytes billed for each BQ query job. Queries that will have - * bytes billed beyond this limit will fail (without incurring a charge). - * If unspecified, no limit will be applied. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * Optional. This option applies to datasources that require BigQuery queries - * only. Limits the bytes billed for each BQ query job. Queries that will have - * bytes billed beyond this limit will fail (without incurring a charge). - * If unspecified, no limit will be applied. - * - * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Int64Value|null - */ - public function getBigQueryMaxBilledBytes() - { - return $this->big_query_max_billed_bytes; - } - - public function hasBigQueryMaxBilledBytes() - { - return isset($this->big_query_max_billed_bytes); - } - - public function clearBigQueryMaxBilledBytes() - { - unset($this->big_query_max_billed_bytes); - } - - /** - * Returns the unboxed value from getBigQueryMaxBilledBytes() - - * Optional. This option applies to datasources that require BigQuery queries - * only. Limits the bytes billed for each BQ query job. Queries that will have - * bytes billed beyond this limit will fail (without incurring a charge). - * If unspecified, no limit will be applied. - * - * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string|null - */ - public function getBigQueryMaxBilledBytesUnwrapped() - { - return $this->readWrapperValue("big_query_max_billed_bytes"); - } - - /** - * Optional. This option applies to datasources that require BigQuery queries - * only. Limits the bytes billed for each BQ query job. Queries that will have - * bytes billed beyond this limit will fail (without incurring a charge). - * If unspecified, no limit will be applied. - * - * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Int64Value $var - * @return $this - */ - public function setBigQueryMaxBilledBytes($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int64Value::class); - $this->big_query_max_billed_bytes = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object. - - * Optional. This option applies to datasources that require BigQuery queries - * only. Limits the bytes billed for each BQ query job. Queries that will have - * bytes billed beyond this limit will fail (without incurring a charge). - * If unspecified, no limit will be applied. - * - * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string|null $var - * @return $this - */ - public function setBigQueryMaxBilledBytesUnwrapped($var) - { - $this->writeWrapperValue("big_query_max_billed_bytes", $var); - return $this;} - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DatasourceReferences.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DatasourceReferences.php deleted file mode 100644 index f38588e2fa7a..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DatasourceReferences.php +++ /dev/null @@ -1,141 +0,0 @@ -google.cloud.geminidataanalytics.v1.DatasourceReferences - */ -class DatasourceReferences extends \Google\Protobuf\Internal\Message -{ - protected $references; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReferences $bq - * References to BigQuery tables. - * @type \Google\Cloud\GeminiDataAnalytics\V1\StudioDatasourceReferences $studio - * References to Looker Studio datasources. - * @type \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReferences $looker - * References to Looker Explores. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * References to BigQuery tables. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryTableReferences bq = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReferences|null - */ - public function getBq() - { - return $this->readOneof(1); - } - - public function hasBq() - { - return $this->hasOneof(1); - } - - /** - * References to BigQuery tables. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.BigQueryTableReferences bq = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReferences $var - * @return $this - */ - public function setBq($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\BigQueryTableReferences::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * References to Looker Studio datasources. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.StudioDatasourceReferences studio = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1\StudioDatasourceReferences|null - */ - public function getStudio() - { - return $this->readOneof(2); - } - - public function hasStudio() - { - return $this->hasOneof(2); - } - - /** - * References to Looker Studio datasources. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.StudioDatasourceReferences studio = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1\StudioDatasourceReferences $var - * @return $this - */ - public function setStudio($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\StudioDatasourceReferences::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * References to Looker Explores. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerExploreReferences looker = 3; - * @return \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReferences|null - */ - public function getLooker() - { - return $this->readOneof(3); - } - - public function hasLooker() - { - return $this->hasOneof(3); - } - - /** - * References to Looker Explores. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerExploreReferences looker = 3; - * @param \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReferences $var - * @return $this - */ - public function setLooker($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReferences::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getReferences() - { - return $this->whichOneof("references"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DeleteConversationRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DeleteConversationRequest.php deleted file mode 100644 index 1c406e02c77c..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DeleteConversationRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.geminidataanalytics.v1.DeleteConversationRequest - */ -class DeleteConversationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * Please see {@see DataChatServiceClient::conversationName()} for help formatting this field. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1\DeleteConversationRequest - * - * @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. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Conversation::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * - * 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. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * - * 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DeleteDataAgentRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DeleteDataAgentRequest.php deleted file mode 100644 index 334b89a36a24..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/DeleteDataAgentRequest.php +++ /dev/null @@ -1,155 +0,0 @@ -google.cloud.geminidataanalytics.v1.DeleteDataAgentRequest - */ -class DeleteDataAgentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $name Required. Name of the resource. Please see - * {@see DataAgentServiceClient::dataAgentName()} for help formatting this field. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1\DeleteDataAgentRequest - * - * @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. Name of the resource. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource. - * - * 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. Name of the resource. - * - * 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. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ErrorMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ErrorMessage.php deleted file mode 100644 index 165ac989294d..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ErrorMessage.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.geminidataanalytics.v1.ErrorMessage - */ -class ErrorMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The text of the error. - * - * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $text = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * Output only. The text of the error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The text of the error. - * - * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Output only. The text of the error. - * - * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ExampleQueries.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ExampleQueries.php deleted file mode 100644 index 3cb18d93eb97..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ExampleQueries.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.geminidataanalytics.v1.ExampleQueries - */ -class ExampleQueries extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A list of derived and authored example queries, providing - * examples of relevant and commonly used SQL queries and their corresponding - * natural language queries optionally present. Currently only used for - * BigQuery data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $example_queries; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery[] $example_queries - * Optional. A list of derived and authored example queries, providing - * examples of relevant and commonly used SQL queries and their corresponding - * natural language queries optionally present. Currently only used for - * BigQuery data sources. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A list of derived and authored example queries, providing - * examples of relevant and commonly used SQL queries and their corresponding - * natural language queries optionally present. Currently only used for - * BigQuery data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery> - */ - public function getExampleQueries() - { - return $this->example_queries; - } - - /** - * Optional. A list of derived and authored example queries, providing - * examples of relevant and commonly used SQL queries and their corresponding - * natural language queries optionally present. Currently only used for - * BigQuery data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery[] $var - * @return $this - */ - public function setExampleQueries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery::class); - $this->example_queries = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ExampleQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ExampleQuery.php deleted file mode 100644 index 3e6d8adfa09f..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ExampleQuery.php +++ /dev/null @@ -1,167 +0,0 @@ -google.cloud.geminidataanalytics.v1.ExampleQuery - */ -class ExampleQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A natural language question that a user might ask. - * For example: "How many orders were placed last month?" - * - * Generated from protobuf field string natural_language_question = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $natural_language_question = ''; - /** - * Optional. The list of query parameters. - * Example: The parameterized SQL query - * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of - * id. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.QueryParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $parameters; - protected $query; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $sql_query - * Optional. The SQL query that should be generated to answer the natural - * language question. For example: "SELECT COUNT(*) FROM orders WHERE - * order_date BETWEEN '2024-01-01' AND '2024-01-31'" - * @type string $natural_language_question - * Optional. A natural language question that a user might ask. - * For example: "How many orders were placed last month?" - * @type \Google\Cloud\GeminiDataAnalytics\V1\QueryParameter[] $parameters - * Optional. The list of query parameters. - * Example: The parameterized SQL query - * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of - * id. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The SQL query that should be generated to answer the natural - * language question. For example: "SELECT COUNT(*) FROM orders WHERE - * order_date BETWEEN '2024-01-01' AND '2024-01-31'" - * - * Generated from protobuf field string sql_query = 101 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSqlQuery() - { - return $this->readOneof(101); - } - - public function hasSqlQuery() - { - return $this->hasOneof(101); - } - - /** - * Optional. The SQL query that should be generated to answer the natural - * language question. For example: "SELECT COUNT(*) FROM orders WHERE - * order_date BETWEEN '2024-01-01' AND '2024-01-31'" - * - * Generated from protobuf field string sql_query = 101 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSqlQuery($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * Optional. A natural language question that a user might ask. - * For example: "How many orders were placed last month?" - * - * Generated from protobuf field string natural_language_question = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getNaturalLanguageQuestion() - { - return $this->natural_language_question; - } - - /** - * Optional. A natural language question that a user might ask. - * For example: "How many orders were placed last month?" - * - * Generated from protobuf field string natural_language_question = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setNaturalLanguageQuestion($var) - { - GPBUtil::checkString($var, True); - $this->natural_language_question = $var; - - return $this; - } - - /** - * Optional. The list of query parameters. - * Example: The parameterized SQL query - * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of - * id. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.QueryParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\QueryParameter> - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * Optional. The list of query parameters. - * Example: The parameterized SQL query - * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of - * id. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.QueryParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\QueryParameter[] $var - * @return $this - */ - public function setParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\QueryParameter::class); - $this->parameters = $arr; - - return $this; - } - - /** - * @return string - */ - public function getQuery() - { - return $this->whichOneof("query"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Field.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Field.php deleted file mode 100644 index eff8871bb59a..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Field.php +++ /dev/null @@ -1,397 +0,0 @@ -google.cloud.geminidataanalytics.v1.Field - */ -class Field extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The name of the field. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - /** - * Optional. The type of the field. - * - * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $type = ''; - /** - * Optional. A brief description of the field. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. The mode of the field (e.g., NULLABLE, REPEATED). - * - * Generated from protobuf field string mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $mode = ''; - /** - * Optional. A list of alternative names or synonyms that can be used to refer - * to this field. For example: ["id", "customerid", "cust_id"]. Currently only - * used for BigQuery data sources. - * - * Generated from protobuf field repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $synonyms; - /** - * Optional. A list of tags or keywords associated with the field, used for - * categorization. For example: ["identifier", "customer", "pii"]. Currently - * only used for BigQuery data sources. - * - * Generated from protobuf field repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $tags; - /** - * Optional. Field display_name (same as label in - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. Recursive property for nested schema structures. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Field subfields = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $subfields; - /** - * Optional. Field category, not required, currently only useful for Looker. - * - * Generated from protobuf field string category = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $category = ''; - /** - * Optional. Looker only. Value format of the field. - * Ref: - * https://cloud.google.com/looker/docs/reference/param-field-value-format - * - * Generated from protobuf field string value_format = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $value_format = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Optional. The name of the field. - * @type string $type - * Optional. The type of the field. - * @type string $description - * Optional. A brief description of the field. - * @type string $mode - * Optional. The mode of the field (e.g., NULLABLE, REPEATED). - * @type string[] $synonyms - * Optional. A list of alternative names or synonyms that can be used to refer - * to this field. For example: ["id", "customerid", "cust_id"]. Currently only - * used for BigQuery data sources. - * @type string[] $tags - * Optional. A list of tags or keywords associated with the field, used for - * categorization. For example: ["identifier", "customer", "pii"]. Currently - * only used for BigQuery data sources. - * @type string $display_name - * Optional. Field display_name (same as label in - * @type \Google\Cloud\GeminiDataAnalytics\V1\Field[] $subfields - * Optional. Recursive property for nested schema structures. - * @type string $category - * Optional. Field category, not required, currently only useful for Looker. - * @type string $value_format - * Optional. Looker only. Value format of the field. - * Ref: - * https://cloud.google.com/looker/docs/reference/param-field-value-format - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The name of the field. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. The name of the field. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The type of the field. - * - * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Optional. The type of the field. - * - * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Optional. A brief description of the field. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A brief description of the field. - * - * 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. The mode of the field (e.g., NULLABLE, REPEATED). - * - * Generated from protobuf field string mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMode() - { - return $this->mode; - } - - /** - * Optional. The mode of the field (e.g., NULLABLE, REPEATED). - * - * Generated from protobuf field string mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkString($var, True); - $this->mode = $var; - - return $this; - } - - /** - * Optional. A list of alternative names or synonyms that can be used to refer - * to this field. For example: ["id", "customerid", "cust_id"]. Currently only - * used for BigQuery data sources. - * - * Generated from protobuf field repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getSynonyms() - { - return $this->synonyms; - } - - /** - * Optional. A list of alternative names or synonyms that can be used to refer - * to this field. For example: ["id", "customerid", "cust_id"]. Currently only - * used for BigQuery data sources. - * - * Generated from protobuf field repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setSynonyms($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->synonyms = $arr; - - return $this; - } - - /** - * Optional. A list of tags or keywords associated with the field, used for - * categorization. For example: ["identifier", "customer", "pii"]. Currently - * only used for BigQuery data sources. - * - * Generated from protobuf field repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Optional. A list of tags or keywords associated with the field, used for - * categorization. For example: ["identifier", "customer", "pii"]. Currently - * only used for BigQuery data sources. - * - * Generated from protobuf field repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Optional. Field display_name (same as label in - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Field display_name (same as label in - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Recursive property for nested schema structures. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Field subfields = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\Field> - */ - public function getSubfields() - { - return $this->subfields; - } - - /** - * Optional. Recursive property for nested schema structures. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Field subfields = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Field[] $var - * @return $this - */ - public function setSubfields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\Field::class); - $this->subfields = $arr; - - return $this; - } - - /** - * Optional. Field category, not required, currently only useful for Looker. - * - * Generated from protobuf field string category = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCategory() - { - return $this->category; - } - - /** - * Optional. Field category, not required, currently only useful for Looker. - * - * Generated from protobuf field string category = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkString($var, True); - $this->category = $var; - - return $this; - } - - /** - * Optional. Looker only. Value format of the field. - * Ref: - * https://cloud.google.com/looker/docs/reference/param-field-value-format - * - * Generated from protobuf field string value_format = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getValueFormat() - { - return $this->value_format; - } - - /** - * Optional. Looker only. Value format of the field. - * Ref: - * https://cloud.google.com/looker/docs/reference/param-field-value-format - * - * Generated from protobuf field string value_format = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setValueFormat($var) - { - GPBUtil::checkString($var, True); - $this->value_format = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GetConversationRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GetConversationRequest.php deleted file mode 100644 index cbd890066913..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GetConversationRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.geminidataanalytics.v1.GetConversationRequest - */ -class GetConversationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * Please see {@see DataChatServiceClient::conversationName()} for help formatting this field. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1\GetConversationRequest - * - * @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. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Conversation::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * - * 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. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * - * 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GetDataAgentRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GetDataAgentRequest.php deleted file mode 100644 index 655764a1fbed..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GetDataAgentRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.geminidataanalytics.v1.GetDataAgentRequest - */ -class GetDataAgentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the resource. Please see - * {@see DataAgentServiceClient::dataAgentName()} for help formatting this field. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1\GetDataAgentRequest - * - * @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. Name of the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource. - * - * 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. Name of the resource. - * - * 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GlossaryTerm.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GlossaryTerm.php deleted file mode 100644 index 0709a4848703..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/GlossaryTerm.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.geminidataanalytics.v1.GlossaryTerm - */ -class GlossaryTerm extends \Google\Protobuf\Internal\Message -{ - /** - * Required. User friendly display name of the glossary term being defined. - * For example: "CTR", "conversion rate", "pending" - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Required. The description or meaning of the term. - * For example: "Click-through rate", "The percentage of users who complete a - * desired action", "An order that is waiting to be processed." - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $description = ''; - /** - * Optional. A list of general purpose labels associated to this term. - * For example: ["click rate", "clickthrough", "waiting"] - * - * Generated from protobuf field repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Required. User friendly display name of the glossary term being defined. - * For example: "CTR", "conversion rate", "pending" - * @type string $description - * Required. The description or meaning of the term. - * For example: "Click-through rate", "The percentage of users who complete a - * desired action", "An order that is waiting to be processed." - * @type string[] $labels - * Optional. A list of general purpose labels associated to this term. - * For example: ["click rate", "clickthrough", "waiting"] - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * Required. User friendly display name of the glossary term being defined. - * For example: "CTR", "conversion rate", "pending" - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. User friendly display name of the glossary term being defined. - * For example: "CTR", "conversion rate", "pending" - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. The description or meaning of the term. - * For example: "Click-through rate", "The percentage of users who complete a - * desired action", "An order that is waiting to be processed." - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Required. The description or meaning of the term. - * For example: "Click-through rate", "The percentage of users who complete a - * desired action", "An order that is waiting to be processed." - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. A list of general purpose labels associated to this term. - * For example: ["click rate", "clickthrough", "waiting"] - * - * Generated from protobuf field repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. A list of general purpose labels associated to this term. - * For example: ["click rate", "clickthrough", "waiting"] - * - * Generated from protobuf field repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsRequest.php deleted file mode 100644 index 5774e176ea65..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsRequest.php +++ /dev/null @@ -1,313 +0,0 @@ -google.cloud.geminidataanalytics.v1.ListAccessibleDataAgentsRequest - */ -class ListAccessibleDataAgentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent value for ListAccessibleDataAgentsRequest. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * 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 `ListAccessibleDataAgents` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAccessibleDataAgents` must match the call that provided the page - * token. The service may return fewer than this value. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. User specification for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. If true, the list results will include soft-deleted DataAgents. - * Defaults to false. - * - * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $show_deleted = false; - /** - * Optional. Filter for the creator of the agent. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ListAccessibleDataAgentsRequest.CreatorFilter creator_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $creator_filter = 0; - - /** - * @param string $parent Required. Parent value for ListAccessibleDataAgentsRequest. Please see - * {@see DataAgentServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1\ListAccessibleDataAgentsRequest - * - * @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. Parent value for ListAccessibleDataAgentsRequest. - * @type int $page_size - * Optional. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * @type string $page_token - * Optional. A page token, received from a previous `ListAccessibleDataAgents` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAccessibleDataAgents` must match the call that provided the page - * token. The service may return fewer than this value. - * @type string $filter - * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * @type string $order_by - * Optional. User specification for how to order the results. - * @type bool $show_deleted - * Optional. If true, the list results will include soft-deleted DataAgents. - * Defaults to false. - * @type int $creator_filter - * Optional. Filter for the creator of the agent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent value for ListAccessibleDataAgentsRequest. - * - * 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. Parent value for ListAccessibleDataAgentsRequest. - * - * 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. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * 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 `ListAccessibleDataAgents` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAccessibleDataAgents` must match the call that provided the page - * token. The service may return fewer than this value. - * - * 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 `ListAccessibleDataAgents` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAccessibleDataAgents` must match the call that provided the page - * token. The service may return fewer than this value. - * - * 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. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * - * 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; - } - - /** - * Optional. User specification for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. User specification for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.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. If true, the list results will include soft-deleted DataAgents. - * Defaults to false. - * - * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getShowDeleted() - { - return $this->show_deleted; - } - - /** - * Optional. If true, the list results will include soft-deleted DataAgents. - * Defaults to false. - * - * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setShowDeleted($var) - { - GPBUtil::checkBool($var); - $this->show_deleted = $var; - - return $this; - } - - /** - * Optional. Filter for the creator of the agent. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ListAccessibleDataAgentsRequest.CreatorFilter creator_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getCreatorFilter() - { - return $this->creator_filter; - } - - /** - * Optional. Filter for the creator of the agent. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ListAccessibleDataAgentsRequest.CreatorFilter creator_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setCreatorFilter($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1\ListAccessibleDataAgentsRequest\CreatorFilter::class); - $this->creator_filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsRequest/CreatorFilter.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsRequest/CreatorFilter.php deleted file mode 100644 index 12cb4152785e..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsRequest/CreatorFilter.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.geminidataanalytics.v1.ListAccessibleDataAgentsRequest.CreatorFilter - */ -class CreatorFilter -{ - /** - * Default value. - * - * Generated from protobuf enum CREATOR_FILTER_UNSPECIFIED = 0; - */ - const CREATOR_FILTER_UNSPECIFIED = 0; - /** - * No creator-specific filter will be applied. All agents will be returned. - * - * Generated from protobuf enum NONE = 1; - */ - const NONE = 1; - /** - * Only agents created by the user calling the API will be returned. - * - * Generated from protobuf enum CREATOR_ONLY = 2; - */ - const CREATOR_ONLY = 2; - /** - * Only agents not created by the user calling the API will be returned. - * - * Generated from protobuf enum NOT_CREATOR_ONLY = 3; - */ - const NOT_CREATOR_ONLY = 3; - - private static $valueToName = [ - self::CREATOR_FILTER_UNSPECIFIED => 'CREATOR_FILTER_UNSPECIFIED', - self::NONE => 'NONE', - self::CREATOR_ONLY => 'CREATOR_ONLY', - self::NOT_CREATOR_ONLY => 'NOT_CREATOR_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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsResponse.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsResponse.php deleted file mode 100644 index 1830cc47583f..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListAccessibleDataAgentsResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.geminidataanalytics.v1.ListAccessibleDataAgentsResponse - */ -class ListAccessibleDataAgentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of accessible DataAgent. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.DataAgent data_agents = 1; - */ - private $data_agents; - /** - * The next page token or empty if none. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Unordered list. Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\DataAgent[] $data_agents - * The list of accessible DataAgent. - * @type string $next_page_token - * The next page token or empty if none. - * @type string[] $unreachable - * Unordered list. Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgentService::initOnce(); - parent::__construct($data); - } - - /** - * The list of accessible DataAgent. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.DataAgent data_agents = 1; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\DataAgent> - */ - public function getDataAgents() - { - return $this->data_agents; - } - - /** - * The list of accessible DataAgent. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.DataAgent data_agents = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1\DataAgent[] $var - * @return $this - */ - public function setDataAgents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\DataAgent::class); - $this->data_agents = $arr; - - return $this; - } - - /** - * The next page token or empty if none. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The next page token or empty if none. - * - * 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; - } - - /** - * Unordered list. Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Unordered list. Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListConversationsRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListConversationsRequest.php deleted file mode 100644 index 4377a380d4a3..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListConversationsRequest.php +++ /dev/null @@ -1,212 +0,0 @@ -google.cloud.geminidataanalytics.v1.ListConversationsRequest - */ -class ListConversationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent value for ListConversationsRequest. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is `100`. All larger page sizes will be - * coerced to `100`. If unspecified, server will pick `50` as an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Returned conversations will match criteria specified within the - * filter. ListConversations allows filtering by: - * * agents - * * labels - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Parent value for ListConversationsRequest. - * Format: `projects/{project}/locations/{location}` - * Please see {@see DataChatServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1\ListConversationsRequest - * - * @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. Parent value for ListConversationsRequest. - * Format: `projects/{project}/locations/{location}` - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is `100`. All larger page sizes will be - * coerced to `100`. If unspecified, server will pick `50` as an appropriate - * default. - * @type string $page_token - * Optional. A token identifying a page of results the server should return. - * @type string $filter - * Optional. Returned conversations will match criteria specified within the - * filter. ListConversations allows filtering by: - * * agents - * * labels - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Conversation::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent value for ListConversationsRequest. - * Format: `projects/{project}/locations/{location}` - * - * 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. Parent value for ListConversationsRequest. - * Format: `projects/{project}/locations/{location}` - * - * 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. Requested page size. Server may return fewer items than - * requested. The max page size is `100`. All larger page sizes will be - * coerced to `100`. If unspecified, server will pick `50` as an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is `100`. All larger page sizes will be - * coerced to `100`. If unspecified, server will pick `50` as an appropriate - * default. - * - * 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 token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * 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. Returned conversations will match criteria specified within the - * filter. ListConversations allows filtering by: - * * agents - * * labels - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Returned conversations will match criteria specified within the - * filter. ListConversations allows filtering by: - * * agents - * * labels - * - * 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListConversationsResponse.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListConversationsResponse.php deleted file mode 100644 index 9f6c0b6b7898..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListConversationsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.geminidataanalytics.v1.ListConversationsResponse - */ -class ListConversationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of conversations. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Conversation conversations = 1; - */ - private $conversations; - /** - * A token identifying a page of results the server should return. - * - * 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\GeminiDataAnalytics\V1\Conversation[] $conversations - * The list of conversations. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Conversation::initOnce(); - parent::__construct($data); - } - - /** - * The list of conversations. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Conversation conversations = 1; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\Conversation> - */ - public function getConversations() - { - return $this->conversations; - } - - /** - * The list of conversations. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Conversation conversations = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Conversation[] $var - * @return $this - */ - public function setConversations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\Conversation::class); - $this->conversations = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListDataAgentsRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListDataAgentsRequest.php deleted file mode 100644 index 452fd81aac0f..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListDataAgentsRequest.php +++ /dev/null @@ -1,279 +0,0 @@ -google.cloud.geminidataanalytics.v1.ListDataAgentsRequest - */ -class ListDataAgentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent value for ListDataAgentsRequest. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * 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 `ListDataAgents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataAgents` must - * match the call that provided the page token. The service may return fewer - * than this value. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. User specification for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. If true, the list results will include soft-deleted DataAgents. - * Defaults to false. - * - * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $show_deleted = false; - - /** - * @param string $parent Required. Parent value for ListDataAgentsRequest. Please see - * {@see DataAgentServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1\ListDataAgentsRequest - * - * @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. Parent value for ListDataAgentsRequest. - * @type int $page_size - * Optional. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * @type string $page_token - * Optional. A page token, received from a previous `ListDataAgents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataAgents` must - * match the call that provided the page token. The service may return fewer - * than this value. - * @type string $filter - * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * @type string $order_by - * Optional. User specification for how to order the results. - * @type bool $show_deleted - * Optional. If true, the list results will include soft-deleted DataAgents. - * Defaults to false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent value for ListDataAgentsRequest. - * - * 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. Parent value for ListDataAgentsRequest. - * - * 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. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * 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 `ListDataAgents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataAgents` must - * match the call that provided the page token. The service may return fewer - * than this value. - * - * 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 `ListDataAgents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataAgents` must - * match the call that provided the page token. The service may return fewer - * than this value. - * - * 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. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * - * 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; - } - - /** - * Optional. User specification for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. User specification for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.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. If true, the list results will include soft-deleted DataAgents. - * Defaults to false. - * - * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getShowDeleted() - { - return $this->show_deleted; - } - - /** - * Optional. If true, the list results will include soft-deleted DataAgents. - * Defaults to false. - * - * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setShowDeleted($var) - { - GPBUtil::checkBool($var); - $this->show_deleted = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListDataAgentsResponse.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListDataAgentsResponse.php deleted file mode 100644 index cefb33b09203..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListDataAgentsResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.geminidataanalytics.v1.ListDataAgentsResponse - */ -class ListDataAgentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of DataAgent. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.DataAgent data_agents = 1; - */ - private $data_agents; - /** - * The next page token or empty if none. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Unordered list. Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\DataAgent[] $data_agents - * The list of DataAgent. - * @type string $next_page_token - * The next page token or empty if none. - * @type string[] $unreachable - * Unordered list. Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgentService::initOnce(); - parent::__construct($data); - } - - /** - * The list of DataAgent. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.DataAgent data_agents = 1; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\DataAgent> - */ - public function getDataAgents() - { - return $this->data_agents; - } - - /** - * The list of DataAgent. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.DataAgent data_agents = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1\DataAgent[] $var - * @return $this - */ - public function setDataAgents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\DataAgent::class); - $this->data_agents = $arr; - - return $this; - } - - /** - * The next page token or empty if none. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The next page token or empty if none. - * - * 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; - } - - /** - * Unordered list. Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Unordered list. Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListMessagesRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListMessagesRequest.php deleted file mode 100644 index 7bbeb60bc032..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListMessagesRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.geminidataanalytics.v1.ListMessagesRequest - */ -class ListMessagesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The conversation to list messages under. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is `100`. All larger page sizes will be - * coerced to `100`. If unspecified, server will pick `50` as an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * ListMessages allows filtering by: - * * create_time (e.g., `createTime > "2025-01-28T06:51:56-08:00"`) - * * update_time - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The conversation to list messages under. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * Please see {@see DataChatServiceClient::conversationName()} for help formatting this field. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1\ListMessagesRequest - * - * @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 conversation to list messages under. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is `100`. All larger page sizes will be - * coerced to `100`. If unspecified, server will pick `50` as an appropriate - * default. - * @type string $page_token - * Optional. A token identifying a page of results the server should return. - * @type string $filter - * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * ListMessages allows filtering by: - * * create_time (e.g., `createTime > "2025-01-28T06:51:56-08:00"`) - * * update_time - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The conversation to list messages under. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * - * 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 conversation to list messages under. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * - * 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. Requested page size. Server may return fewer items than - * requested. The max page size is `100`. All larger page sizes will be - * coerced to `100`. If unspecified, server will pick `50` as an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is `100`. All larger page sizes will be - * coerced to `100`. If unspecified, server will pick `50` as an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 3 [(.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 token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 4 [(.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. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * ListMessages allows filtering by: - * * create_time (e.g., `createTime > "2025-01-28T06:51:56-08:00"`) - * * update_time - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * ListMessages allows filtering by: - * * create_time (e.g., `createTime > "2025-01-28T06:51:56-08:00"`) - * * update_time - * - * 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListMessagesResponse.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListMessagesResponse.php deleted file mode 100644 index f5069ff95ffd..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/ListMessagesResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.geminidataanalytics.v1.ListMessagesResponse - */ -class ListMessagesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of chat messages. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.StorageMessage messages = 1; - */ - private $messages; - /** - * A token identifying a page of results the server should return. - * - * 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\GeminiDataAnalytics\V1\StorageMessage[] $messages - * The list of chat messages. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * The list of chat messages. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.StorageMessage messages = 1; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\StorageMessage> - */ - public function getMessages() - { - return $this->messages; - } - - /** - * The list of chat messages. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.StorageMessage messages = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1\StorageMessage[] $var - * @return $this - */ - public function setMessages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\StorageMessage::class); - $this->messages = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerExploreReference.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerExploreReference.php deleted file mode 100644 index 1a282608232e..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerExploreReference.php +++ /dev/null @@ -1,244 +0,0 @@ -google.cloud.geminidataanalytics.v1.LookerExploreReference - */ -class LookerExploreReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Looker model, as outlined in - * [Major LookML - * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). - * Name of the LookML model. - * - * Generated from protobuf field string lookml_model = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $lookml_model = ''; - /** - * Required. Looker Explore, as outlined in - * [Major LookML - * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). - * Name of the LookML Explore. - * - * Generated from protobuf field string explore = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $explore = ''; - /** - * Optional. The schema of the datasource. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema = null; - protected $instance; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $looker_instance_uri - * Required. The base url of the Looker instance. - * @type \Google\Cloud\GeminiDataAnalytics\V1\PrivateLookerInstanceInfo $private_looker_instance_info - * Private Looker instance info. - * @type string $lookml_model - * Required. Looker model, as outlined in - * [Major LookML - * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). - * Name of the LookML model. - * @type string $explore - * Required. Looker Explore, as outlined in - * [Major LookML - * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). - * Name of the LookML Explore. - * @type \Google\Cloud\GeminiDataAnalytics\V1\Schema $schema - * Optional. The schema of the datasource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Required. The base url of the Looker instance. - * - * Generated from protobuf field string looker_instance_uri = 9; - * @return string - */ - public function getLookerInstanceUri() - { - return $this->readOneof(9); - } - - public function hasLookerInstanceUri() - { - return $this->hasOneof(9); - } - - /** - * Required. The base url of the Looker instance. - * - * Generated from protobuf field string looker_instance_uri = 9; - * @param string $var - * @return $this - */ - public function setLookerInstanceUri($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Private Looker instance info. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.PrivateLookerInstanceInfo private_looker_instance_info = 10; - * @return \Google\Cloud\GeminiDataAnalytics\V1\PrivateLookerInstanceInfo|null - */ - public function getPrivateLookerInstanceInfo() - { - return $this->readOneof(10); - } - - public function hasPrivateLookerInstanceInfo() - { - return $this->hasOneof(10); - } - - /** - * Private Looker instance info. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.PrivateLookerInstanceInfo private_looker_instance_info = 10; - * @param \Google\Cloud\GeminiDataAnalytics\V1\PrivateLookerInstanceInfo $var - * @return $this - */ - public function setPrivateLookerInstanceInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\PrivateLookerInstanceInfo::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Required. Looker model, as outlined in - * [Major LookML - * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). - * Name of the LookML model. - * - * Generated from protobuf field string lookml_model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLookmlModel() - { - return $this->lookml_model; - } - - /** - * Required. Looker model, as outlined in - * [Major LookML - * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). - * Name of the LookML model. - * - * Generated from protobuf field string lookml_model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLookmlModel($var) - { - GPBUtil::checkString($var, True); - $this->lookml_model = $var; - - return $this; - } - - /** - * Required. Looker Explore, as outlined in - * [Major LookML - * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). - * Name of the LookML Explore. - * - * Generated from protobuf field string explore = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getExplore() - { - return $this->explore; - } - - /** - * Required. Looker Explore, as outlined in - * [Major LookML - * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). - * Name of the LookML Explore. - * - * Generated from protobuf field string explore = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setExplore($var) - { - GPBUtil::checkString($var, True); - $this->explore = $var; - - return $this; - } - - /** - * Optional. The schema of the datasource. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\Schema|null - */ - public function getSchema() - { - return $this->schema; - } - - public function hasSchema() - { - return isset($this->schema); - } - - public function clearSchema() - { - unset($this->schema); - } - - /** - * Optional. The schema of the datasource. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Schema schema = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Schema $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Schema::class); - $this->schema = $var; - - return $this; - } - - /** - * @return string - */ - public function getInstance() - { - return $this->whichOneof("instance"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerExploreReferences.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerExploreReferences.php deleted file mode 100644 index 175ab25850d7..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerExploreReferences.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.geminidataanalytics.v1.LookerExploreReferences - */ -class LookerExploreReferences extends \Google\Protobuf\Internal\Message -{ - /** - * Required. References to Looker explores. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.LookerExploreReference explore_references = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $explore_references; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReference[] $explore_references - * Required. References to Looker explores. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Required. References to Looker explores. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.LookerExploreReference explore_references = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReference> - */ - public function getExploreReferences() - { - return $this->explore_references; - } - - /** - * Required. References to Looker explores. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.LookerExploreReference explore_references = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReference[] $var - * @return $this - */ - public function setExploreReferences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\LookerExploreReference::class); - $this->explore_references = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerGoldenQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerGoldenQuery.php deleted file mode 100644 index a42984aa7e19..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerGoldenQuery.php +++ /dev/null @@ -1,116 +0,0 @@ -google.cloud.geminidataanalytics.v1.LookerGoldenQuery - */ -class LookerGoldenQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Natural language questions that a user might ask. - * For example: "How many orders were placed last month?" - * - * Generated from protobuf field repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $natural_language_questions; - /** - * Optional. The Looker Query corresponding to the natural language questions. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $looker_query = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $natural_language_questions - * Optional. Natural language questions that a user might ask. - * For example: "How many orders were placed last month?" - * @type \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery $looker_query - * Optional. The Looker Query corresponding to the natural language questions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Natural language questions that a user might ask. - * For example: "How many orders were placed last month?" - * - * Generated from protobuf field repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getNaturalLanguageQuestions() - { - return $this->natural_language_questions; - } - - /** - * Optional. Natural language questions that a user might ask. - * For example: "How many orders were placed last month?" - * - * Generated from protobuf field repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setNaturalLanguageQuestions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->natural_language_questions = $arr; - - return $this; - } - - /** - * Optional. The Looker Query corresponding to the natural language questions. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery|null - */ - public function getLookerQuery() - { - return $this->looker_query; - } - - public function hasLookerQuery() - { - return isset($this->looker_query); - } - - public function clearLookerQuery() - { - unset($this->looker_query); - } - - /** - * Optional. The Looker Query corresponding to the natural language questions. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery $var - * @return $this - */ - public function setLookerQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery::class); - $this->looker_query = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerQuery.php deleted file mode 100644 index 50d92db6a6f0..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerQuery.php +++ /dev/null @@ -1,353 +0,0 @@ -google.cloud.geminidataanalytics.v1.LookerQuery - */ -class LookerQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The LookML model used to generate the query. - * - * Generated from protobuf field string model = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $model = ''; - /** - * Required. The LookML explore used to generate the query. - * - * Generated from protobuf field string explore = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $explore = ''; - /** - * Optional. The fields to retrieve from the explore. - * - * Generated from protobuf field repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $fields; - /** - * Optional. The filters to apply to the explore. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $filters; - /** - * Optional. The sorts to apply to the explore. - * - * Generated from protobuf field repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $sorts; - /** - * Optional. Limit in the query. - * - * Generated from protobuf field optional string limit = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $limit = null; - /** - * Optional. The primary identifier for the query resource in Looker, used for - * API operations. Maps to `id` (or `slug`) in the Looker API `Query` - * resource. - * - * Generated from protobuf field optional string query_id = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $query_id = null; - /** - * Optional. The short alphanumeric identifier for the query, used for share - * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` - * in the Looker API `Query` resource. - * - * Generated from protobuf field optional string client_id = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $client_id = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $model - * Required. The LookML model used to generate the query. - * @type string $explore - * Required. The LookML explore used to generate the query. - * @type string[] $fields - * Optional. The fields to retrieve from the explore. - * @type \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery\Filter[] $filters - * Optional. The filters to apply to the explore. - * @type string[] $sorts - * Optional. The sorts to apply to the explore. - * @type string $limit - * Optional. Limit in the query. - * @type string $query_id - * Optional. The primary identifier for the query resource in Looker, used for - * API operations. Maps to `id` (or `slug`) in the Looker API `Query` - * resource. - * @type string $client_id - * Optional. The short alphanumeric identifier for the query, used for share - * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` - * in the Looker API `Query` resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * Required. The LookML model used to generate the query. - * - * Generated from protobuf field string model = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getModel() - { - return $this->model; - } - - /** - * Required. The LookML model used to generate the query. - * - * Generated from protobuf field string model = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setModel($var) - { - GPBUtil::checkString($var, True); - $this->model = $var; - - return $this; - } - - /** - * Required. The LookML explore used to generate the query. - * - * Generated from protobuf field string explore = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getExplore() - { - return $this->explore; - } - - /** - * Required. The LookML explore used to generate the query. - * - * Generated from protobuf field string explore = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setExplore($var) - { - GPBUtil::checkString($var, True); - $this->explore = $var; - - return $this; - } - - /** - * Optional. The fields to retrieve from the explore. - * - * Generated from protobuf field repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getFields() - { - return $this->fields; - } - - /** - * Optional. The fields to retrieve from the explore. - * - * Generated from protobuf field repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->fields = $arr; - - return $this; - } - - /** - * Optional. The filters to apply to the explore. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\LookerQuery\Filter> - */ - public function getFilters() - { - return $this->filters; - } - - /** - * Optional. The filters to apply to the explore. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery\Filter[] $var - * @return $this - */ - public function setFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\LookerQuery\Filter::class); - $this->filters = $arr; - - return $this; - } - - /** - * Optional. The sorts to apply to the explore. - * - * Generated from protobuf field repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getSorts() - { - return $this->sorts; - } - - /** - * Optional. The sorts to apply to the explore. - * - * Generated from protobuf field repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setSorts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->sorts = $arr; - - return $this; - } - - /** - * Optional. Limit in the query. - * - * Generated from protobuf field optional string limit = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getLimit() - { - return isset($this->limit) ? $this->limit : ''; - } - - public function hasLimit() - { - return isset($this->limit); - } - - public function clearLimit() - { - unset($this->limit); - } - - /** - * Optional. Limit in the query. - * - * Generated from protobuf field optional string limit = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkString($var, True); - $this->limit = $var; - - return $this; - } - - /** - * Optional. The primary identifier for the query resource in Looker, used for - * API operations. Maps to `id` (or `slug`) in the Looker API `Query` - * resource. - * - * Generated from protobuf field optional string query_id = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getQueryId() - { - return isset($this->query_id) ? $this->query_id : ''; - } - - public function hasQueryId() - { - return isset($this->query_id); - } - - public function clearQueryId() - { - unset($this->query_id); - } - - /** - * Optional. The primary identifier for the query resource in Looker, used for - * API operations. Maps to `id` (or `slug`) in the Looker API `Query` - * resource. - * - * Generated from protobuf field optional string query_id = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setQueryId($var) - { - GPBUtil::checkString($var, True); - $this->query_id = $var; - - return $this; - } - - /** - * Optional. The short alphanumeric identifier for the query, used for share - * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` - * in the Looker API `Query` resource. - * - * Generated from protobuf field optional string client_id = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getClientId() - { - return isset($this->client_id) ? $this->client_id : ''; - } - - public function hasClientId() - { - return isset($this->client_id); - } - - public function clearClientId() - { - unset($this->client_id); - } - - /** - * Optional. The short alphanumeric identifier for the query, used for share - * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` - * in the Looker API `Query` resource. - * - * Generated from protobuf field optional string client_id = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setClientId($var) - { - GPBUtil::checkString($var, True); - $this->client_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerQuery/Filter.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerQuery/Filter.php deleted file mode 100644 index f1a1cf811fa3..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerQuery/Filter.php +++ /dev/null @@ -1,119 +0,0 @@ -google.cloud.geminidataanalytics.v1.LookerQuery.Filter - */ -class Filter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The field to filter on. - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $field = ''; - /** - * Optional. The value for the field to filter on. - * Optional so we can preserve the default value as an empty - * string, important to get a valid and working Looker Explore url. - * - * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field - * Required. The field to filter on. - * @type string $value - * Optional. The value for the field to filter on. - * Optional so we can preserve the default value as an empty - * string, important to get a valid and working Looker Explore url. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * Required. The field to filter on. - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * Required. The field to filter on. - * - * 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. The value for the field to filter on. - * Optional so we can preserve the default value as an empty - * string, important to get a valid and working Looker Explore url. - * - * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getValue() - { - return isset($this->value) ? $this->value : ''; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * Optional. The value for the field to filter on. - * Optional so we can preserve the default value as an empty - * string, important to get a valid and working Looker Explore url. - * - * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerSettings.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerSettings.php deleted file mode 100644 index 1298655f35fd..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/LookerSettings.php +++ /dev/null @@ -1,87 +0,0 @@ -google.cloud.geminidataanalytics.v1.LookerSettings - */ -class LookerSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Whether to operate in Looker's Development Mode. - * If true, the API session will be switched to the "dev" workspace, - * allowing interaction with LookML changes in the user's development branch. - * If false or unset, the session remains in the default state (Production - * Mode). - * See https://cloud.google.com/looker/docs/dev-mode-prod-mode. - * - * Generated from protobuf field bool enable_dev_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enable_dev_mode = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_dev_mode - * Optional. Whether to operate in Looker's Development Mode. - * If true, the API session will be switched to the "dev" workspace, - * allowing interaction with LookML changes in the user's development branch. - * If false or unset, the session remains in the default state (Production - * Mode). - * See https://cloud.google.com/looker/docs/dev-mode-prod-mode. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Whether to operate in Looker's Development Mode. - * If true, the API session will be switched to the "dev" workspace, - * allowing interaction with LookML changes in the user's development branch. - * If false or unset, the session remains in the default state (Production - * Mode). - * See https://cloud.google.com/looker/docs/dev-mode-prod-mode. - * - * Generated from protobuf field bool enable_dev_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnableDevMode() - { - return $this->enable_dev_mode; - } - - /** - * Optional. Whether to operate in Looker's Development Mode. - * If true, the API session will be switched to the "dev" workspace, - * allowing interaction with LookML changes in the user's development branch. - * If false or unset, the session remains in the default state (Production - * Mode). - * See https://cloud.google.com/looker/docs/dev-mode-prod-mode. - * - * Generated from protobuf field bool enable_dev_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnableDevMode($var) - { - GPBUtil::checkBool($var); - $this->enable_dev_mode = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/MatchedQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/MatchedQuery.php deleted file mode 100644 index efb7fa5162e0..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/MatchedQuery.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.geminidataanalytics.v1.MatchedQuery - */ -class MatchedQuery extends \Google\Protobuf\Internal\Message -{ - /** - * The query that was matched based on an example query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 1; - */ - protected $example_query = null; - /** - * The extracted values for the query parameters. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.QueryParameterValues query_parameter_values = 2; - */ - private $query_parameter_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery $example_query - * The query that was matched based on an example query. - * @type \Google\Cloud\GeminiDataAnalytics\V1\QueryParameterValues[] $query_parameter_values - * The extracted values for the query parameters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * The query that was matched based on an example query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery|null - */ - public function getExampleQuery() - { - return $this->example_query; - } - - public function hasExampleQuery() - { - return isset($this->example_query); - } - - public function clearExampleQuery() - { - unset($this->example_query); - } - - /** - * The query that was matched based on an example query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery $var - * @return $this - */ - public function setExampleQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ExampleQuery::class); - $this->example_query = $var; - - return $this; - } - - /** - * The extracted values for the query parameters. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.QueryParameterValues query_parameter_values = 2; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\QueryParameterValues> - */ - public function getQueryParameterValues() - { - return $this->query_parameter_values; - } - - /** - * The extracted values for the query parameters. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.QueryParameterValues query_parameter_values = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1\QueryParameterValues[] $var - * @return $this - */ - public function setQueryParameterValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\QueryParameterValues::class); - $this->query_parameter_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Message.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Message.php deleted file mode 100644 index e388f346db19..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Message.php +++ /dev/null @@ -1,194 +0,0 @@ -google.cloud.geminidataanalytics.v1.Message - */ -class Message extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. For user messages, this is the time at which the system - * received the message. For system messages, this is the time at which the - * system generated the message. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $timestamp = null; - /** - * Optional. unique id of the message in the conversation for persistence. - * - * Generated from protobuf field string message_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $message_id = ''; - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\UserMessage $user_message - * A message from the user that is interacting with the system. - * @type \Google\Cloud\GeminiDataAnalytics\V1\SystemMessage $system_message - * A message from the system in response to the user. - * @type \Google\Protobuf\Timestamp $timestamp - * Output only. For user messages, this is the time at which the system - * received the message. For system messages, this is the time at which the - * system generated the message. - * @type string $message_id - * Optional. unique id of the message in the conversation for persistence. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * A message from the user that is interacting with the system. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.UserMessage user_message = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1\UserMessage|null - */ - public function getUserMessage() - { - return $this->readOneof(2); - } - - public function hasUserMessage() - { - return $this->hasOneof(2); - } - - /** - * A message from the user that is interacting with the system. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.UserMessage user_message = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1\UserMessage $var - * @return $this - */ - public function setUserMessage($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\UserMessage::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A message from the system in response to the user. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.SystemMessage system_message = 3; - * @return \Google\Cloud\GeminiDataAnalytics\V1\SystemMessage|null - */ - public function getSystemMessage() - { - return $this->readOneof(3); - } - - public function hasSystemMessage() - { - return $this->hasOneof(3); - } - - /** - * A message from the system in response to the user. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.SystemMessage system_message = 3; - * @param \Google\Cloud\GeminiDataAnalytics\V1\SystemMessage $var - * @return $this - */ - public function setSystemMessage($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\SystemMessage::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Output only. For user messages, this is the time at which the system - * received the message. For system messages, this is the time at which the - * system generated the message. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestamp() - { - return $this->timestamp; - } - - public function hasTimestamp() - { - return isset($this->timestamp); - } - - public function clearTimestamp() - { - unset($this->timestamp); - } - - /** - * Output only. For user messages, this is the time at which the system - * received the message. For system messages, this is the time at which the - * system generated the message. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->timestamp = $var; - - return $this; - } - - /** - * Optional. unique id of the message in the conversation for persistence. - * - * Generated from protobuf field string message_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMessageId() - { - return $this->message_id; - } - - /** - * Optional. unique id of the message in the conversation for persistence. - * - * Generated from protobuf field string message_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMessageId($var) - { - GPBUtil::checkString($var, True); - $this->message_id = $var; - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials.php deleted file mode 100644 index 5667494801b1..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.geminidataanalytics.v1.OAuthCredentials - */ -class OAuthCredentials extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials\SecretBased $secret - * Secret-based OAuth credentials. - * @type \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials\TokenBased $token - * Token-based OAuth credentials. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Credentials::initOnce(); - parent::__construct($data); - } - - /** - * Secret-based OAuth credentials. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.OAuthCredentials.SecretBased secret = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials\SecretBased|null - */ - public function getSecret() - { - return $this->readOneof(2); - } - - public function hasSecret() - { - return $this->hasOneof(2); - } - - /** - * Secret-based OAuth credentials. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.OAuthCredentials.SecretBased secret = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials\SecretBased $var - * @return $this - */ - public function setSecret($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials\SecretBased::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Token-based OAuth credentials. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.OAuthCredentials.TokenBased token = 3; - * @return \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials\TokenBased|null - */ - public function getToken() - { - return $this->readOneof(3); - } - - public function hasToken() - { - return $this->hasOneof(3); - } - - /** - * Token-based OAuth credentials. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.OAuthCredentials.TokenBased token = 3; - * @param \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials\TokenBased $var - * @return $this - */ - public function setToken($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\OAuthCredentials\TokenBased::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials/SecretBased.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials/SecretBased.php deleted file mode 100644 index ef834b3a6bb9..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials/SecretBased.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.geminidataanalytics.v1.OAuthCredentials.SecretBased - */ -class SecretBased extends \Google\Protobuf\Internal\Message -{ - /** - * Required. An OAuth client ID. - * - * Generated from protobuf field string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $client_id = ''; - /** - * Required. An OAuth client secret. - * - * Generated from protobuf field string client_secret = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $client_secret = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $client_id - * Required. An OAuth client ID. - * @type string $client_secret - * Required. An OAuth client secret. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Credentials::initOnce(); - parent::__construct($data); - } - - /** - * Required. An OAuth client ID. - * - * Generated from protobuf field string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getClientId() - { - return $this->client_id; - } - - /** - * Required. An OAuth client ID. - * - * Generated from protobuf field string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setClientId($var) - { - GPBUtil::checkString($var, True); - $this->client_id = $var; - - return $this; - } - - /** - * Required. An OAuth client secret. - * - * Generated from protobuf field string client_secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getClientSecret() - { - return $this->client_secret; - } - - /** - * Required. An OAuth client secret. - * - * Generated from protobuf field string client_secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setClientSecret($var) - { - GPBUtil::checkString($var, True); - $this->client_secret = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials/TokenBased.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials/TokenBased.php deleted file mode 100644 index 6d089ec3dc72..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OAuthCredentials/TokenBased.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.geminidataanalytics.v1.OAuthCredentials.TokenBased - */ -class TokenBased extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the secret containing the access token. - * - * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $access_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $access_token - * Required. The name of the secret containing the access token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Credentials::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the secret containing the access token. - * - * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAccessToken() - { - return $this->access_token; - } - - /** - * Required. The name of the secret containing the access token. - * - * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAccessToken($var) - { - GPBUtil::checkString($var, True); - $this->access_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OperationMetadata.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OperationMetadata.php deleted file mode 100644 index d06db1a7655a..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/OperationMetadata.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.geminidataanalytics.v1.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status_message = ''; - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requested_cancellation = false; - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $api_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the operation finished running. - * @type string $target - * Output only. Server-defined resource path for the target of the operation. - * @type string $verb - * Output only. Name of the verb executed by the operation. - * @type string $status_message - * Output only. Human-readable status of the operation, if any. - * @type bool $requested_cancellation - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * @type string $api_version - * Output only. API version used to start the operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgentService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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 the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVerb() - { - return $this->verb; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVerb($var) - { - GPBUtil::checkString($var, True); - $this->verb = $var; - - return $this; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStatusMessage() - { - return $this->status_message; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStatusMessage($var) - { - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getRequestedCancellation() - { - return $this->requested_cancellation; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setRequestedCancellation($var) - { - GPBUtil::checkBool($var); - $this->requested_cancellation = $var; - - return $this; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getApiVersion() - { - return $this->api_version; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->api_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/PrivateLookerInstanceInfo.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/PrivateLookerInstanceInfo.php deleted file mode 100644 index a1e47d7eb812..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/PrivateLookerInstanceInfo.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.geminidataanalytics.v1.PrivateLookerInstanceInfo - */ -class PrivateLookerInstanceInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The Looker instance id. - * - * Generated from protobuf field string looker_instance_id = 1; - */ - protected $looker_instance_id = ''; - /** - * The service directory name of the Looker instance. - * - * Generated from protobuf field string service_directory_name = 2; - */ - protected $service_directory_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $looker_instance_id - * The Looker instance id. - * @type string $service_directory_name - * The service directory name of the Looker instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * The Looker instance id. - * - * Generated from protobuf field string looker_instance_id = 1; - * @return string - */ - public function getLookerInstanceId() - { - return $this->looker_instance_id; - } - - /** - * The Looker instance id. - * - * Generated from protobuf field string looker_instance_id = 1; - * @param string $var - * @return $this - */ - public function setLookerInstanceId($var) - { - GPBUtil::checkString($var, True); - $this->looker_instance_id = $var; - - return $this; - } - - /** - * The service directory name of the Looker instance. - * - * Generated from protobuf field string service_directory_name = 2; - * @return string - */ - public function getServiceDirectoryName() - { - return $this->service_directory_name; - } - - /** - * The service directory name of the Looker instance. - * - * Generated from protobuf field string service_directory_name = 2; - * @param string $var - * @return $this - */ - public function setServiceDirectoryName($var) - { - GPBUtil::checkString($var, True); - $this->service_directory_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/QueryParameter.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/QueryParameter.php deleted file mode 100644 index 4cb2e150100f..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/QueryParameter.php +++ /dev/null @@ -1,156 +0,0 @@ -google.cloud.geminidataanalytics.v1.QueryParameter - */ -class QueryParameter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parameter reference in the SQL query. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Optional. The description of the parameter that can be used by LLM to - * extract the parameter value from the user question. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. The data type of the parameter, e.g. "STRING", "INT64", "DATE", - * etc. For valid values, see the [BigQuery - * documentation](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). - * This will be used to populate - * google.cloud.bigquery.v2.QueryParameterType.type. - * - * Generated from protobuf field string data_type = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the parameter reference in the SQL query. - * @type string $description - * Optional. The description of the parameter that can be used by LLM to - * extract the parameter value from the user question. - * @type string $data_type - * Required. The data type of the parameter, e.g. "STRING", "INT64", "DATE", - * etc. For valid values, see the [BigQuery - * documentation](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). - * This will be used to populate - * google.cloud.bigquery.v2.QueryParameterType.type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parameter reference in the SQL query. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the parameter reference in the SQL query. - * - * 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; - } - - /** - * Optional. The description of the parameter that can be used by LLM to - * extract the parameter value from the user question. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. The description of the parameter that can be used by LLM to - * extract the parameter value from the user question. - * - * 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; - } - - /** - * Required. The data type of the parameter, e.g. "STRING", "INT64", "DATE", - * etc. For valid values, see the [BigQuery - * documentation](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). - * This will be used to populate - * google.cloud.bigquery.v2.QueryParameterType.type. - * - * Generated from protobuf field string data_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDataType() - { - return $this->data_type; - } - - /** - * Required. The data type of the parameter, e.g. "STRING", "INT64", "DATE", - * etc. For valid values, see the [BigQuery - * documentation](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). - * This will be used to populate - * google.cloud.bigquery.v2.QueryParameterType.type. - * - * Generated from protobuf field string data_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDataType($var) - { - GPBUtil::checkString($var, True); - $this->data_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/QueryParameterValues.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/QueryParameterValues.php deleted file mode 100644 index f131d4d5da43..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/QueryParameterValues.php +++ /dev/null @@ -1,103 +0,0 @@ -google.cloud.geminidataanalytics.v1.QueryParameterValues - */ -class QueryParameterValues extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parameter. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. The value of the parameter. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the parameter. - * @type string $value - * Required. The value of the parameter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parameter. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the parameter. - * - * 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; - } - - /** - * Required. The value of the parameter. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Required. The value of the parameter. - * - * Generated from protobuf field string value = 2 [(.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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Schema.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Schema.php deleted file mode 100644 index 45511dc09c91..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/Schema.php +++ /dev/null @@ -1,273 +0,0 @@ -google.cloud.geminidataanalytics.v1.Schema - */ -class Schema extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The fields in the schema. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Field fields = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $fields; - /** - * Optional. A textual description of the table's content and purpose. - * For example: "Contains information about customer orders in our e-commerce - * store." Currently only used for BigQuery data sources. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. A list of alternative names or synonyms that can be used to refer - * to the table. For example: ["sales", "orders", "purchases"]. Currently only - * used for BigQuery data sources. - * - * Generated from protobuf field repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $synonyms; - /** - * Optional. A list of tags or keywords associated with the table, used for - * categorization. For example: ["transaction", "revenue", "customer_data"]. - * Currently only used for BigQuery data sources. - * - * Generated from protobuf field repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $tags; - /** - * Optional. Table display_name (same as label in - * cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not - * required, currently only Looker has this field. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. The filters on the datasource's underlying data. Currently only - * used for Looker data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.DataFilter filters = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $filters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\Field[] $fields - * Optional. The fields in the schema. - * @type string $description - * Optional. A textual description of the table's content and purpose. - * For example: "Contains information about customer orders in our e-commerce - * store." Currently only used for BigQuery data sources. - * @type string[] $synonyms - * Optional. A list of alternative names or synonyms that can be used to refer - * to the table. For example: ["sales", "orders", "purchases"]. Currently only - * used for BigQuery data sources. - * @type string[] $tags - * Optional. A list of tags or keywords associated with the table, used for - * categorization. For example: ["transaction", "revenue", "customer_data"]. - * Currently only used for BigQuery data sources. - * @type string $display_name - * Optional. Table display_name (same as label in - * cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not - * required, currently only Looker has this field. - * @type \Google\Cloud\GeminiDataAnalytics\V1\DataFilter[] $filters - * Optional. The filters on the datasource's underlying data. Currently only - * used for Looker data sources. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The fields in the schema. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Field fields = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\Field> - */ - public function getFields() - { - return $this->fields; - } - - /** - * Optional. The fields in the schema. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Field fields = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Field[] $var - * @return $this - */ - public function setFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\Field::class); - $this->fields = $arr; - - return $this; - } - - /** - * Optional. A textual description of the table's content and purpose. - * For example: "Contains information about customer orders in our e-commerce - * store." Currently only used for BigQuery data sources. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A textual description of the table's content and purpose. - * For example: "Contains information about customer orders in our e-commerce - * store." Currently only used for BigQuery data sources. - * - * 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; - } - - /** - * Optional. A list of alternative names or synonyms that can be used to refer - * to the table. For example: ["sales", "orders", "purchases"]. Currently only - * used for BigQuery data sources. - * - * Generated from protobuf field repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getSynonyms() - { - return $this->synonyms; - } - - /** - * Optional. A list of alternative names or synonyms that can be used to refer - * to the table. For example: ["sales", "orders", "purchases"]. Currently only - * used for BigQuery data sources. - * - * Generated from protobuf field repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setSynonyms($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->synonyms = $arr; - - return $this; - } - - /** - * Optional. A list of tags or keywords associated with the table, used for - * categorization. For example: ["transaction", "revenue", "customer_data"]. - * Currently only used for BigQuery data sources. - * - * Generated from protobuf field repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Optional. A list of tags or keywords associated with the table, used for - * categorization. For example: ["transaction", "revenue", "customer_data"]. - * Currently only used for BigQuery data sources. - * - * Generated from protobuf field repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Optional. Table display_name (same as label in - * cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not - * required, currently only Looker has this field. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Table display_name (same as label in - * cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not - * required, currently only Looker has this field. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. The filters on the datasource's underlying data. Currently only - * used for Looker data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.DataFilter filters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\DataFilter> - */ - public function getFilters() - { - return $this->filters; - } - - /** - * Optional. The filters on the datasource's underlying data. Currently only - * used for Looker data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.DataFilter filters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\DataFilter[] $var - * @return $this - */ - public function setFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\DataFilter::class); - $this->filters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaMessage.php deleted file mode 100644 index a18a9572a8e4..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaMessage.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.geminidataanalytics.v1.SchemaMessage - */ -class SchemaMessage extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\SchemaQuery $query - * A schema resolution query. - * @type \Google\Cloud\GeminiDataAnalytics\V1\SchemaResult $result - * The result of a schema resolution query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * A schema resolution query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.SchemaQuery query = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1\SchemaQuery|null - */ - public function getQuery() - { - return $this->readOneof(1); - } - - public function hasQuery() - { - return $this->hasOneof(1); - } - - /** - * A schema resolution query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.SchemaQuery query = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1\SchemaQuery $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\SchemaQuery::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The result of a schema resolution query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.SchemaResult result = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1\SchemaResult|null - */ - public function getResult() - { - return $this->readOneof(2); - } - - public function hasResult() - { - return $this->hasOneof(2); - } - - /** - * The result of a schema resolution query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.SchemaResult result = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1\SchemaResult $var - * @return $this - */ - public function setResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\SchemaResult::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaQuery.php deleted file mode 100644 index 5e36360060e8..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaQuery.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.geminidataanalytics.v1.SchemaQuery - */ -class SchemaQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The question to send to the system for schema resolution. - * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $question = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $question - * Optional. The question to send to the system for schema resolution. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The question to send to the system for schema resolution. - * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getQuestion() - { - return $this->question; - } - - /** - * Optional. The question to send to the system for schema resolution. - * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setQuestion($var) - { - GPBUtil::checkString($var, True); - $this->question = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaResult.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaResult.php deleted file mode 100644 index 0732d5fcf9b7..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SchemaResult.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.geminidataanalytics.v1.SchemaResult - */ -class SchemaResult extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The datasources used to resolve the schema query. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Datasource datasources = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $datasources; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\Datasource[] $datasources - * Optional. The datasources used to resolve the schema query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The datasources used to resolve the schema query. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Datasource datasources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\Datasource> - */ - public function getDatasources() - { - return $this->datasources; - } - - /** - * Optional. The datasources used to resolve the schema query. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.Datasource datasources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Datasource[] $var - * @return $this - */ - public function setDatasources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\Datasource::class); - $this->datasources = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StorageMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StorageMessage.php deleted file mode 100644 index e83b1fa33d6a..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StorageMessage.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.geminidataanalytics.v1.StorageMessage - */ -class StorageMessage extends \Google\Protobuf\Internal\Message -{ - /** - * The unique resource name of a chat message. - * - * Generated from protobuf field string message_id = 1; - */ - protected $message_id = ''; - /** - * The message content. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Message message = 2; - */ - protected $message = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message_id - * The unique resource name of a chat message. - * @type \Google\Cloud\GeminiDataAnalytics\V1\Message $message - * The message content. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * The unique resource name of a chat message. - * - * Generated from protobuf field string message_id = 1; - * @return string - */ - public function getMessageId() - { - return $this->message_id; - } - - /** - * The unique resource name of a chat message. - * - * Generated from protobuf field string message_id = 1; - * @param string $var - * @return $this - */ - public function setMessageId($var) - { - GPBUtil::checkString($var, True); - $this->message_id = $var; - - return $this; - } - - /** - * The message content. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Message message = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1\Message|null - */ - public function getMessage() - { - return $this->message; - } - - public function hasMessage() - { - return isset($this->message); - } - - public function clearMessage() - { - unset($this->message); - } - - /** - * The message content. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Message message = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Message $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Message::class); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StudioDatasourceReference.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StudioDatasourceReference.php deleted file mode 100644 index 88883718dad7..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StudioDatasourceReference.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.geminidataanalytics.v1.StudioDatasourceReference - */ -class StudioDatasourceReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The id of the datasource. - * - * Generated from protobuf field string datasource_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $datasource_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $datasource_id - * Required. The id of the datasource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Required. The id of the datasource. - * - * Generated from protobuf field string datasource_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatasourceId() - { - return $this->datasource_id; - } - - /** - * Required. The id of the datasource. - * - * Generated from protobuf field string datasource_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatasourceId($var) - { - GPBUtil::checkString($var, True); - $this->datasource_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StudioDatasourceReferences.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StudioDatasourceReferences.php deleted file mode 100644 index 16316d0223b0..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/StudioDatasourceReferences.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.geminidataanalytics.v1.StudioDatasourceReferences - */ -class StudioDatasourceReferences extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The references to the studio datasources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.StudioDatasourceReference studio_references = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $studio_references; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\StudioDatasourceReference[] $studio_references - * Optional. The references to the studio datasources. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The references to the studio datasources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.StudioDatasourceReference studio_references = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\StudioDatasourceReference> - */ - public function getStudioReferences() - { - return $this->studio_references; - } - - /** - * Optional. The references to the studio datasources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.StudioDatasourceReference studio_references = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\StudioDatasourceReference[] $var - * @return $this - */ - public function setStudioReferences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\StudioDatasourceReference::class); - $this->studio_references = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SystemMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SystemMessage.php deleted file mode 100644 index ceaded633fdc..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/SystemMessage.php +++ /dev/null @@ -1,371 +0,0 @@ -google.cloud.geminidataanalytics.v1.SystemMessage - */ -class SystemMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Identifies the group that the event belongs to. Similar events are deemed - * to be logically relevant to each other and should be shown together in - * the UI. - * - * Generated from protobuf field optional int32 group_id = 12; - */ - protected $group_id = null; - /** - * Output only. Citation information for the system message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Citation citation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $citation = null; - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\TextMessage $text - * A direct natural language response to the user message. - * @type \Google\Cloud\GeminiDataAnalytics\V1\SchemaMessage $schema - * A message produced during schema resolution. - * @type \Google\Cloud\GeminiDataAnalytics\V1\DataMessage $data - * A message produced during data retrieval. - * @type \Google\Cloud\GeminiDataAnalytics\V1\AnalysisMessage $analysis - * A message produced during analysis. - * @type \Google\Cloud\GeminiDataAnalytics\V1\ChartMessage $chart - * A message produced during chart generation. - * @type \Google\Cloud\GeminiDataAnalytics\V1\ErrorMessage $error - * An error message. - * @type \Google\Cloud\GeminiDataAnalytics\V1\ExampleQueries $example_queries - * Optional. A message containing example queries. - * @type int $group_id - * Identifies the group that the event belongs to. Similar events are deemed - * to be logically relevant to each other and should be shown together in - * the UI. - * @type \Google\Cloud\GeminiDataAnalytics\V1\Citation $citation - * Output only. Citation information for the system message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * A direct natural language response to the user message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.TextMessage text = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1\TextMessage|null - */ - public function getText() - { - return $this->readOneof(1); - } - - public function hasText() - { - return $this->hasOneof(1); - } - - /** - * A direct natural language response to the user message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.TextMessage text = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1\TextMessage $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\TextMessage::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A message produced during schema resolution. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.SchemaMessage schema = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1\SchemaMessage|null - */ - public function getSchema() - { - return $this->readOneof(2); - } - - public function hasSchema() - { - return $this->hasOneof(2); - } - - /** - * A message produced during schema resolution. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.SchemaMessage schema = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1\SchemaMessage $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\SchemaMessage::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A message produced during data retrieval. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataMessage data = 3; - * @return \Google\Cloud\GeminiDataAnalytics\V1\DataMessage|null - */ - public function getData() - { - return $this->readOneof(3); - } - - public function hasData() - { - return $this->hasOneof(3); - } - - /** - * A message produced during data retrieval. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataMessage data = 3; - * @param \Google\Cloud\GeminiDataAnalytics\V1\DataMessage $var - * @return $this - */ - public function setData($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DataMessage::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A message produced during analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisMessage analysis = 4; - * @return \Google\Cloud\GeminiDataAnalytics\V1\AnalysisMessage|null - */ - public function getAnalysis() - { - return $this->readOneof(4); - } - - public function hasAnalysis() - { - return $this->hasOneof(4); - } - - /** - * A message produced during analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.AnalysisMessage analysis = 4; - * @param \Google\Cloud\GeminiDataAnalytics\V1\AnalysisMessage $var - * @return $this - */ - public function setAnalysis($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\AnalysisMessage::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A message produced during chart generation. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChartMessage chart = 5; - * @return \Google\Cloud\GeminiDataAnalytics\V1\ChartMessage|null - */ - public function getChart() - { - return $this->readOneof(5); - } - - public function hasChart() - { - return $this->hasOneof(5); - } - - /** - * A message produced during chart generation. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ChartMessage chart = 5; - * @param \Google\Cloud\GeminiDataAnalytics\V1\ChartMessage $var - * @return $this - */ - public function setChart($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ChartMessage::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * An error message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ErrorMessage error = 6; - * @return \Google\Cloud\GeminiDataAnalytics\V1\ErrorMessage|null - */ - public function getError() - { - return $this->readOneof(6); - } - - public function hasError() - { - return $this->hasOneof(6); - } - - /** - * An error message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ErrorMessage error = 6; - * @param \Google\Cloud\GeminiDataAnalytics\V1\ErrorMessage $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ErrorMessage::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Optional. A message containing example queries. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\ExampleQueries|null - */ - public function getExampleQueries() - { - return $this->readOneof(13); - } - - public function hasExampleQueries() - { - return $this->hasOneof(13); - } - - /** - * Optional. A message containing example queries. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\ExampleQueries $var - * @return $this - */ - public function setExampleQueries($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\ExampleQueries::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Identifies the group that the event belongs to. Similar events are deemed - * to be logically relevant to each other and should be shown together in - * the UI. - * - * Generated from protobuf field optional int32 group_id = 12; - * @return int - */ - public function getGroupId() - { - return isset($this->group_id) ? $this->group_id : 0; - } - - public function hasGroupId() - { - return isset($this->group_id); - } - - public function clearGroupId() - { - unset($this->group_id); - } - - /** - * Identifies the group that the event belongs to. Similar events are deemed - * to be logically relevant to each other and should be shown together in - * the UI. - * - * Generated from protobuf field optional int32 group_id = 12; - * @param int $var - * @return $this - */ - public function setGroupId($var) - { - GPBUtil::checkInt32($var); - $this->group_id = $var; - - return $this; - } - - /** - * Output only. Citation information for the system message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Citation citation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\Citation|null - */ - public function getCitation() - { - return $this->citation; - } - - public function hasCitation() - { - return isset($this->citation); - } - - public function clearCitation() - { - unset($this->citation); - } - - /** - * Output only. Citation information for the system message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.Citation citation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\Citation $var - * @return $this - */ - public function setCitation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\Citation::class); - $this->citation = $var; - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/TextMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/TextMessage.php deleted file mode 100644 index 3d3b5c6fa69a..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/TextMessage.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.geminidataanalytics.v1.TextMessage - */ -class TextMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The parts of the message. - * - * Generated from protobuf field repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $parts; - /** - * Optional. The type of the text message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $text_type = 0; - /** - * Optional. An opaque signature for a thought so it can be reused in - * subsequent requests. - * - * Generated from protobuf field bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $thought_signature = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $parts - * Optional. The parts of the message. - * @type int $text_type - * Optional. The type of the text message. - * @type string $thought_signature - * Optional. An opaque signature for a thought so it can be reused in - * subsequent requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The parts of the message. - * - * Generated from protobuf field repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getParts() - { - return $this->parts; - } - - /** - * Optional. The parts of the message. - * - * Generated from protobuf field repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setParts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->parts = $arr; - - return $this; - } - - /** - * Optional. The type of the text message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getTextType() - { - return $this->text_type; - } - - /** - * Optional. The type of the text message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setTextType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1\TextMessage\TextType::class); - $this->text_type = $var; - - return $this; - } - - /** - * Optional. An opaque signature for a thought so it can be reused in - * subsequent requests. - * - * Generated from protobuf field bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getThoughtSignature() - { - return $this->thought_signature; - } - - /** - * Optional. An opaque signature for a thought so it can be reused in - * subsequent requests. - * - * Generated from protobuf field bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setThoughtSignature($var) - { - GPBUtil::checkString($var, False); - $this->thought_signature = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/TextMessage/TextType.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/TextMessage/TextType.php deleted file mode 100644 index e9c0e270331f..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/TextMessage/TextType.php +++ /dev/null @@ -1,80 +0,0 @@ -google.cloud.geminidataanalytics.v1.TextMessage.TextType - */ -class TextType -{ - /** - * The default text type. - * - * Generated from protobuf enum TEXT_TYPE_UNSPECIFIED = 0; - */ - const TEXT_TYPE_UNSPECIFIED = 0; - /** - * The text is a final response to the user question. - * - * Generated from protobuf enum FINAL_RESPONSE = 1; - */ - const FINAL_RESPONSE = 1; - /** - * The text is a thought from the model. - * - * Generated from protobuf enum THOUGHT = 2; - */ - const THOUGHT = 2; - /** - * The text is an informational message about the agent's progress, such as - * a tool being invoked. This is distinct from the agent's internal thought - * process (`THOUGHT`) and the final answer to the user - * (`FINAL_RESPONSE`). These messages provide insight into the agent's - * actions. - * - * Generated from protobuf enum PROGRESS = 3; - */ - const PROGRESS = 3; - /** - * The text is a list of follow-up questions suggested. - * Each item in parts is a follow-up question. - * - * Generated from protobuf enum FOLLOWUP_QUESTIONS = 4; - */ - const FOLLOWUP_QUESTIONS = 4; - - private static $valueToName = [ - self::TEXT_TYPE_UNSPECIFIED => 'TEXT_TYPE_UNSPECIFIED', - self::FINAL_RESPONSE => 'FINAL_RESPONSE', - self::THOUGHT => 'THOUGHT', - self::PROGRESS => 'PROGRESS', - self::FOLLOWUP_QUESTIONS => 'FOLLOWUP_QUESTIONS', - ]; - - 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/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UpdateDataAgentRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UpdateDataAgentRequest.php deleted file mode 100644 index ed1367fcd388..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UpdateDataAgentRequest.php +++ /dev/null @@ -1,240 +0,0 @@ -google.cloud.geminidataanalytics.v1.UpdateDataAgentRequest - */ -class UpdateDataAgentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * DataAgent resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields with non-default values - * present in the request will be overwritten. If a wildcard mask is provided, - * all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Required. The resource being updated. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgent data_agent = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_agent = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\GeminiDataAnalytics\V1\DataAgent $dataAgent Required. The resource being updated. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Field mask is used to specify the fields to be overwritten in the - * DataAgent resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields with non-default values - * present in the request will be overwritten. If a wildcard mask is provided, - * all fields will be overwritten. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1\UpdateDataAgentRequest - * - * @experimental - */ - public static function build(\Google\Cloud\GeminiDataAnalytics\V1\DataAgent $dataAgent, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataAgent($dataAgent) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Field mask is used to specify the fields to be overwritten in the - * DataAgent resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields with non-default values - * present in the request will be overwritten. If a wildcard mask is provided, - * all fields will be overwritten. - * @type \Google\Cloud\GeminiDataAnalytics\V1\DataAgent $data_agent - * Required. The resource being updated. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataAgentService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * DataAgent resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields with non-default values - * present in the request will be overwritten. If a wildcard mask is provided, - * all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the - * DataAgent resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields with non-default values - * present in the request will be overwritten. If a wildcard mask is provided, - * all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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; - } - - /** - * Required. The resource being updated. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgent data_agent = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GeminiDataAnalytics\V1\DataAgent|null - */ - public function getDataAgent() - { - return $this->data_agent; - } - - public function hasDataAgent() - { - return isset($this->data_agent); - } - - public function clearDataAgent() - { - unset($this->data_agent); - } - - /** - * Required. The resource being updated. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1.DataAgent data_agent = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1\DataAgent $var - * @return $this - */ - public function setDataAgent($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1\DataAgent::class); - $this->data_agent = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UserFunctions.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UserFunctions.php deleted file mode 100644 index 4ae4521d3a30..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UserFunctions.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.geminidataanalytics.v1.UserFunctions - */ -class UserFunctions extends \Google\Protobuf\Internal\Message -{ - /** - * A list of BigQuery routines to include in the context. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.BigQueryRoutine bq_routines = 1; - */ - private $bq_routines; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1\BigQueryRoutine[] $bq_routines - * A list of BigQuery routines to include in the context. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\Context::initOnce(); - parent::__construct($data); - } - - /** - * A list of BigQuery routines to include in the context. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.BigQueryRoutine bq_routines = 1; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1\BigQueryRoutine> - */ - public function getBqRoutines() - { - return $this->bq_routines; - } - - /** - * A list of BigQuery routines to include in the context. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1.BigQueryRoutine bq_routines = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1\BigQueryRoutine[] $var - * @return $this - */ - public function setBqRoutines($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1\BigQueryRoutine::class); - $this->bq_routines = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UserMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UserMessage.php deleted file mode 100644 index 1e713b78d623..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/proto/src/Google/Cloud/GeminiDataAnalytics/V1/UserMessage.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.geminidataanalytics.v1.UserMessage - */ -class UserMessage extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * Text should use this field instead of blob. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Text should use this field instead of blob. - * - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->readOneof(1); - } - - public function hasText() - { - return $this->hasOneof(1); - } - - /** - * Text should use this field instead of blob. - * - * Generated from protobuf field string text = 1; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/create_data_agent.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/create_data_agent.php deleted file mode 100644 index 1be761c85045..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/create_data_agent.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($formattedParent) - ->setDataAgent($dataAgent); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataAgentServiceClient->createDataAgent($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DataAgent $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 = DataAgentServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - create_data_agent_sample($formattedParent); -} -// [END geminidataanalytics_v1_generated_DataAgentService_CreateDataAgent_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/create_data_agent_sync.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/create_data_agent_sync.php deleted file mode 100644 index 667964b7bfd8..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/create_data_agent_sync.php +++ /dev/null @@ -1,73 +0,0 @@ -setParent($formattedParent) - ->setDataAgent($dataAgent); - - // Call the API and handle any network failures. - try { - /** @var DataAgent $response */ - $response = $dataAgentServiceClient->createDataAgentSync($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 = DataAgentServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - create_data_agent_sync_sample($formattedParent); -} -// [END geminidataanalytics_v1_generated_DataAgentService_CreateDataAgentSync_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/delete_data_agent.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/delete_data_agent.php deleted file mode 100644 index 1c069b0c45ad..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/delete_data_agent.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataAgentServiceClient->deleteDataAgent($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } 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 -{ - $formattedName = DataAgentServiceClient::dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); - - delete_data_agent_sample($formattedName); -} -// [END geminidataanalytics_v1_generated_DataAgentService_DeleteDataAgent_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/delete_data_agent_sync.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/delete_data_agent_sync.php deleted file mode 100644 index 48c13a051674..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/delete_data_agent_sync.php +++ /dev/null @@ -1,69 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataAgentServiceClient->deleteDataAgentSync($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 = DataAgentServiceClient::dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); - - delete_data_agent_sync_sample($formattedName); -} -// [END geminidataanalytics_v1_generated_DataAgentService_DeleteDataAgentSync_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_data_agent.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_data_agent.php deleted file mode 100644 index 9f7d6824c304..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_data_agent.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataAgent $response */ - $response = $dataAgentServiceClient->getDataAgent($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 = DataAgentServiceClient::dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); - - get_data_agent_sample($formattedName); -} -// [END geminidataanalytics_v1_generated_DataAgentService_GetDataAgent_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_iam_policy.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_iam_policy.php deleted file mode 100644 index fad4ab3f556e..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_iam_policy.php +++ /dev/null @@ -1,71 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataAgentServiceClient->getIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END geminidataanalytics_v1_generated_DataAgentService_GetIamPolicy_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_location.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_location.php deleted file mode 100644 index 0b13e0295afe..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END geminidataanalytics_v1_generated_DataAgentService_GetLocation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_accessible_data_agents.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_accessible_data_agents.php deleted file mode 100644 index f5ac3bf81886..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_accessible_data_agents.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataAgentServiceClient->listAccessibleDataAgents($request); - - /** @var DataAgent $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 = DataAgentServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_accessible_data_agents_sample($formattedParent); -} -// [END geminidataanalytics_v1_generated_DataAgentService_ListAccessibleDataAgents_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_data_agents.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_data_agents.php deleted file mode 100644 index 34bea8be06b4..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_data_agents.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataAgentServiceClient->listDataAgents($request); - - /** @var DataAgent $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 = DataAgentServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_data_agents_sample($formattedParent); -} -// [END geminidataanalytics_v1_generated_DataAgentService_ListDataAgents_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_locations.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_locations.php deleted file mode 100644 index ab795cc141ae..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/list_locations.php +++ /dev/null @@ -1,77 +0,0 @@ -listLocations($request); - - /** @var Location $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()); - } -} -// [END geminidataanalytics_v1_generated_DataAgentService_ListLocations_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/set_iam_policy.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/set_iam_policy.php deleted file mode 100644 index 28e848bc4bdc..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/set_iam_policy.php +++ /dev/null @@ -1,73 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataAgentServiceClient->setIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END geminidataanalytics_v1_generated_DataAgentService_SetIamPolicy_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/update_data_agent.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/update_data_agent.php deleted file mode 100644 index 49f3c8cae89f..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/update_data_agent.php +++ /dev/null @@ -1,71 +0,0 @@ -setDataAgent($dataAgent); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataAgentServiceClient->updateDataAgent($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DataAgent $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()); - } -} -// [END geminidataanalytics_v1_generated_DataAgentService_UpdateDataAgent_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/update_data_agent_sync.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/update_data_agent_sync.php deleted file mode 100644 index 4cdeec99ef50..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataAgentServiceClient/update_data_agent_sync.php +++ /dev/null @@ -1,59 +0,0 @@ -setDataAgent($dataAgent); - - // Call the API and handle any network failures. - try { - /** @var DataAgent $response */ - $response = $dataAgentServiceClient->updateDataAgentSync($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END geminidataanalytics_v1_generated_DataAgentService_UpdateDataAgentSync_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/chat.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/chat.php deleted file mode 100644 index ad9b5100b22a..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/chat.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($parent) - ->setMessages($messages); - - // Call the API and handle any network failures. - try { - /** @var ServerStream $stream */ - $stream = $dataChatServiceClient->chat($request); - - /** @var Message $element */ - foreach ($stream->readAll() 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 -{ - $parent = '[PARENT]'; - - chat_sample($parent); -} -// [END geminidataanalytics_v1_generated_DataChatService_Chat_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/create_conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/create_conversation.php deleted file mode 100644 index 93ebefea767e..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/create_conversation.php +++ /dev/null @@ -1,84 +0,0 @@ -setAgents($conversationAgents); - $request = (new CreateConversationRequest()) - ->setParent($formattedParent) - ->setConversation($conversation); - - // Call the API and handle any network failures. - try { - /** @var Conversation $response */ - $response = $dataChatServiceClient->createConversation($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 = DataChatServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $conversationAgentsElement = '[AGENTS]'; - - create_conversation_sample($formattedParent, $conversationAgentsElement); -} -// [END geminidataanalytics_v1_generated_DataChatService_CreateConversation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/delete_conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/delete_conversation.php deleted file mode 100644 index e32070e846c5..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/delete_conversation.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataChatServiceClient->deleteConversation($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 = DataChatServiceClient::conversationName( - '[PROJECT]', - '[LOCATION]', - '[CONVERSATION]' - ); - - delete_conversation_sample($formattedName); -} -// [END geminidataanalytics_v1_generated_DataChatService_DeleteConversation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/get_conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/get_conversation.php deleted file mode 100644 index ea90369999bd..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/get_conversation.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Conversation $response */ - $response = $dataChatServiceClient->getConversation($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 = DataChatServiceClient::conversationName( - '[PROJECT]', - '[LOCATION]', - '[CONVERSATION]' - ); - - get_conversation_sample($formattedName); -} -// [END geminidataanalytics_v1_generated_DataChatService_GetConversation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/get_location.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/get_location.php deleted file mode 100644 index 4b455758acdc..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END geminidataanalytics_v1_generated_DataChatService_GetLocation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_conversations.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_conversations.php deleted file mode 100644 index 9bd13df6b851..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_conversations.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataChatServiceClient->listConversations($request); - - /** @var Conversation $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 = DataChatServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_conversations_sample($formattedParent); -} -// [END geminidataanalytics_v1_generated_DataChatService_ListConversations_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_locations.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_locations.php deleted file mode 100644 index aab282ee8811..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_locations.php +++ /dev/null @@ -1,77 +0,0 @@ -listLocations($request); - - /** @var Location $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()); - } -} -// [END geminidataanalytics_v1_generated_DataChatService_ListLocations_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_messages.php b/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_messages.php deleted file mode 100644 index daab8041d7bc..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/samples/V1/DataChatServiceClient/list_messages.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataChatServiceClient->listMessages($request); - - /** @var StorageMessage $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 = DataChatServiceClient::conversationName( - '[PROJECT]', - '[LOCATION]', - '[CONVERSATION]' - ); - - list_messages_sample($formattedParent); -} -// [END geminidataanalytics_v1_generated_DataChatService_ListMessages_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/Client/DataAgentServiceClient.php b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/Client/DataAgentServiceClient.php deleted file mode 100644 index 38de6cb5b293..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/Client/DataAgentServiceClient.php +++ /dev/null @@ -1,700 +0,0 @@ - createDataAgentAsync(CreateDataAgentRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDataAgentSyncAsync(CreateDataAgentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataAgentAsync(DeleteDataAgentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataAgentSyncAsync(DeleteDataAgentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataAgentAsync(GetDataAgentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAccessibleDataAgentsAsync(ListAccessibleDataAgentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataAgentsAsync(ListDataAgentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataAgentAsync(UpdateDataAgentRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataAgentSyncAsync(UpdateDataAgentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class DataAgentServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.geminidataanalytics.v1.DataAgentService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'geminidataanalytics.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'geminidataanalytics.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/data_agent_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/data_agent_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/data_agent_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/data_agent_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 crypto_key - * resource. - * - * @param string $project - * @param string $location - * @param string $keyRing - * @param string $cryptoKey - * - * @return string The formatted crypto_key resource. - */ - public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string - { - return self::getPathTemplate('cryptoKey')->render([ - 'project' => $project, - 'location' => $location, - 'key_ring' => $keyRing, - 'crypto_key' => $cryptoKey, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_agent - * resource. - * - * @param string $project - * @param string $location - * @param string $dataAgent - * - * @return string The formatted data_agent resource. - */ - public static function dataAgentName(string $project, string $location, string $dataAgent): string - { - return self::getPathTemplate('dataAgent')->render([ - 'project' => $project, - 'location' => $location, - 'data_agent' => $dataAgent, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} - * - dataAgent: projects/{project}/locations/{location}/dataAgents/{data_agent} - * - location: projects/{project}/locations/{location} - * - * 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 'geminidataanalytics.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\GeminiDataAnalytics\V1\DataAgentServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DataAgentServiceClient(['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); - } - - /** - * Creates a new DataAgent in a given project and location. - * - * The async variant is {@see DataAgentServiceClient::createDataAgentAsync()} . - * - * @example samples/V1/DataAgentServiceClient/create_data_agent.php - * - * @param CreateDataAgentRequest $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 createDataAgent(CreateDataAgentRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateDataAgent', $request, $callOptions)->wait(); - } - - /** - * Creates a new DataAgent in a given project and location synchronously. - * - * The async variant is {@see DataAgentServiceClient::createDataAgentSyncAsync()} . - * - * @example samples/V1/DataAgentServiceClient/create_data_agent_sync.php - * - * @param CreateDataAgentRequest $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 DataAgent - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDataAgentSync(CreateDataAgentRequest $request, array $callOptions = []): DataAgent - { - return $this->startApiCall('CreateDataAgentSync', $request, $callOptions)->wait(); - } - - /** - * Deletes a single DataAgent. - * - * The async variant is {@see DataAgentServiceClient::deleteDataAgentAsync()} . - * - * @example samples/V1/DataAgentServiceClient/delete_data_agent.php - * - * @param DeleteDataAgentRequest $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 deleteDataAgent(DeleteDataAgentRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteDataAgent', $request, $callOptions)->wait(); - } - - /** - * Deletes a single DataAgent synchronously. - * - * The async variant is {@see DataAgentServiceClient::deleteDataAgentSyncAsync()} . - * - * @example samples/V1/DataAgentServiceClient/delete_data_agent_sync.php - * - * @param DeleteDataAgentRequest $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 deleteDataAgentSync(DeleteDataAgentRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDataAgentSync', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single DataAgent. - * - * The async variant is {@see DataAgentServiceClient::getDataAgentAsync()} . - * - * @example samples/V1/DataAgentServiceClient/get_data_agent.php - * - * @param GetDataAgentRequest $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 DataAgent - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDataAgent(GetDataAgentRequest $request, array $callOptions = []): DataAgent - { - return $this->startApiCall('GetDataAgent', $request, $callOptions)->wait(); - } - - /** - * Gets the IAM policy for DataAgent - * - * The async variant is {@see DataAgentServiceClient::getIamPolicyAsync()} . - * - * @example samples/V1/DataAgentServiceClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Lists DataAgents that are accessible to the caller in a given project and - * location. - * - * The async variant is - * {@see DataAgentServiceClient::listAccessibleDataAgentsAsync()} . - * - * @example samples/V1/DataAgentServiceClient/list_accessible_data_agents.php - * - * @param ListAccessibleDataAgentsRequest $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 listAccessibleDataAgents(ListAccessibleDataAgentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAccessibleDataAgents', $request, $callOptions); - } - - /** - * Lists DataAgents in a given project and location. - * - * The async variant is {@see DataAgentServiceClient::listDataAgentsAsync()} . - * - * @example samples/V1/DataAgentServiceClient/list_data_agents.php - * - * @param ListDataAgentsRequest $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 listDataAgents(ListDataAgentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataAgents', $request, $callOptions); - } - - /** - * Sets the IAM policy for a DataAgent. - * - * The async variant is {@see DataAgentServiceClient::setIamPolicyAsync()} . - * - * @example samples/V1/DataAgentServiceClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Updates the parameters of a single DataAgent. - * - * The async variant is {@see DataAgentServiceClient::updateDataAgentAsync()} . - * - * @example samples/V1/DataAgentServiceClient/update_data_agent.php - * - * @param UpdateDataAgentRequest $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 updateDataAgent(UpdateDataAgentRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateDataAgent', $request, $callOptions)->wait(); - } - - /** - * Updates the parameters of a single DataAgent synchronously. - * - * The async variant is {@see DataAgentServiceClient::updateDataAgentSyncAsync()} . - * - * @example samples/V1/DataAgentServiceClient/update_data_agent_sync.php - * - * @param UpdateDataAgentRequest $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 DataAgent - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDataAgentSync(UpdateDataAgentRequest $request, array $callOptions = []): DataAgent - { - return $this->startApiCall('UpdateDataAgentSync', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see DataAgentServiceClient::getLocationAsync()} . - * - * @example samples/V1/DataAgentServiceClient/get_location.php - * - * @param GetLocationRequest $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 Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - - This method lists locations based on the resource scope provided in - the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * - **Global locations**: If `name` is empty, the method lists the - public locations available to all projects. * **Project-specific - locations**: If `name` follows the format - `projects/{project}`, the method lists locations visible to that - specific project. This includes public, private, or other - project-specific locations enabled for the project. - - For gRPC and client library implementations, the resource name is - passed as the `name` field. For direct service calls, the resource - name is - incorporated into the request path based on the specific service - implementation and version. - * - * The async variant is {@see DataAgentServiceClient::listLocationsAsync()} . - * - * @example samples/V1/DataAgentServiceClient/list_locations.php - * - * @param ListLocationsRequest $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 listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/Client/DataChatServiceClient.php b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/Client/DataChatServiceClient.php deleted file mode 100644 index 01af9a6ecaa4..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/Client/DataChatServiceClient.php +++ /dev/null @@ -1,527 +0,0 @@ - createConversationAsync(CreateConversationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteConversationAsync(DeleteConversationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConversationAsync(GetConversationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConversationsAsync(ListConversationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMessagesAsync(ListMessagesRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class DataChatServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.geminidataanalytics.v1.DataChatService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'geminidataanalytics.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'geminidataanalytics.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_chat_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/data_chat_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/data_chat_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/data_chat_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a conversation - * resource. - * - * @param string $project - * @param string $location - * @param string $conversation - * - * @return string The formatted conversation resource. - */ - public static function conversationName(string $project, string $location, string $conversation): string - { - return self::getPathTemplate('conversation')->render([ - 'project' => $project, - 'location' => $location, - 'conversation' => $conversation, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a crypto_key - * resource. - * - * @param string $project - * @param string $location - * @param string $keyRing - * @param string $cryptoKey - * - * @return string The formatted crypto_key resource. - */ - public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string - { - return self::getPathTemplate('cryptoKey')->render([ - 'project' => $project, - 'location' => $location, - 'key_ring' => $keyRing, - 'crypto_key' => $cryptoKey, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_agent - * resource. - * - * @param string $project - * @param string $location - * @param string $dataAgent - * - * @return string The formatted data_agent resource. - */ - public static function dataAgentName(string $project, string $location, string $dataAgent): string - { - return self::getPathTemplate('dataAgent')->render([ - 'project' => $project, - 'location' => $location, - 'data_agent' => $dataAgent, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - conversation: projects/{project}/locations/{location}/conversations/{conversation} - * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} - * - dataAgent: projects/{project}/locations/{location}/dataAgents/{data_agent} - * - location: projects/{project}/locations/{location} - * - * 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 'geminidataanalytics.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\GeminiDataAnalytics\V1\DataChatServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DataChatServiceClient(['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); - } - - /** - * Answers a data question by generating a stream of - * [Message][google.cloud.geminidataanalytics.v1.Message] objects. - * - * @example samples/V1/DataChatServiceClient/chat.php - * - * @param ChatRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type int $timeoutMillis - * Timeout to use for this call. - * } - * - * @return ServerStream - * - * @throws ApiException Thrown if the API call fails. - */ - public function chat(ChatRequest $request, array $callOptions = []): ServerStream - { - return $this->startApiCall('Chat', $request, $callOptions); - } - - /** - * Creates a new conversation to persist the conversation history. Each - * conversation will have multiple messages associated with it. - * - * The async variant is {@see DataChatServiceClient::createConversationAsync()} . - * - * @example samples/V1/DataChatServiceClient/create_conversation.php - * - * @param CreateConversationRequest $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 Conversation - * - * @throws ApiException Thrown if the API call fails. - */ - public function createConversation(CreateConversationRequest $request, array $callOptions = []): Conversation - { - return $this->startApiCall('CreateConversation', $request, $callOptions)->wait(); - } - - /** - * Deletes a conversation. - * - * The async variant is {@see DataChatServiceClient::deleteConversationAsync()} . - * - * @example samples/V1/DataChatServiceClient/delete_conversation.php - * - * @param DeleteConversationRequest $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 deleteConversation(DeleteConversationRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteConversation', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single conversation by using conversation id and parent. - * - * The async variant is {@see DataChatServiceClient::getConversationAsync()} . - * - * @example samples/V1/DataChatServiceClient/get_conversation.php - * - * @param GetConversationRequest $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 Conversation - * - * @throws ApiException Thrown if the API call fails. - */ - public function getConversation(GetConversationRequest $request, array $callOptions = []): Conversation - { - return $this->startApiCall('GetConversation', $request, $callOptions)->wait(); - } - - /** - * Lists all conversations for a given parent. - * - * The async variant is {@see DataChatServiceClient::listConversationsAsync()} . - * - * @example samples/V1/DataChatServiceClient/list_conversations.php - * - * @param ListConversationsRequest $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 listConversations(ListConversationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListConversations', $request, $callOptions); - } - - /** - * Lists all messages for a given conversation. - * - * The async variant is {@see DataChatServiceClient::listMessagesAsync()} . - * - * @example samples/V1/DataChatServiceClient/list_messages.php - * - * @param ListMessagesRequest $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 listMessages(ListMessagesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMessages', $request, $callOptions); - } - - /** - * Gets information about a location. - * - * The async variant is {@see DataChatServiceClient::getLocationAsync()} . - * - * @example samples/V1/DataChatServiceClient/get_location.php - * - * @param GetLocationRequest $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 Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - - This method lists locations based on the resource scope provided in - the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * - **Global locations**: If `name` is empty, the method lists the - public locations available to all projects. * **Project-specific - locations**: If `name` follows the format - `projects/{project}`, the method lists locations visible to that - specific project. This includes public, private, or other - project-specific locations enabled for the project. - - For gRPC and client library implementations, the resource name is - passed as the `name` field. For direct service calls, the resource - name is - incorporated into the request path based on the specific service - implementation and version. - * - * The async variant is {@see DataChatServiceClient::listLocationsAsync()} . - * - * @example samples/V1/DataChatServiceClient/list_locations.php - * - * @param ListLocationsRequest $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 listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/gapic_metadata.json b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/gapic_metadata.json deleted file mode 100644 index d3a9cf7b2de3..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.geminidataanalytics.v1", - "libraryPackage": "Google\\Cloud\\GeminiDataAnalytics\\V1", - "services": { - "DataAgentService": { - "clients": { - "grpc": { - "libraryClient": "DataAgentServiceGapicClient", - "rpcs": { - "CreateDataAgent": { - "methods": [ - "createDataAgent" - ] - }, - "CreateDataAgentSync": { - "methods": [ - "createDataAgentSync" - ] - }, - "DeleteDataAgent": { - "methods": [ - "deleteDataAgent" - ] - }, - "DeleteDataAgentSync": { - "methods": [ - "deleteDataAgentSync" - ] - }, - "GetDataAgent": { - "methods": [ - "getDataAgent" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "ListAccessibleDataAgents": { - "methods": [ - "listAccessibleDataAgents" - ] - }, - "ListDataAgents": { - "methods": [ - "listDataAgents" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "UpdateDataAgent": { - "methods": [ - "updateDataAgent" - ] - }, - "UpdateDataAgentSync": { - "methods": [ - "updateDataAgentSync" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - }, - "DataChatService": { - "clients": { - "grpc": { - "libraryClient": "DataChatServiceGapicClient", - "rpcs": { - "Chat": { - "methods": [ - "chat" - ] - }, - "CreateConversation": { - "methods": [ - "createConversation" - ] - }, - "DeleteConversation": { - "methods": [ - "deleteConversation" - ] - }, - "GetConversation": { - "methods": [ - "getConversation" - ] - }, - "ListConversations": { - "methods": [ - "listConversations" - ] - }, - "ListMessages": { - "methods": [ - "listMessages" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_client_config.json b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_client_config.json deleted file mode 100644 index 020c731d9a24..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_client_config.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "interfaces": { - "google.cloud.geminidataanalytics.v1.DataAgentService": { - "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": 10000, - "initial_rpc_timeout_millis": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - } - }, - "methods": { - "CreateDataAgent": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateDataAgentSync": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteDataAgent": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteDataAgentSync": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataAgent": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetIamPolicy": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAccessibleDataAgents": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDataAgents": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SetIamPolicy": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDataAgent": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDataAgentSync": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetLocation": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListLocations": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_descriptor_config.php b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_descriptor_config.php deleted file mode 100644 index 4b7b7e294168..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_descriptor_config.php +++ /dev/null @@ -1,238 +0,0 @@ - [ - 'google.cloud.geminidataanalytics.v1.DataAgentService' => [ - 'CreateDataAgent' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1\DataAgent', - 'metadataReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataAgent' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateDataAgent' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1\DataAgent', - 'metadataReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'data_agent.name', - 'fieldAccessors' => [ - 'getDataAgent', - 'getName', - ], - ], - ], - ], - 'CreateDataAgentSync' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\DataAgent', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataAgentSync' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataAgent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\DataAgent', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'ListAccessibleDataAgents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataAgents', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\ListAccessibleDataAgentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataAgents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataAgents', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\ListDataAgentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'UpdateDataAgentSync' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\DataAgent', - 'headerParams' => [ - [ - 'keyName' => 'data_agent.name', - 'fieldAccessors' => [ - 'getDataAgent', - 'getName', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', - 'dataAgent' => 'projects/{project}/locations/{location}/dataAgents/{data_agent}', - 'location' => 'projects/{project}/locations/{location}', - ], - ], - ], -]; diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_rest_client_config.php b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_rest_client_config.php deleted file mode 100644 index fa651cfebbaf..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_agent_service_rest_client_config.php +++ /dev/null @@ -1,229 +0,0 @@ - [ - 'google.cloud.geminidataanalytics.v1.DataAgentService' => [ - 'CreateDataAgent' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataAgents', - 'body' => 'data_agent', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataAgentSync' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataAgents:createSync', - 'body' => 'data_agent', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataAgent' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataAgents/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataAgentSync' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataAgents/*}:deleteSync', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataAgent' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataAgents/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAgents/*}:getIamPolicy', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'ListAccessibleDataAgents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataAgents:listAccessible', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataAgents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataAgents', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAgents/*}:setIamPolicy', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'UpdateDataAgent' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_agent.name=projects/*/locations/*/dataAgents/*}', - 'body' => 'data_agent', - 'placeholders' => [ - 'data_agent.name' => [ - 'getters' => [ - 'getDataAgent', - 'getName', - ], - ], - ], - ], - 'UpdateDataAgentSync' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_agent.name=projects/*/locations/*/dataAgents/*}:updateSync', - 'body' => 'data_agent', - 'placeholders' => [ - 'data_agent.name' => [ - 'getters' => [ - 'getDataAgent', - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_client_config.json b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_client_config.json deleted file mode 100644 index 7735979369a7..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_client_config.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "interfaces": { - "google.cloud.geminidataanalytics.v1.DataChatService": { - "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": 10000, - "initial_rpc_timeout_millis": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - } - }, - "methods": { - "Chat": { - "timeout_millis": 600000 - }, - "CreateConversation": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteConversation": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetConversation": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListConversations": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListMessages": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetLocation": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListLocations": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_descriptor_config.php b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_descriptor_config.php deleted file mode 100644 index 495062669f19..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_descriptor_config.php +++ /dev/null @@ -1,159 +0,0 @@ - [ - 'google.cloud.geminidataanalytics.v1.DataChatService' => [ - 'Chat' => [ - 'grpcStreaming' => [ - 'grpcStreamingType' => 'ServerStreaming', - ], - 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\Message', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateConversation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\Conversation', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteConversation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetConversation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\Conversation', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListConversations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getConversations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\ListConversationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMessages' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMessages', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1\ListMessagesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'conversation' => 'projects/{project}/locations/{location}/conversations/{conversation}', - 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', - 'dataAgent' => 'projects/{project}/locations/{location}/dataAgents/{data_agent}', - 'location' => 'projects/{project}/locations/{location}', - ], - ], - ], -]; diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_rest_client_config.php b/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_rest_client_config.php deleted file mode 100644 index a846e7505183..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/src/V1/resources/data_chat_service_rest_client_config.php +++ /dev/null @@ -1,168 +0,0 @@ - [ - 'google.cloud.geminidataanalytics.v1.DataChatService' => [ - 'Chat' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}:chat', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateConversation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/conversations', - 'body' => 'conversation', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteConversation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/conversations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetConversation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/conversations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListConversations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/conversations', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMessages' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/conversations/*}/messages', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/tests/Unit/V1/Client/DataAgentServiceClientTest.php b/owl-bot-staging/GeminiDataAnalytics/v1/tests/Unit/V1/Client/DataAgentServiceClientTest.php deleted file mode 100644 index b6f62b60cf5a..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/tests/Unit/V1/Client/DataAgentServiceClientTest.php +++ /dev/null @@ -1,1225 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataAgentServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataAgentServiceClient($options); - } - - /** @test */ - public function createDataAgentTest() - { - $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/createDataAgentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $kmsKey = 'kmsKey-591635343'; - $expectedResponse = new DataAgent(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setKmsKey($kmsKey); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDataAgentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $dataAgent = new DataAgent(); - $request = (new CreateDataAgentRequest()) - ->setParent($formattedParent) - ->setDataAgent($dataAgent); - $response = $gapicClient->createDataAgent($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.geminidataanalytics.v1.DataAgentService/CreateDataAgent', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDataAgent(); - $this->assertProtobufEquals($dataAgent, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataAgentTest'); - $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 createDataAgentExceptionTest() - { - $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/createDataAgentTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $dataAgent = new DataAgent(); - $request = (new CreateDataAgentRequest()) - ->setParent($formattedParent) - ->setDataAgent($dataAgent); - $response = $gapicClient->createDataAgent($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataAgentTest'); - 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 createDataAgentSyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $kmsKey = 'kmsKey-591635343'; - $expectedResponse = new DataAgent(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setKmsKey($kmsKey); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $dataAgent = new DataAgent(); - $request = (new CreateDataAgentRequest()) - ->setParent($formattedParent) - ->setDataAgent($dataAgent); - $response = $gapicClient->createDataAgentSync($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.geminidataanalytics.v1.DataAgentService/CreateDataAgentSync', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataAgent(); - $this->assertProtobufEquals($dataAgent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataAgentSyncExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $dataAgent = new DataAgent(); - $request = (new CreateDataAgentRequest()) - ->setParent($formattedParent) - ->setDataAgent($dataAgent); - try { - $gapicClient->createDataAgentSync($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 deleteDataAgentTest() - { - $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/deleteDataAgentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteDataAgentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); - $request = (new DeleteDataAgentRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDataAgent($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.geminidataanalytics.v1.DataAgentService/DeleteDataAgent', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDataAgentTest'); - $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 deleteDataAgentExceptionTest() - { - $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/deleteDataAgentTest'); - $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 - $formattedName = $gapicClient->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); - $request = (new DeleteDataAgentRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDataAgent($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDataAgentTest'); - 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 deleteDataAgentSyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); - $request = (new DeleteDataAgentRequest()) - ->setName($formattedName); - $gapicClient->deleteDataAgentSync($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.geminidataanalytics.v1.DataAgentService/DeleteDataAgentSync', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataAgentSyncExceptionTest() - { - $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->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); - $request = (new DeleteDataAgentRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDataAgentSync($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 getDataAgentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $kmsKey = 'kmsKey-591635343'; - $expectedResponse = new DataAgent(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setKmsKey($kmsKey); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); - $request = (new GetDataAgentRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataAgent($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.geminidataanalytics.v1.DataAgentService/GetDataAgent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataAgentExceptionTest() - { - $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->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); - $request = (new GetDataAgentRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataAgent($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 getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($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.geminidataanalytics.v1.DataAgentService/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($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 listAccessibleDataAgentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataAgentsElement = new DataAgent(); - $dataAgents = [ - $dataAgentsElement, - ]; - $expectedResponse = new ListAccessibleDataAgentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataAgents($dataAgents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListAccessibleDataAgentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAccessibleDataAgents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataAgents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.geminidataanalytics.v1.DataAgentService/ListAccessibleDataAgents', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccessibleDataAgentsExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListAccessibleDataAgentsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAccessibleDataAgents($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 listDataAgentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataAgentsElement = new DataAgent(); - $dataAgents = [ - $dataAgentsElement, - ]; - $expectedResponse = new ListDataAgentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataAgents($dataAgents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDataAgentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataAgents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataAgents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.geminidataanalytics.v1.DataAgentService/ListDataAgents', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataAgentsExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDataAgentsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataAgents($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 setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($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.geminidataanalytics.v1.DataAgentService/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($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 updateDataAgentTest() - { - $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/updateDataAgentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $kmsKey = 'kmsKey-591635343'; - $expectedResponse = new DataAgent(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setKmsKey($kmsKey); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateDataAgentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $dataAgent = new DataAgent(); - $request = (new UpdateDataAgentRequest()) - ->setDataAgent($dataAgent); - $response = $gapicClient->updateDataAgent($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.geminidataanalytics.v1.DataAgentService/UpdateDataAgent', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getDataAgent(); - $this->assertProtobufEquals($dataAgent, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDataAgentTest'); - $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 updateDataAgentExceptionTest() - { - $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/updateDataAgentTest'); - $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 - $dataAgent = new DataAgent(); - $request = (new UpdateDataAgentRequest()) - ->setDataAgent($dataAgent); - $response = $gapicClient->updateDataAgent($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDataAgentTest'); - 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 updateDataAgentSyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $kmsKey = 'kmsKey-591635343'; - $expectedResponse = new DataAgent(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setKmsKey($kmsKey); - $transport->addResponse($expectedResponse); - // Mock request - $dataAgent = new DataAgent(); - $request = (new UpdateDataAgentRequest()) - ->setDataAgent($dataAgent); - $response = $gapicClient->updateDataAgentSync($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.geminidataanalytics.v1.DataAgentService/UpdateDataAgentSync', $actualFuncCall); - $actualValue = $actualRequestObject->getDataAgent(); - $this->assertProtobufEquals($dataAgent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataAgentSyncExceptionTest() - { - $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 - $dataAgent = new DataAgent(); - $request = (new UpdateDataAgentRequest()) - ->setDataAgent($dataAgent); - try { - $gapicClient->updateDataAgentSync($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 getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($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.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $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); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($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 listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $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); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($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 createDataAgentAsyncTest() - { - $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/createDataAgentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $kmsKey = 'kmsKey-591635343'; - $expectedResponse = new DataAgent(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setKmsKey($kmsKey); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDataAgentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $dataAgent = new DataAgent(); - $request = (new CreateDataAgentRequest()) - ->setParent($formattedParent) - ->setDataAgent($dataAgent); - $response = $gapicClient->createDataAgentAsync($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.geminidataanalytics.v1.DataAgentService/CreateDataAgent', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDataAgent(); - $this->assertProtobufEquals($dataAgent, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataAgentTest'); - $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()); - } -} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1/tests/Unit/V1/Client/DataChatServiceClientTest.php b/owl-bot-staging/GeminiDataAnalytics/v1/tests/Unit/V1/Client/DataChatServiceClientTest.php deleted file mode 100644 index bce13df1ad1e..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1/tests/Unit/V1/Client/DataChatServiceClientTest.php +++ /dev/null @@ -1,677 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataChatServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataChatServiceClient($options); - } - - /** @test */ - public function chatTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $messageId = 'messageId-1690722221'; - $expectedResponse = new Message(); - $expectedResponse->setMessageId($messageId); - $transport->addResponse($expectedResponse); - $messageId2 = 'messageId2-1286413498'; - $expectedResponse2 = new Message(); - $expectedResponse2->setMessageId($messageId2); - $transport->addResponse($expectedResponse2); - $messageId3 = 'messageId3-1286413497'; - $expectedResponse3 = new Message(); - $expectedResponse3->setMessageId($messageId3); - $transport->addResponse($expectedResponse3); - // Mock request - $parent = 'parent-995424086'; - $messages = []; - $request = (new ChatRequest()) - ->setParent($parent) - ->setMessages($messages); - $serverStream = $gapicClient->chat($request); - $this->assertInstanceOf(ServerStream::class, $serverStream); - $responses = iterator_to_array($serverStream->readAll()); - $expectedResponses = []; - $expectedResponses[] = $expectedResponse; - $expectedResponses[] = $expectedResponse2; - $expectedResponses[] = $expectedResponse3; - $this->assertEquals($expectedResponses, $responses); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.geminidataanalytics.v1.DataChatService/Chat', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $actualValue = $actualRequestObject->getMessages(); - $this->assertProtobufEquals($messages, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function chatExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $status = new stdClass(); - $status->code = 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->setStreamingStatus($status); - $this->assertTrue($transport->isExhausted()); - // Mock request - $parent = 'parent-995424086'; - $messages = []; - $request = (new ChatRequest()) - ->setParent($parent) - ->setMessages($messages); - $serverStream = $gapicClient->chat($request); - $results = $serverStream->readAll(); - try { - iterator_to_array($results); - // If the close stream 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 createConversationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $kmsKey = 'kmsKey-591635343'; - $memoryPaused = true; - $expectedResponse = new Conversation(); - $expectedResponse->setName($name); - $expectedResponse->setKmsKey($kmsKey); - $expectedResponse->setMemoryPaused($memoryPaused); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $conversation = new Conversation(); - $conversationAgents = []; - $conversation->setAgents($conversationAgents); - $request = (new CreateConversationRequest()) - ->setParent($formattedParent) - ->setConversation($conversation); - $response = $gapicClient->createConversation($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.geminidataanalytics.v1.DataChatService/CreateConversation', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getConversation(); - $this->assertProtobufEquals($conversation, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConversationExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $conversation = new Conversation(); - $conversationAgents = []; - $conversation->setAgents($conversationAgents); - $request = (new CreateConversationRequest()) - ->setParent($formattedParent) - ->setConversation($conversation); - try { - $gapicClient->createConversation($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 deleteConversationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); - $request = (new DeleteConversationRequest()) - ->setName($formattedName); - $gapicClient->deleteConversation($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.geminidataanalytics.v1.DataChatService/DeleteConversation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConversationExceptionTest() - { - $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->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); - $request = (new DeleteConversationRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteConversation($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 getConversationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $kmsKey = 'kmsKey-591635343'; - $memoryPaused = true; - $expectedResponse = new Conversation(); - $expectedResponse->setName($name2); - $expectedResponse->setKmsKey($kmsKey); - $expectedResponse->setMemoryPaused($memoryPaused); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); - $request = (new GetConversationRequest()) - ->setName($formattedName); - $response = $gapicClient->getConversation($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.geminidataanalytics.v1.DataChatService/GetConversation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConversationExceptionTest() - { - $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->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); - $request = (new GetConversationRequest()) - ->setName($formattedName); - try { - $gapicClient->getConversation($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 listConversationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $conversationsElement = new Conversation(); - $conversations = [ - $conversationsElement, - ]; - $expectedResponse = new ListConversationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setConversations($conversations); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListConversationsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listConversations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getConversations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.geminidataanalytics.v1.DataChatService/ListConversations', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConversationsExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListConversationsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listConversations($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 listMessagesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $messagesElement = new StorageMessage(); - $messages = [ - $messagesElement, - ]; - $expectedResponse = new ListMessagesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMessages($messages); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); - $request = (new ListMessagesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMessages($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMessages()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.geminidataanalytics.v1.DataChatService/ListMessages', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMessagesExceptionTest() - { - $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->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); - $request = (new ListMessagesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMessages($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 getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($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.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $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); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($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 listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $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); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($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 createConversationAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $kmsKey = 'kmsKey-591635343'; - $memoryPaused = true; - $expectedResponse = new Conversation(); - $expectedResponse->setName($name); - $expectedResponse->setKmsKey($kmsKey); - $expectedResponse->setMemoryPaused($memoryPaused); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $conversation = new Conversation(); - $conversationAgents = []; - $conversation->setAgents($conversationAgents); - $request = (new CreateConversationRequest()) - ->setParent($formattedParent) - ->setConversation($conversation); - $response = $gapicClient->createConversationAsync($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.geminidataanalytics.v1.DataChatService/CreateConversation', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getConversation(); - $this->assertProtobufEquals($conversation, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/AgentContext.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/AgentContext.php deleted file mode 100644 index 3f65dc852b22..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/AgentContext.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xC9\x03\x0A;google/cloud/geminidataanalytics/v1beta/agent_context.proto\x12'google.cloud.geminidataanalytics.v1beta\"4\x0A\x15AgentContextReference\x12\x1B\x0A\x0Econtext_set_id\x18\x01 \x01(\x09B\x03\xE0A\x02B\xA2\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x11AgentContextProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Context.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Context.php deleted file mode 100644 index bb24924e3a53..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Context.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x8D&\x0A5google/cloud/geminidataanalytics/v1beta/context.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A\x19google/api/resource.proto\x1A8google/cloud/geminidataanalytics/v1beta/datasource.proto\x1A\x1Egoogle/protobuf/wrappers.proto\"\xB8\x09\x0A\x07Context\x12\x1F\x0A\x12system_instruction\x18\x01 \x01(\x09B\x03\xE0A\x01\x12a\x0A\x15datasource_references\x18\x07 \x01(\x0B2=.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesB\x03\xE0A\x02\x12R\x0A\x07options\x18\x03 \x01(\x0B2<.google.cloud.geminidataanalytics.v1beta.ConversationOptionsB\x03\xE0A\x01\x12S\x0A\x0Fexample_queries\x18\x05 \x03(\x0B25.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xE0A\x01\x12^\x0A\x15looker_golden_queries\x18\x0B \x03(\x0B2:.google.cloud.geminidataanalytics.v1beta.LookerGoldenQueryB\x03\xE0A\x01\x12R\x0A\x0Eglossary_terms\x18\x08 \x03(\x0B25.google.cloud.geminidataanalytics.v1beta.GlossaryTermB\x03\xE0A\x01\x12f\x0A\x14schema_relationships\x18\x09 \x03(\x0B2C.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipB\x03\xE0A\x01\x12S\x0A\x0Euser_functions\x18\x0A \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.UserFunctionsB\x03\xE0A\x01\x1A\x8E\x04\x0A\x12SchemaRelationship\x12j\x0A\x11left_schema_paths\x18\x01 \x01(\x0B2O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\x12k\x0A\x12right_schema_paths\x18\x02 \x01(\x0B2O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\x12`\x0A\x07sources\x18\x03 \x03(\x0E2J.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SourceB\x03\xE0A\x01\x12\x1D\x0A\x10confidence_score\x18\x04 \x01(\x02B\x03\xE0A\x01\x1A/\x0A\x0BSchemaPaths\x12\x11\x0A\x09table_fqn\x18\x01 \x01(\x09\x12\x0D\x0A\x05paths\x18\x02 \x03(\x09\"m\x0A\x06Source\x12\x16\x0A\x12SOURCE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14BIGQUERY_JOB_HISTORY\x10\x01\x12\x11\x0A\x0DLLM_SUGGESTED\x10\x02\x12\x1E\x0A\x1ABIGQUERY_TABLE_CONSTRAINTS\x10\x03\"^\x0A\x0DUserFunctions\x12M\x0A\x0Bbq_routines\x18\x01 \x03(\x0B28.google.cloud.geminidataanalytics.v1beta.BigQueryRoutine\"\x84\x01\x0A\x0FBigQueryRoutine\x12\\\x0A\x11routine_reference\x18\x01 \x01(\x0B2A.google.cloud.geminidataanalytics.v1beta.BigQueryRoutineReference\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\"V\x0A\x18BigQueryRoutineReference\x12\x12\x0A\x0Aproject_id\x18\x01 \x01(\x09\x12\x12\x0A\x0Adataset_id\x18\x02 \x01(\x09\x12\x12\x0A\x0Aroutine_id\x18\x03 \x01(\x09\"\xAB\x01\x0A\x0CExampleQuery\x12\x18\x0A\x09sql_query\x18e \x01(\x09B\x03\xE0A\x01H\x00\x12&\x0A\x19natural_language_question\x18\x01 \x01(\x09B\x03\xE0A\x01\x12P\x0A\x0Aparameters\x18\x03 \x03(\x0B27.google.cloud.geminidataanalytics.v1beta.QueryParameterB\x03\xE0A\x01B\x07\x0A\x05query\"U\x0A\x0EQueryParameter\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09data_type\x18\x03 \x01(\x09B\x03\xE0A\x02\"\xBB\x01\x0A\x0CMatchedQuery\x12L\x0A\x0Dexample_query\x18\x01 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ExampleQuery\x12]\x0A\x16query_parameter_values\x18\x02 \x03(\x0B2=.google.cloud.geminidataanalytics.v1beta.QueryParameterValues\"=\x0A\x14QueryParameterValues\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x12\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x8D\x01\x0A\x11LookerGoldenQuery\x12'\x0A\x1Anatural_language_questions\x18\x04 \x03(\x09B\x03\xE0A\x01\x12O\x0A\x0Clooker_query\x18\x05 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x03\xE0A\x01\"\xEB\x02\x0A\x0BLookerQuery\x12\x12\x0A\x05model\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x14\x0A\x07explore\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06fields\x18\x03 \x03(\x09B\x03\xE0A\x01\x12Q\x0A\x07filters\x18\x04 \x03(\x0B2;.google.cloud.geminidataanalytics.v1beta.LookerQuery.FilterB\x03\xE0A\x01\x12\x12\x0A\x05sorts\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\x17\x0A\x05limit\x18\x06 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01\x12\x1A\x0A\x08query_id\x18\x0A \x01(\x09B\x03\xE0A\x01H\x01\x88\x01\x01\x12\x1B\x0A\x09client_id\x18\x0B \x01(\x09B\x03\xE0A\x01H\x02\x88\x01\x01\x1A?\x0A\x06Filter\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B\x08\x0A\x06_valueB\x08\x0A\x06_limitB\x0B\x0A\x09_query_idB\x0C\x0A\x0A_client_id\"X\x0A\x0CGlossaryTerm\x12\x19\x0A\x0Cdisplay_name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06labels\x18\x03 \x03(\x09B\x03\xE0A\x01\"\xA2\x03\x0A\x13ConversationOptions\x12I\x0A\x05chart\x18\x01 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ChartOptionsB\x03\xE0A\x01\x12O\x0A\x08analysis\x18\x02 \x01(\x0B28.google.cloud.geminidataanalytics.v1beta.AnalysisOptionsB\x03\xE0A\x01\x12S\x0A\x0Adatasource\x18\x03 \x01(\x0B2:.google.cloud.geminidataanalytics.v1beta.DatasourceOptionsB\x03\xE0A\x01\x12[\x0A\x05model\x18\x06 \x01(\x0E2B.google.cloud.geminidataanalytics.v1beta.ConversationOptions.ModelB\x03\xE0A\x01H\x00\x88\x01\x01\"3\x0A\x05Model\x12\x15\x0A\x11MODEL_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FLATEST_GA_MODEL\x10\x01B\x08\x0A\x06_model\"Y\x0A\x11DatasourceOptions\x12D\x0A\x1Abig_query_max_billed_bytes\x18\x01 \x01(\x0B2\x1B.google.protobuf.Int64ValueB\x03\xE0A\x01\"\xD6\x02\x0A\x0CChartOptions\x12V\x0A\x05image\x18\x01 \x01(\x0B2B.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptionsB\x03\xE0A\x01\x1A\xED\x01\x0A\x0CImageOptions\x12^\x0A\x08no_image\x18\x01 \x01(\x0B2J.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImageH\x00\x12\\\x0A\x03svg\x18\x02 \x01(\x0B2M.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.SvgOptionsH\x00\x1A\x09\x0A\x07NoImage\x1A\x0C\x0A\x0ASvgOptionsB\x06\x0A\x04kind\"\x87\x01\x0A\x0FAnalysisOptions\x12T\x0A\x06python\x18\x01 \x01(\x0B2?.google.cloud.geminidataanalytics.v1beta.AnalysisOptions.PythonB\x03\xE0A\x01\x1A\x1E\x0A\x06Python\x12\x14\x0A\x07enabled\x18\x01 \x01(\x08B\x03\xE0A\x01\"\xA8\x01\x0A\x08Citation\x12M\x0A\x07sources\x18\x01 \x03(\x0B27.google.cloud.geminidataanalytics.v1beta.CitationSourceB\x03\xE0A\x03\x12M\x0A\x07anchors\x18\x02 \x03(\x0B27.google.cloud.geminidataanalytics.v1beta.CitationAnchorB\x03\xE0A\x03\"\x82\x02\x0A\x0ECitationSource\x12\x12\x0A\x03uri\x18\x03 \x01(\x09B\x03\xE0A\x03H\x00\x12S\x0A\x0Dexample_query\x18\x04 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xE0A\x03H\x00\x12S\x0A\x0Dglossary_term\x18\x05 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.GlossaryTermB\x03\xE0A\x03H\x00\x12\x0F\x0A\x02id\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05title\x18\x02 \x01(\x09B\x03\xE0A\x03B\x0D\x0A\x0Bsource_type\"\xA6\x02\x0A\x0ECitationAnchor\x12u\x0A\x13text_message_anchor\x18\x01 \x01(\x0B2Q.google.cloud.geminidataanalytics.v1beta.CitationAnchor.TextMessageCitationAnchorB\x03\xE0A\x03H\x00\x1A\x8D\x01\x0A\x19TextMessageCitationAnchor\x12\x17\x0A\x0Apart_index\x18\x01 \x01(\x05B\x03\xE0A\x03\x12\x1F\x0A\x12start_offset_bytes\x18\x02 \x01(\x05B\x03\xE0A\x03\x12\x1D\x0A\x10end_offset_bytes\x18\x03 \x01(\x05B\x03\xE0A\x03\x12\x17\x0A\x0Asource_ids\x18\x04 \x03(\x09B\x03\xE0A\x03B\x0D\x0A\x0Banchor_typeB\x9D\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x0CContextProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Conversation.php deleted file mode 100644 index 8acda687d576..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Conversation.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB9\x0F\x0A:google/cloud/geminidataanalytics/v1beta/conversation.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xCA\x04\x0A\x0CConversation\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x01\xE0A\x08\x12\x13\x0A\x06agents\x18\x02 \x03(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x127\x0A\x0Elast_used_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12V\x0A\x06labels\x18\x09 \x03(\x0B2A.google.cloud.geminidataanalytics.v1beta.Conversation.LabelsEntryB\x03\xE0A\x01\x12?\x0A\x07kms_key\x18\x0A \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKeyH\x00\x88\x01\x01\x12\x1F\x0A\x0Dmemory_paused\x18\x0B \x01(\x08B\x03\xE0A\x01H\x01\x88\x01\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x98\x01\xEAA\x94\x01\x0A/geminidataanalytics.googleapis.com/Conversation\x12Dprojects/{project}/locations/{location}/conversations/{conversation}*\x0Dconversations2\x0CconversationB\x0A\x0A\x08_kms_keyB\x10\x0A\x0E_memory_paused\"\xF5\x01\x0A\x19CreateConversationRequest\x12G\x0A\x06parent\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x12/geminidataanalytics.googleapis.com/Conversation\x12\x1C\x0A\x0Fconversation_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12P\x0A\x0Cconversation\x18\x03 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ConversationB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"_\x0A\x16GetConversationRequest\x12E\x0A\x04name\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/Conversation\"\xA9\x01\x0A\x18ListConversationsRequest\x12G\x0A\x06parent\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x12/geminidataanalytics.googleapis.com/Conversation\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\"\x82\x01\x0A\x19ListConversationsResponse\x12L\x0A\x0Dconversations\x18\x01 \x03(\x0B25.google.cloud.geminidataanalytics.v1beta.Conversation\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"b\x0A\x19DeleteConversationRequest\x12E\x0A\x04name\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/ConversationB\xB5\x03\x0A+com.google.cloud.geminidataanalytics.v1betaB\x11ConversationProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1beta\xEAA\x8F\x01\x0A!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}*\x0AcryptoKeys2\x09cryptoKeyb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Credentials.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Credentials.php deleted file mode 100644 index bda132a679ef..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Credentials.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xAC\x06\x0A9google/cloud/geminidataanalytics/v1beta/credentials.proto\x12'google.cloud.geminidataanalytics.v1beta\"a\x0A\x0BCredentials\x12J\x0A\x05oauth\x18\x01 \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.OAuthCredentialsH\x00B\x06\x0A\x04kind\"\xB6\x02\x0A\x10OAuthCredentials\x12W\x0A\x06secret\x18\x02 \x01(\x0B2E.google.cloud.geminidataanalytics.v1beta.OAuthCredentials.SecretBasedH\x00\x12U\x0A\x05token\x18\x03 \x01(\x0B2D.google.cloud.geminidataanalytics.v1beta.OAuthCredentials.TokenBasedH\x00\x1AA\x0A\x0BSecretBased\x12\x16\x0A\x09client_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1A\x0A\x0Dclient_secret\x18\x03 \x01(\x09B\x03\xE0A\x02\x1A'\x0A\x0ATokenBased\x12\x19\x0A\x0Caccess_token\x18\x01 \x01(\x09B\x03\xE0A\x02B\x06\x0A\x04kindB\xA1\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x10CredentialsProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAgent.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAgent.php deleted file mode 100644 index 34d1024dd55e..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAgent.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x80\x0A\x0A8google/cloud/geminidataanalytics/v1beta/data_agent.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A\x19google/api/resource.proto\x1ABgoogle/cloud/geminidataanalytics/v1beta/data_analytics_agent.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xF0\x05\x0A\x09DataAgent\x12[\x0A\x14data_analytics_agent\x18e \x01(\x0B2;.google.cloud.geminidataanalytics.v1beta.DataAnalyticsAgentH\x00\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x01\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x12S\x0A\x06labels\x18\x05 \x03(\x0B2>.google.cloud.geminidataanalytics.v1beta.DataAgent.LabelsEntryB\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bdelete_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x123\x0A\x0Apurge_time\x18\x0D \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12?\x0A\x07kms_key\x18\x0E \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKeyH\x01\x88\x01\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x8A\x01\xEAA\x86\x01\x0A,geminidataanalytics.googleapis.com/DataAgent\x12?projects/{project}/locations/{location}/dataAgents/{data_agent}*\x0AdataAgents2\x09dataAgentB\x06\x0A\x04typeB\x0A\x0A\x08_kms_keyB\x9F\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x0EDataAgentProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAgentService.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAgentService.php deleted file mode 100644 index fd56495b5254..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAgentService.php +++ /dev/null @@ -1,36 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE5(\x0A@google/cloud/geminidataanalytics/v1beta/data_agent_service.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A8google/cloud/geminidataanalytics/v1beta/data_agent.proto\x1A\x1Egoogle/iam/v1/iam_policy.proto\x1A\x1Agoogle/iam/v1/policy.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xD5\x01\x0A\x15ListDataAgentsRequest\x12D\x0A\x06parent\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x12,geminidataanalytics.googleapis.com/DataAgent\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\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cshow_deleted\x18\x06 \x01(\x08B\x03\xE0A\x01\"\x94\x01\x0A\x16ListDataAgentsResponse\x12G\x0A\x0Bdata_agents\x18\x01 \x03(\x0B22.google.cloud.geminidataanalytics.v1beta.DataAgent\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x0Bunreachable\x18\x03 \x03(\x09B\x03\xE0A\x06\"\xB7\x03\x0A\x1FListAccessibleDataAgentsRequest\x12D\x0A\x06parent\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x12,geminidataanalytics.googleapis.com/DataAgent\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\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cshow_deleted\x18\x06 \x01(\x08B\x03\xE0A\x01\x12s\x0A\x0Ecreator_filter\x18\x07 \x01(\x0E2V.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest.CreatorFilterB\x03\xE0A\x01\"a\x0A\x0DCreatorFilter\x12\x1E\x0A\x1ACREATOR_FILTER_UNSPECIFIED\x10\x00\x12\x08\x0A\x04NONE\x10\x01\x12\x10\x0A\x0CCREATOR_ONLY\x10\x02\x12\x14\x0A\x10NOT_CREATOR_ONLY\x10\x03\"\x9E\x01\x0A ListAccessibleDataAgentsResponse\x12G\x0A\x0Bdata_agents\x18\x01 \x03(\x0B22.google.cloud.geminidataanalytics.v1beta.DataAgent\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x0Bunreachable\x18\x03 \x03(\x09B\x03\xE0A\x06\"Y\x0A\x13GetDataAgentRequest\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,geminidataanalytics.googleapis.com/DataAgent\"\xE8\x01\x0A\x16CreateDataAgentRequest\x12D\x0A\x06parent\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x12,geminidataanalytics.googleapis.com/DataAgent\x12\x1A\x0A\x0Ddata_agent_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12K\x0A\x0Adata_agent\x18\x03 \x01(\x0B22.google.cloud.geminidataanalytics.v1beta.DataAgentB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xBC\x01\x0A\x16UpdateDataAgentRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12K\x0A\x0Adata_agent\x18\x02 \x01(\x0B22.google.cloud.geminidataanalytics.v1beta.DataAgentB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"}\x0A\x16DeleteDataAgentRequest\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,geminidataanalytics.googleapis.com/DataAgent\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\x80\x02\x0A\x11OperationMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04verb\x18\x04 \x01(\x09B\x03\xE0A\x03\x12\x1B\x0A\x0Estatus_message\x18\x05 \x01(\x09B\x03\xE0A\x03\x12#\x0A\x16requested_cancellation\x18\x06 \x01(\x08B\x03\xE0A\x03\x12\x18\x0A\x0Bapi_version\x18\x07 \x01(\x09B\x03\xE0A\x032\x88\x14\x0A\x10DataAgentService\x12\xD6\x01\x0A\x0EListDataAgents\x12>.google.cloud.geminidataanalytics.v1beta.ListDataAgentsRequest\x1A?.google.cloud.geminidataanalytics.v1beta.ListDataAgentsResponse\"C\xDAA\x06parent\x82\xD3\xE4\x93\x024\x122/v1beta/{parent=projects/*/locations/*}/dataAgents\x12\x83\x02\x0A\x18ListAccessibleDataAgents\x12H.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest\x1AI.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse\"R\xDAA\x06parent\x82\xD3\xE4\x93\x02C\x12A/v1beta/{parent=projects/*/locations/*}/dataAgents:listAccessible\x12\xC3\x01\x0A\x0CGetDataAgent\x12<.google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest\x1A2.google.cloud.geminidataanalytics.v1beta.DataAgent\"A\xDAA\x04name\x82\xD3\xE4\x93\x024\x122/v1beta/{name=projects/*/locations/*/dataAgents/*}\x12\xFD\x01\x0A\x0FCreateDataAgent\x12?.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest\x1A\x1D.google.longrunning.Operation\"\x89\x01\xCAA\x1E\x0A\x09DataAgent\x12\x11OperationMetadata\xDAA\x1Fparent,data_agent,data_agent_id\x82\xD3\xE4\x93\x02@\"2/v1beta/{parent=projects/*/locations/*}/dataAgents:\x0Adata_agent\x12\xFF\x01\x0A\x13CreateDataAgentSync\x12?.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest\x1A2.google.cloud.geminidataanalytics.v1beta.DataAgent\"s\xDAA\x1Fparent,data_agent,data_agent_id\x82\xD3\xE4\x93\x02K\"=/v1beta/{parent=projects/*/locations/*}/dataAgents:createSync:\x0Adata_agent\x12\xFF\x01\x0A\x0FUpdateDataAgent\x12?.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest\x1A\x1D.google.longrunning.Operation\"\x8B\x01\xCAA\x1E\x0A\x09DataAgent\x12\x11OperationMetadata\xDAA\x16data_agent,update_mask\x82\xD3\xE4\x93\x02K2=/v1beta/{data_agent.name=projects/*/locations/*/dataAgents/*}:\x0Adata_agent\x12\x81\x02\x0A\x13UpdateDataAgentSync\x12?.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest\x1A2.google.cloud.geminidataanalytics.v1beta.DataAgent\"u\xDAA\x16data_agent,update_mask\x82\xD3\xE4\x93\x02V2H/v1beta/{data_agent.name=projects/*/locations/*/dataAgents/*}:updateSync:\x0Adata_agent\x12\xE1\x01\x0A\x0FDeleteDataAgent\x12?.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest\x1A\x1D.google.longrunning.Operation\"n\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x024*2/v1beta/{name=projects/*/locations/*/dataAgents/*}\x12\xBC\x01\x0A\x13DeleteDataAgentSync\x12?.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest\x1A\x16.google.protobuf.Empty\"L\xDAA\x04name\x82\xD3\xE4\x93\x02?*=/v1beta/{name=projects/*/locations/*/dataAgents/*}:deleteSync\x12\xA4\x01\x0A\x0CGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"Y\xDAA\x08resource\x82\xD3\xE4\x93\x02H\"C/v1beta/{resource=projects/*/locations/*/dataAgents/*}:getIamPolicy:\x01*\x12\xA4\x01\x0A\x0CSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"Y\xDAA\x08resource\x82\xD3\xE4\x93\x02H\"C/v1beta/{resource=projects/*/locations/*/dataAgents/*}:setIamPolicy:\x01*\x1AV\xCAA\"geminidataanalytics.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xA6\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x15DataAgentServiceProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAnalyticsAgent.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAnalyticsAgent.php deleted file mode 100644 index b2b61fb3d3b2..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataAnalyticsAgent.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE7\x05\x0ABgoogle/cloud/geminidataanalytics/v1beta/data_analytics_agent.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A5google/cloud/geminidataanalytics/v1beta/context.proto\"\x8D\x02\x0A\x12DataAnalyticsAgent\x12N\x0A\x0Fstaging_context\x18\x05 \x01(\x0B20.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xE0A\x01\x12P\x0A\x11published_context\x18\x06 \x01(\x0B20.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xE0A\x01\x12U\x0A\x16last_published_context\x18\x07 \x01(\x0B20.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xE0A\x03B\xA8\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x17DataAnalyticsAgentProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataChatService.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataChatService.php deleted file mode 100644 index c7b4deae7a9b..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/DataChatService.php +++ /dev/null @@ -1,35 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF3S\x0A?google/cloud/geminidataanalytics/v1beta/data_chat_service.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A5google/cloud/geminidataanalytics/v1beta/context.proto\x1A:google/cloud/geminidataanalytics/v1beta/conversation.proto\x1A9google/cloud/geminidataanalytics/v1beta/credentials.proto\x1A8google/cloud/geminidataanalytics/v1beta/datasource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x90\x02\x0A\x10QueryDataRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x13\x0A\x06prompt\x18\x02 \x01(\x09B\x03\xE0A\x02\x12O\x0A\x07context\x18\x03 \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.QueryDataContextB\x03\xE0A\x02\x12[\x0A\x12generation_options\x18\x04 \x01(\x0B2:.google.cloud.geminidataanalytics.v1beta.GenerationOptionsB\x03\xE0A\x01\"\xB8\x01\x0A\x11GenerationOptions\x12\"\x0A\x15generate_query_result\x18\x01 \x01(\x08B\x03\xE0A\x01\x12-\x0A generate_natural_language_answer\x18\x02 \x01(\x08B\x03\xE0A\x01\x12!\x0A\x14generate_explanation\x18\x03 \x01(\x08B\x03\xE0A\x01\x12-\x0A generate_disambiguation_question\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xF4\x01\x0A\x10QueryDataContext\x12a\x0A\x15datasource_references\x18\x01 \x01(\x0B2=.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesB\x03\xE0A\x02\x12}\x0A\$parameterized_secure_view_parameters\x18\x02 \x01(\x0B2J.google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParametersB\x03\xE0A\x01\"\xC5\x01\x0A!ParameterizedSecureViewParameters\x12m\x0A\x0Aparameters\x18\x01 \x03(\x0B2T.google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters.ParameterB\x03\xE0A\x01\x1A1\x0A\x09Parameter\x12\x10\x0A\x03key\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x12\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xDE\x01\x0A\x11QueryDataResponse\x12\x17\x0A\x0Fgenerated_query\x18\x01 \x01(\x09\x12\x1A\x0A\x12intent_explanation\x18\x02 \x01(\x09\x12R\x0A\x0Cquery_result\x18\x03 \x01(\x0B2<.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult\x12\x1F\x0A\x17natural_language_answer\x18\x04 \x01(\x09\x12\x1F\x0A\x17disambiguation_question\x18\x05 \x03(\x09\"\xA4\x03\x0A\x13ExecutedQueryResult\x12T\x0A\x07columns\x18\x01 \x03(\x0B2C.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column\x12N\x0A\x04rows\x18\x02 \x03(\x0B2@.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row\x12\x17\x0A\x0Ftotal_row_count\x18\x03 \x01(\x03\x12\x16\x0A\x0Epartial_result\x18\x04 \x01(\x08\x12\x1D\x0A\x15query_execution_error\x18\x05 \x01(\x09\x1A\$\x0A\x06Column\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0C\x0A\x04type\x18\x02 \x01(\x09\x1A\x16\x0A\x05Value\x12\x0D\x0A\x05value\x18\x01 \x01(\x09\x1AY\x0A\x03Row\x12R\x0A\x06values\x18\x01 \x03(\x0B2B.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value\"\xA4\x01\x0A\x13ListMessagesRequest\x12G\x0A\x06parent\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/Conversation\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"z\x0A\x14ListMessagesResponse\x12I\x0A\x08messages\x18\x01 \x03(\x0B27.google.cloud.geminidataanalytics.v1beta.StorageMessage\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"g\x0A\x0EStorageMessage\x12\x12\x0A\x0Amessage_id\x18\x01 \x01(\x09\x12A\x0A\x07message\x18\x02 \x01(\x0B20.google.cloud.geminidataanalytics.v1beta.Message\"\xBF\x08\x0A\x0BChatRequest\x12O\x0A\x0Einline_context\x18e \x01(\x0B20.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xE0A\x01H\x00\x12e\x0A\x16conversation_reference\x18g \x01(\x0B2>.google.cloud.geminidataanalytics.v1beta.ConversationReferenceB\x03\xE0A\x01H\x00\x12\\\x0A\x12data_agent_context\x18h \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\x03\xE0A\x01H\x00\x12u\x0A\x1Fclient_managed_resource_context\x18i \x01(\x0B2E.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContextB\x03\xE0A\x01H\x00\x12W\x0A\x0Flooker_settings\x18\x0D \x01(\x0B27.google.cloud.geminidataanalytics.v1beta.LookerSettingsB\x03\xE0A\x01H\x01\x12F\x0A\x07project\x18\x01 \x01(\x09B5\x18\x01\xE0A\x01\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\x12\x13\x0A\x06parent\x18\x03 \x01(\x09B\x03\xE0A\x02\x12G\x0A\x08messages\x18\x02 \x03(\x0B20.google.cloud.geminidataanalytics.v1beta.MessageB\x03\xE0A\x02\x12N\x0A\x0Bcredentials\x18\x07 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.CredentialsB\x03\xE0A\x01\x12]\x0A\x0Dthinking_mode\x18\x09 \x01(\x0E2A.google.cloud.geminidataanalytics.v1beta.ChatRequest.ThinkingModeB\x03\xE0A\x01\x12N\x0A\x05model\x18\x0B \x01(\x0E2:.google.cloud.geminidataanalytics.v1beta.ChatRequest.ModelB\x03\xE0A\x01\"E\x0A\x0CThinkingMode\x12\x1D\x0A\x19THINKING_MODE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04FAST\x10\x01\x12\x0C\x0A\x08THINKING\x10\x02\"3\x0A\x05Model\x12\x15\x0A\x11MODEL_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FLATEST_GA_MODEL\x10\x01B\x12\x0A\x10context_providerB\x15\x0A\x13datasource_settings\"\xE5\x02\x0A\x10DataAgentContext\x12H\x0A\x0Adata_agent\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,geminidataanalytics.googleapis.com/DataAgent\x12P\x0A\x0Bcredentials\x18\x02 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.CredentialsB\x05\x18\x01\xE0A\x01\x12f\x0A\x0Fcontext_version\x18\x03 \x01(\x0E2H.google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersionB\x03\xE0A\x01\"M\x0A\x0EContextVersion\x12\x1F\x0A\x1BCONTEXT_VERSION_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07STAGING\x10\x01\x12\x0D\x0A\x09PUBLISHED\x10\x02\"\xC2\x01\x0A\x15ConversationReference\x12M\x0A\x0Cconversation\x18\x01 \x01(\x09B7\xE0A\x02\xFAA1\x0A/geminidataanalytics.googleapis.com/Conversation\x12Z\x0A\x12data_agent_context\x18\x03 \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\x03\xE0A\x02\"\xA2\x01\x0A\x1CClientManagedResourceContext\x12M\x0A\x0Einline_context\x18\x01 \x01(\x0B20.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xE0A\x02\x12\x1C\x0A\x0Fconversation_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08agent_id\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xFE\x01\x0A\x07Message\x12L\x0A\x0Cuser_message\x18\x02 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.UserMessageH\x00\x12P\x0A\x0Esystem_message\x18\x03 \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.SystemMessageH\x00\x122\x0A\x09timestamp\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x17\x0A\x0Amessage_id\x18\x04 \x01(\x09B\x03\xE0A\x01B\x06\x0A\x04kind\".\x0A\x0ELookerSettings\x12\x1C\x0A\x0Fenable_dev_mode\x18\x01 \x01(\x08B\x03\xE0A\x01\"%\x0A\x0BUserMessage\x12\x0E\x0A\x04text\x18\x01 \x01(\x09H\x00B\x06\x0A\x04kind\"\xF1\x05\x0A\x0DSystemMessage\x12D\x0A\x04text\x18\x01 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.TextMessageH\x00\x12H\x0A\x06schema\x18\x02 \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.SchemaMessageH\x00\x12D\x0A\x04data\x18\x03 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.DataMessageH\x00\x12L\x0A\x08analysis\x18\x04 \x01(\x0B28.google.cloud.geminidataanalytics.v1beta.AnalysisMessageH\x00\x12F\x0A\x05chart\x18\x05 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ChartMessageH\x00\x12F\x0A\x05error\x18\x06 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.ErrorMessageH\x00\x12W\x0A\x0Fexample_queries\x18\x0D \x01(\x0B27.google.cloud.geminidataanalytics.v1beta.ExampleQueriesB\x03\xE0A\x01H\x00\x12]\x0A\x0Dclarification\x18\x0E \x01(\x0B2=.google.cloud.geminidataanalytics.v1beta.ClarificationMessageB\x05\x18\x01\xE0A\x01H\x00\x12\x15\x0A\x08group_id\x18\x0C \x01(\x05H\x01\x88\x01\x01\x12H\x0A\x08citation\x18\x0F \x01(\x0B21.google.cloud.geminidataanalytics.v1beta.CitationB\x03\xE0A\x03B\x06\x0A\x04kindB\x0B\x0A\x09_group_id\"\x86\x02\x0A\x0BTextMessage\x12\x12\x0A\x05parts\x18\x01 \x03(\x09B\x03\xE0A\x01\x12U\x0A\x09text_type\x18\x02 \x01(\x0E2=.google.cloud.geminidataanalytics.v1beta.TextMessage.TextTypeB\x03\xE0A\x01\x12\x1E\x0A\x11thought_signature\x18\x03 \x01(\x0CB\x03\xE0A\x01\"l\x0A\x08TextType\x12\x19\x0A\x15TEXT_TYPE_UNSPECIFIED\x10\x00\x12\x12\x0A\x0EFINAL_RESPONSE\x10\x01\x12\x0B\x0A\x07THOUGHT\x10\x02\x12\x0C\x0A\x08PROGRESS\x10\x03\x12\x16\x0A\x12FOLLOWUP_QUESTIONS\x10\x04\"\xA7\x01\x0A\x0DSchemaMessage\x12E\x0A\x05query\x18\x01 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.SchemaQueryH\x00\x12G\x0A\x06result\x18\x02 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.SchemaResultH\x00B\x06\x0A\x04kind\"\$\x0A\x0BSchemaQuery\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x01\"]\x0A\x0CSchemaResult\x12M\x0A\x0Bdatasources\x18\x01 \x03(\x0B23.google.cloud.geminidataanalytics.v1beta.DatasourceB\x03\xE0A\x01\"\xB5\x03\x0A\x0BDataMessage\x12C\x0A\x05query\x18\x01 \x01(\x0B22.google.cloud.geminidataanalytics.v1beta.DataQueryH\x00\x12\x17\x0A\x0Dgenerated_sql\x18\x02 \x01(\x09H\x00\x12E\x0A\x06result\x18\x03 \x01(\x0B23.google.cloud.geminidataanalytics.v1beta.DataResultH\x00\x12Z\x0A\x16generated_looker_query\x18\x04 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x02\x18\x01H\x00\x12M\x0A\x0Dbig_query_job\x18\x05 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.BigQueryJobH\x00\x12N\x0A\x0Dmatched_query\x18\x06 \x01(\x0B25.google.cloud.geminidataanalytics.v1beta.MatchedQueryH\x00B\x06\x0A\x04kind\"\xDF\x01\x0A\x09DataQuery\x12K\x0A\x06looker\x18\x04 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x03\xE0A\x01H\x00\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12M\x0A\x0Bdatasources\x18\x02 \x03(\x0B23.google.cloud.geminidataanalytics.v1beta.DatasourceB\x03\xE0A\x01B\x0C\x0A\x0Aquery_type\"\xC7\x01\x0A\x0ADataResult\x12\x11\x0A\x04name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12D\x0A\x06schema\x18\x05 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\x12*\x0A\x04data\x18\x02 \x03(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x124\x0A\x0Eformatted_data\x18\x06 \x03(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\"\xF9\x01\x0A\x0BBigQueryJob\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06job_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08location\x18\x05 \x01(\x09B\x03\xE0A\x01\x12_\x0A\x11destination_table\x18\x03 \x01(\x0B2?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\x03\xE0A\x01\x12D\x0A\x06schema\x18\x07 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\"\xB4\x01\x0A\x0FAnalysisMessage\x12G\x0A\x05query\x18\x01 \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.AnalysisQueryH\x00\x12P\x0A\x0Eprogress_event\x18\x02 \x01(\x0B26.google.cloud.geminidataanalytics.v1beta.AnalysisEventH\x00B\x06\x0A\x04kind\"F\x0A\x0DAnalysisQuery\x12\x15\x0A\x08question\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11data_result_names\x18\x02 \x03(\x09B\x03\xE0A\x01\"\xAA\x02\x0A\x0DAnalysisEvent\x12\x1B\x0A\x11planner_reasoning\x18\x02 \x01(\x09H\x00\x12\x1B\x0A\x11coder_instruction\x18\x03 \x01(\x09H\x00\x12\x0E\x0A\x04code\x18\x04 \x01(\x09H\x00\x12\x1A\x0A\x10execution_output\x18\x05 \x01(\x09H\x00\x12\x19\x0A\x0Fexecution_error\x18\x06 \x01(\x09H\x00\x12 \x0A\x16result_vega_chart_json\x18\x07 \x01(\x09H\x00\x12!\x0A\x17result_natural_language\x18\x08 \x01(\x09H\x00\x12\x19\x0A\x0Fresult_csv_data\x18\x09 \x01(\x09H\x00\x12\x1F\x0A\x15result_reference_data\x18\x0A \x01(\x09H\x00\x12\x0F\x0A\x05error\x18\x0B \x01(\x09H\x00B\x06\x0A\x04kind\"\xA4\x01\x0A\x0CChartMessage\x12D\x0A\x05query\x18\x01 \x01(\x0B23.google.cloud.geminidataanalytics.v1beta.ChartQueryH\x00\x12F\x0A\x06result\x18\x02 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.ChartResultH\x00B\x06\x0A\x04kind\"F\x0A\x0AChartQuery\x12\x19\x0A\x0Cinstructions\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10data_result_name\x18\x02 \x01(\x09B\x03\xE0A\x01\"\x83\x01\x0A\x0BChartResult\x121\x0A\x0Bvega_config\x18\x02 \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x12A\x0A\x05image\x18\x03 \x01(\x0B2-.google.cloud.geminidataanalytics.v1beta.BlobB\x03\xE0A\x01\"!\x0A\x0CErrorMessage\x12\x11\x0A\x04text\x18\x01 \x01(\x09B\x03\xE0A\x03\"\x9F\x04\x0A\x15ClarificationQuestion\x12\x17\x0A\x08question\x18\x01 \x01(\x09B\x05\x18\x01\xE0A\x02\x12k\x0A\x0Eselection_mode\x18\x02 \x01(\x0E2L.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionModeB\x05\x18\x01\xE0A\x02\x12\x16\x0A\x07options\x18\x03 \x03(\x09B\x05\x18\x01\xE0A\x02\x12\x84\x01\x0A\x1Bclarification_question_type\x18\x04 \x01(\x0E2X.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionTypeB\x05\x18\x01\xE0A\x01\"d\x0A\x0DSelectionMode\x12\"\x0A\x1ASELECTION_MODE_UNSPECIFIED\x10\x00\x1A\x02\x08\x01\x12\x15\x0A\x0DSINGLE_SELECT\x10\x01\x1A\x02\x08\x01\x12\x14\x0A\x0CMULTI_SELECT\x10\x02\x1A\x02\x08\x01\x1A\x02\x18\x01\"w\x0A\x19ClarificationQuestionType\x12/\x0A'CLARIFICATION_QUESTION_TYPE_UNSPECIFIED\x10\x00\x1A\x02\x08\x01\x12\x15\x0A\x0DFILTER_VALUES\x10\x01\x1A\x02\x08\x01\x12\x0E\x0A\x06FIELDS\x10\x02\x1A\x02\x08\x01\x1A\x02\x18\x01:\x02\x18\x01\"t\x0A\x14ClarificationMessage\x12X\x0A\x09questions\x18\x01 \x03(\x0B2>.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionB\x05\x18\x01\xE0A\x02:\x02\x18\x01\"e\x0A\x0EExampleQueries\x12S\x0A\x0Fexample_queries\x18\x01 \x03(\x0B25.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xE0A\x01\"1\x0A\x04Blob\x12\x16\x0A\x09mime_type\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04data\x18\x02 \x01(\x0CB\x03\xE0A\x022\xAE\x0C\x0A\x0FDataChatService\x12\xA9\x01\x0A\x04Chat\x124.google.cloud.geminidataanalytics.v1beta.ChatRequest\x1A0.google.cloud.geminidataanalytics.v1beta.Message\"7\x82\xD3\xE4\x93\x021\",/v1beta/{parent=projects/*/locations/*}:chat:\x01*0\x01\x12\x82\x02\x0A\x12CreateConversation\x12B.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest\x1A5.google.cloud.geminidataanalytics.v1beta.Conversation\"q\xDAA#parent,conversation,conversation_id\x82\xD3\xE4\x93\x02E\"5/v1beta/{parent=projects/*/locations/*}/conversations:\x0Cconversation\x12\xB6\x01\x0A\x12DeleteConversation\x12B.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest\x1A\x16.google.protobuf.Empty\"D\xDAA\x04name\x82\xD3\xE4\x93\x027*5/v1beta/{name=projects/*/locations/*/conversations/*}\x12\xCF\x01\x0A\x0FGetConversation\x12?.google.cloud.geminidataanalytics.v1beta.GetConversationRequest\x1A5.google.cloud.geminidataanalytics.v1beta.Conversation\"D\xDAA\x04name\x82\xD3\xE4\x93\x027\x125/v1beta/{name=projects/*/locations/*/conversations/*}\x12\xE2\x01\x0A\x11ListConversations\x12A.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest\x1AB.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse\"F\xDAA\x06parent\x82\xD3\xE4\x93\x027\x125/v1beta/{parent=projects/*/locations/*}/conversations\x12\xDE\x01\x0A\x0CListMessages\x12<.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest\x1A=.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse\"Q\xDAA\x06parent\x82\xD3\xE4\x93\x02B\x12@/v1beta/{parent=projects/*/locations/*/conversations/*}/messages\x12\xC0\x01\x0A\x09QueryData\x129.google.cloud.geminidataanalytics.v1beta.QueryDataRequest\x1A:.google.cloud.geminidataanalytics.v1beta.QueryDataResponse\"<\x82\xD3\xE4\x93\x026\"1/v1beta/{parent=projects/*/locations/*}:queryData:\x01*\x1AV\xCAA\"geminidataanalytics.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xA5\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x14DataChatServiceProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Datasource.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Datasource.php deleted file mode 100644 index 112b8b824467..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/GPBMetadata/Google/Cloud/Geminidataanalytics/V1Beta/Datasource.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xC8-\x0A8google/cloud/geminidataanalytics/v1beta/datasource.proto\x12'google.cloud.geminidataanalytics.v1beta\x1A;google/cloud/geminidataanalytics/v1beta/agent_context.proto\x1A9google/cloud/geminidataanalytics/v1beta/credentials.proto\x1A\x1Cgoogle/protobuf/struct.proto\"\xA0\x04\x0A\x14DatasourceReferences\x12N\x0A\x02bq\x18\x01 \x01(\x0B2@.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferencesH\x00\x12U\x0A\x06studio\x18\x02 \x01(\x0B2C.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferencesH\x00\x12R\x0A\x06looker\x18\x03 \x01(\x0B2@.google.cloud.geminidataanalytics.v1beta.LookerExploreReferencesH\x00\x12L\x0A\x07alloydb\x18\x08 \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceH\x00\x12V\x0A\x11spanner_reference\x18\x09 \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.SpannerReferenceH\x00\x12Y\x0A\x13cloud_sql_reference\x18\x0A \x01(\x0B2:.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceH\x00B\x0C\x0A\x0Areferences\"\xEA\x01\x0A\x17BigQueryTableReferences\x12^\x0A\x10table_references\x18\x01 \x03(\x0B2?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\x03\xE0A\x01\x12o\x0A\x19property_graph_references\x18\x02 \x03(\x0B2G.google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReferenceB\x03\xE0A\x01\"\xA7\x01\x0A\x16BigQueryTableReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Adataset_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08table_id\x18\x04 \x01(\x09B\x03\xE0A\x02\x12D\x0A\x06schema\x18\x06 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\"\x80\x01\x0A\x1AStudioDatasourceReferences\x12b\x0A\x11studio_references\x18\x02 \x03(\x0B2B.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferenceB\x03\xE0A\x01\"7\x0A\x19StudioDatasourceReference\x12\x1A\x0A\x0Ddatasource_id\x18\x01 \x01(\x09B\x03\xE0A\x02\"\xDC\x01\x0A\x10AlloyDbReference\x12b\x0A\x12database_reference\x18\x01 \x01(\x0B2A.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReferenceB\x03\xE0A\x02\x12d\x0A\x17agent_context_reference\x18\x03 \x01(\x0B2>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\x03\xE0A\x01\"u\x0A\x16DatabaseTableReference\x12\x15\x0A\x08table_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12D\x0A\x06schema\x18\x02 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\"\x96\x02\x0A\x18AlloyDbDatabaseReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06region\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Acluster_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Binstance_id\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdatabase_id\x18\x05 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09table_ids\x18\x06 \x03(\x09B\x03\xE0A\x01\x12g\x0A\x19database_table_references\x18\x07 \x03(\x0B2?.google.cloud.geminidataanalytics.v1beta.DatabaseTableReferenceB\x03\xE0A\x01\"\xDC\x01\x0A\x10SpannerReference\x12b\x0A\x12database_reference\x18\x01 \x01(\x0B2A.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReferenceB\x03\xE0A\x02\x12d\x0A\x17agent_context_reference\x18\x02 \x01(\x0B2>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\x03\xE0A\x01\"\xB5\x03\x0A\x18SpannerDatabaseReference\x12]\x0A\x06engine\x18\x06 \x01(\x0E2H.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.EngineB\x03\xE0A\x02\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Binstance_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdatabase_id\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09table_ids\x18\x05 \x03(\x09B\x03\xE0A\x01\x12g\x0A\x19database_table_references\x18\x07 \x03(\x0B2?.google.cloud.geminidataanalytics.v1beta.DatabaseTableReferenceB\x03\xE0A\x01\x12\x15\x0A\x08priority\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x0Brequest_tag\x18\x09 \x01(\x09\"@\x0A\x06Engine\x12\x16\x0A\x12ENGINE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AGOOGLE_SQL\x10\x01\x12\x0E\x0A\x0APOSTGRESQL\x10\x02\"\xDE\x01\x0A\x11CloudSqlReference\x12c\x0A\x12database_reference\x18\x01 \x01(\x0B2B.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReferenceB\x03\xE0A\x02\x12d\x0A\x17agent_context_reference\x18\x02 \x01(\x0B2>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\x03\xE0A\x01\"\x9B\x03\x0A\x19CloudSqlDatabaseReference\x12^\x0A\x06engine\x18\x01 \x01(\x0E2I.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.EngineB\x03\xE0A\x02\x12\x17\x0A\x0Aproject_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06region\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Binstance_id\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdatabase_id\x18\x05 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09table_ids\x18\x07 \x03(\x09B\x03\xE0A\x01\x12g\x0A\x19database_table_references\x18\x08 \x03(\x0B2?.google.cloud.geminidataanalytics.v1beta.DatabaseTableReferenceB\x03\xE0A\x01\";\x0A\x06Engine\x12\x16\x0A\x12ENGINE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0APOSTGRESQL\x10\x01\x12\x09\x0A\x05MYSQL\x10\x02\"\xCD\x01\x0A\x17LookerExploreReferences\x12`\x0A\x12explore_references\x18\x01 \x03(\x0B2?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceB\x03\xE0A\x02\x12P\x0A\x0Bcredentials\x18\x02 \x01(\x0B24.google.cloud.geminidataanalytics.v1beta.CredentialsB\x05\x18\x01\xE0A\x01\"\xA6\x02\x0A\x16LookerExploreReference\x12\x1D\x0A\x13looker_instance_uri\x18\x09 \x01(\x09H\x00\x12j\x0A\x1Cprivate_looker_instance_info\x18\x0A \x01(\x0B2B.google.cloud.geminidataanalytics.v1beta.PrivateLookerInstanceInfoH\x00\x12\x19\x0A\x0Clookml_model\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x14\x0A\x07explore\x18\x05 \x01(\x09B\x03\xE0A\x02\x12D\x0A\x06schema\x18\x08 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01B\x0A\x0A\x08instance\"r\x0A\x1EBigQueryPropertyGraphReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Adataset_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1E\x0A\x11property_graph_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"W\x0A\x19PrivateLookerInstanceInfo\x12\x1A\x0A\x12looker_instance_id\x18\x01 \x01(\x09\x12\x1E\x0A\x16service_directory_name\x18\x02 \x01(\x09\"\x80\x06\x0A\x0ADatasource\x12c\x0A\x18bigquery_table_reference\x18\x01 \x01(\x0B2?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceH\x00\x12\x1E\x0A\x14studio_datasource_id\x18\x02 \x01(\x09H\x00\x12c\x0A\x18looker_explore_reference\x18\x04 \x01(\x0B2?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceH\x00\x12W\x0A\x12alloy_db_reference\x18\x0C \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceH\x00\x12V\x0A\x11spanner_reference\x18\x0D \x01(\x0B29.google.cloud.geminidataanalytics.v1beta.SpannerReferenceH\x00\x12Y\x0A\x13cloud_sql_reference\x18\x0E \x01(\x0B2:.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceH\x00\x12t\x0A!bigquery_property_graph_reference\x18\x10 \x01(\x0B2G.google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReferenceH\x00\x12D\x0A\x06schema\x18\x07 \x01(\x0B2/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xE0A\x01\x123\x0A\x0Dstruct_schema\x18\x0A \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01B\x0B\x0A\x09reference\"\xF7\x01\x0A\x06Schema\x12C\x0A\x06fields\x18\x01 \x03(\x0B2..google.cloud.geminidataanalytics.v1beta.FieldB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08synonyms\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x11\x0A\x04tags\x18\x04 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x05 \x01(\x09B\x03\xE0A\x01\x12I\x0A\x07filters\x18\x06 \x03(\x0B23.google.cloud.geminidataanalytics.v1beta.DataFilterB\x03\xE0A\x01\"\x99\x02\x0A\x05Field\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04type\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04mode\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08synonyms\x18\x06 \x03(\x09B\x03\xE0A\x01\x12\x11\x0A\x04tags\x18\x07 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x08 \x01(\x09B\x03\xE0A\x01\x12F\x0A\x09subfields\x18\x09 \x03(\x0B2..google.cloud.geminidataanalytics.v1beta.FieldB\x03\xE0A\x01\x12\x15\x0A\x08category\x18\x0A \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cvalue_format\x18\x0B \x01(\x09B\x03\xE0A\x01\"\x80\x01\x0A\x0ADataFilter\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05value\x18\x02 \x01(\x09B\x03\xE0A\x01\x12J\x0A\x04type\x18\x03 \x01(\x0E27.google.cloud.geminidataanalytics.v1beta.DataFilterTypeB\x03\xE0A\x01*E\x0A\x0EDataFilterType\x12 \x0A\x1CDATA_FILTER_TYPE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DALWAYS_FILTER\x10\x01B\xA0\x02\x0A+com.google.cloud.geminidataanalytics.v1betaB\x0FDatasourceProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xAA\x02'Google.Cloud.GeminiDataAnalytics.V1Beta\xCA\x02'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xEA\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AgentContextReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AgentContextReference.php deleted file mode 100644 index c1957f9c5cc9..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AgentContextReference.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.AgentContextReference - */ -class AgentContextReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Context set ID to retrieve. - * - * Generated from protobuf field string context_set_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $context_set_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $context_set_id - * Required. Context set ID to retrieve. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\AgentContext::initOnce(); - parent::__construct($data); - } - - /** - * Required. Context set ID to retrieve. - * - * Generated from protobuf field string context_set_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getContextSetId() - { - return $this->context_set_id; - } - - /** - * Required. Context set ID to retrieve. - * - * Generated from protobuf field string context_set_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setContextSetId($var) - { - GPBUtil::checkString($var, True); - $this->context_set_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AlloyDbDatabaseReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AlloyDbDatabaseReference.php deleted file mode 100644 index 823951187962..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AlloyDbDatabaseReference.php +++ /dev/null @@ -1,279 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference - */ -class AlloyDbDatabaseReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project the instance belongs to. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * Required. The region of the instance. - * - * Generated from protobuf field string region = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $region = ''; - /** - * Required. The cluster id. - * - * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster_id = ''; - /** - * Required. The instance id. - * - * Generated from protobuf field string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance_id = ''; - /** - * Required. The database id. - * - * Generated from protobuf field string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database_id = ''; - /** - * Optional. The table ids. Denotes all tables if unset. - * - * Generated from protobuf field repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $table_ids; - /** - * Optional. References to tables within the database. Each reference - * specifies a table and can optionally include the table's schema to provide - * context for the query. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $database_table_references; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The project the instance belongs to. - * @type string $region - * Required. The region of the instance. - * @type string $cluster_id - * Required. The cluster id. - * @type string $instance_id - * Required. The instance id. - * @type string $database_id - * Required. The database id. - * @type string[] $table_ids - * Optional. The table ids. Denotes all tables if unset. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference[] $database_table_references - * Optional. References to tables within the database. Each reference - * specifies a table and can optionally include the table's schema to provide - * context for the query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project the instance belongs to. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The project the instance belongs to. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The region of the instance. - * - * Generated from protobuf field string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * Required. The region of the instance. - * - * Generated from protobuf field string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - - /** - * Required. The cluster id. - * - * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getClusterId() - { - return $this->cluster_id; - } - - /** - * Required. The cluster id. - * - * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setClusterId($var) - { - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The instance id. - * - * Generated from protobuf field string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getInstanceId() - { - return $this->instance_id; - } - - /** - * Required. The instance id. - * - * Generated from protobuf field string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setInstanceId($var) - { - GPBUtil::checkString($var, True); - $this->instance_id = $var; - - return $this; - } - - /** - * Required. The database id. - * - * Generated from protobuf field string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatabaseId() - { - return $this->database_id; - } - - /** - * Required. The database id. - * - * Generated from protobuf field string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatabaseId($var) - { - GPBUtil::checkString($var, True); - $this->database_id = $var; - - return $this; - } - - /** - * Optional. The table ids. Denotes all tables if unset. - * - * Generated from protobuf field repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getTableIds() - { - return $this->table_ids; - } - - /** - * Optional. The table ids. Denotes all tables if unset. - * - * Generated from protobuf field repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setTableIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->table_ids = $arr; - - return $this; - } - - /** - * Optional. References to tables within the database. Each reference - * specifies a table and can optionally include the table's schema to provide - * context for the query. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference> - */ - public function getDatabaseTableReferences() - { - return $this->database_table_references; - } - - /** - * Optional. References to tables within the database. Each reference - * specifies a table and can optionally include the table's schema to provide - * context for the query. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference[] $var - * @return $this - */ - public function setDatabaseTableReferences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference::class); - $this->database_table_references = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AlloyDbReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AlloyDbReference.php deleted file mode 100644 index f1a6afda0dc6..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AlloyDbReference.php +++ /dev/null @@ -1,126 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.AlloyDbReference - */ -class AlloyDbReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Singular proto that supports specifying which database and tables - * to include. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database_reference = null; - /** - * Optional. Parameters for retrieving data from Agent Context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $agent_context_reference = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbDatabaseReference $database_reference - * Required. Singular proto that supports specifying which database and tables - * to include. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference $agent_context_reference - * Optional. Parameters for retrieving data from Agent Context. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Required. Singular proto that supports specifying which database and tables - * to include. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbDatabaseReference|null - */ - public function getDatabaseReference() - { - return $this->database_reference; - } - - public function hasDatabaseReference() - { - return isset($this->database_reference); - } - - public function clearDatabaseReference() - { - unset($this->database_reference); - } - - /** - * Required. Singular proto that supports specifying which database and tables - * to include. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbDatabaseReference $var - * @return $this - */ - public function setDatabaseReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbDatabaseReference::class); - $this->database_reference = $var; - - return $this; - } - - /** - * Optional. Parameters for retrieving data from Agent Context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference|null - */ - public function getAgentContextReference() - { - return $this->agent_context_reference; - } - - public function hasAgentContextReference() - { - return isset($this->agent_context_reference); - } - - public function clearAgentContextReference() - { - unset($this->agent_context_reference); - } - - /** - * Optional. Parameters for retrieving data from Agent Context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference $var - * @return $this - */ - public function setAgentContextReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference::class); - $this->agent_context_reference = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisEvent.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisEvent.php deleted file mode 100644 index 33fcf75cb90e..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisEvent.php +++ /dev/null @@ -1,372 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.AnalysisEvent - */ -class AnalysisEvent extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $planner_reasoning - * Python codegen planner's reasoning. - * @type string $coder_instruction - * Instructions issued for code generation. - * @type string $code - * Generated code. - * @type string $execution_output - * Output from code execution. - * @type string $execution_error - * An error from code execution. - * @type string $result_vega_chart_json - * Result as Vega chart JSON string. - * @type string $result_natural_language - * Result as NL string. - * @type string $result_csv_data - * Result as CSV string. - * @type string $result_reference_data - * Result as a reference to a data source. - * @type string $error - * A generic error message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Python codegen planner's reasoning. - * - * Generated from protobuf field string planner_reasoning = 2; - * @return string - */ - public function getPlannerReasoning() - { - return $this->readOneof(2); - } - - public function hasPlannerReasoning() - { - return $this->hasOneof(2); - } - - /** - * Python codegen planner's reasoning. - * - * Generated from protobuf field string planner_reasoning = 2; - * @param string $var - * @return $this - */ - public function setPlannerReasoning($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Instructions issued for code generation. - * - * Generated from protobuf field string coder_instruction = 3; - * @return string - */ - public function getCoderInstruction() - { - return $this->readOneof(3); - } - - public function hasCoderInstruction() - { - return $this->hasOneof(3); - } - - /** - * Instructions issued for code generation. - * - * Generated from protobuf field string coder_instruction = 3; - * @param string $var - * @return $this - */ - public function setCoderInstruction($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Generated code. - * - * Generated from protobuf field string code = 4; - * @return string - */ - public function getCode() - { - return $this->readOneof(4); - } - - public function hasCode() - { - return $this->hasOneof(4); - } - - /** - * Generated code. - * - * Generated from protobuf field string code = 4; - * @param string $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output from code execution. - * - * Generated from protobuf field string execution_output = 5; - * @return string - */ - public function getExecutionOutput() - { - return $this->readOneof(5); - } - - public function hasExecutionOutput() - { - return $this->hasOneof(5); - } - - /** - * Output from code execution. - * - * Generated from protobuf field string execution_output = 5; - * @param string $var - * @return $this - */ - public function setExecutionOutput($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * An error from code execution. - * - * Generated from protobuf field string execution_error = 6; - * @return string - */ - public function getExecutionError() - { - return $this->readOneof(6); - } - - public function hasExecutionError() - { - return $this->hasOneof(6); - } - - /** - * An error from code execution. - * - * Generated from protobuf field string execution_error = 6; - * @param string $var - * @return $this - */ - public function setExecutionError($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Result as Vega chart JSON string. - * - * Generated from protobuf field string result_vega_chart_json = 7; - * @return string - */ - public function getResultVegaChartJson() - { - return $this->readOneof(7); - } - - public function hasResultVegaChartJson() - { - return $this->hasOneof(7); - } - - /** - * Result as Vega chart JSON string. - * - * Generated from protobuf field string result_vega_chart_json = 7; - * @param string $var - * @return $this - */ - public function setResultVegaChartJson($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Result as NL string. - * - * Generated from protobuf field string result_natural_language = 8; - * @return string - */ - public function getResultNaturalLanguage() - { - return $this->readOneof(8); - } - - public function hasResultNaturalLanguage() - { - return $this->hasOneof(8); - } - - /** - * Result as NL string. - * - * Generated from protobuf field string result_natural_language = 8; - * @param string $var - * @return $this - */ - public function setResultNaturalLanguage($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Result as CSV string. - * - * Generated from protobuf field string result_csv_data = 9; - * @return string - */ - public function getResultCsvData() - { - return $this->readOneof(9); - } - - public function hasResultCsvData() - { - return $this->hasOneof(9); - } - - /** - * Result as CSV string. - * - * Generated from protobuf field string result_csv_data = 9; - * @param string $var - * @return $this - */ - public function setResultCsvData($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Result as a reference to a data source. - * - * Generated from protobuf field string result_reference_data = 10; - * @return string - */ - public function getResultReferenceData() - { - return $this->readOneof(10); - } - - public function hasResultReferenceData() - { - return $this->hasOneof(10); - } - - /** - * Result as a reference to a data source. - * - * Generated from protobuf field string result_reference_data = 10; - * @param string $var - * @return $this - */ - public function setResultReferenceData($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * A generic error message. - * - * Generated from protobuf field string error = 11; - * @return string - */ - public function getError() - { - return $this->readOneof(11); - } - - public function hasError() - { - return $this->hasOneof(11); - } - - /** - * A generic error message. - * - * Generated from protobuf field string error = 11; - * @param string $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisMessage.php deleted file mode 100644 index 676970984b1d..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisMessage.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.AnalysisMessage - */ -class AnalysisMessage extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisQuery $query - * An analysis query. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisEvent $progress_event - * An event indicating the progress of the analysis. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * An analysis query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisQuery query = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisQuery|null - */ - public function getQuery() - { - return $this->readOneof(1); - } - - public function hasQuery() - { - return $this->hasOneof(1); - } - - /** - * An analysis query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisQuery query = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisQuery $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisQuery::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * An event indicating the progress of the analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisEvent progress_event = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisEvent|null - */ - public function getProgressEvent() - { - return $this->readOneof(2); - } - - public function hasProgressEvent() - { - return $this->hasOneof(2); - } - - /** - * An event indicating the progress of the analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisEvent progress_event = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisEvent $var - * @return $this - */ - public function setProgressEvent($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisEvent::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisOptions.php deleted file mode 100644 index ceb84b788342..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisOptions.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.AnalysisOptions - */ -class AnalysisOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Options for Python analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisOptions.Python python = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $python = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisOptions\Python $python - * Optional. Options for Python analysis. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Options for Python analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisOptions.Python python = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisOptions\Python|null - */ - public function getPython() - { - return $this->python; - } - - public function hasPython() - { - return isset($this->python); - } - - public function clearPython() - { - unset($this->python); - } - - /** - * Optional. Options for Python analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisOptions.Python python = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisOptions\Python $var - * @return $this - */ - public function setPython($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisOptions\Python::class); - $this->python = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisOptions/Python.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisOptions/Python.php deleted file mode 100644 index c32483caa3e4..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisOptions/Python.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.AnalysisOptions.Python - */ -class Python extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Whether to enable Python analysis. - * Defaults to false. - * - * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Optional. Whether to enable Python analysis. - * Defaults to false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Whether to enable Python analysis. - * Defaults to false. - * - * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Optional. Whether to enable Python analysis. - * Defaults to false. - * - * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisQuery.php deleted file mode 100644 index e3d37c48964e..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/AnalysisQuery.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.AnalysisQuery - */ -class AnalysisQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. An analysis question to help answer the user's original question. - * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $question = ''; - /** - * Optional. The names of previously retrieved data results to analyze. - * - * Generated from protobuf field repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $data_result_names; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $question - * Optional. An analysis question to help answer the user's original question. - * @type string[] $data_result_names - * Optional. The names of previously retrieved data results to analyze. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. An analysis question to help answer the user's original question. - * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getQuestion() - { - return $this->question; - } - - /** - * Optional. An analysis question to help answer the user's original question. - * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setQuestion($var) - { - GPBUtil::checkString($var, True); - $this->question = $var; - - return $this; - } - - /** - * Optional. The names of previously retrieved data results to analyze. - * - * Generated from protobuf field repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getDataResultNames() - { - return $this->data_result_names; - } - - /** - * Optional. The names of previously retrieved data results to analyze. - * - * Generated from protobuf field repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setDataResultNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->data_result_names = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryJob.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryJob.php deleted file mode 100644 index 9e85bf2007d9..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryJob.php +++ /dev/null @@ -1,263 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.BigQueryJob - */ -class BigQueryJob extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project that the job belongs to. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * Required. The ID of the job. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * - * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $job_id = ''; - /** - * Optional. The location of the job. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * - * Generated from protobuf field string location = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $location = ''; - /** - * Optional. A reference to the destination table of the job's query results. - * See - * [JobConfigurationQuery](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference destination_table = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $destination_table = null; - /** - * Optional. The schema of the job's query results. - * See - * [JobStatistics2](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobstatistics2). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The project that the job belongs to. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * @type string $job_id - * Required. The ID of the job. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * @type string $location - * Optional. The location of the job. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference $destination_table - * Optional. A reference to the destination table of the job's query results. - * See - * [JobConfigurationQuery](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery). - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $schema - * Optional. The schema of the job's query results. - * See - * [JobStatistics2](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobstatistics2). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project that the job belongs to. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The project that the job belongs to. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The ID of the job. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * - * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * Required. The ID of the job. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * - * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * Optional. The location of the job. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * - * Generated from protobuf field string location = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Optional. The location of the job. - * See - * [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference). - * - * Generated from protobuf field string location = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Optional. A reference to the destination table of the job's query results. - * See - * [JobConfigurationQuery](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference destination_table = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference|null - */ - public function getDestinationTable() - { - return $this->destination_table; - } - - public function hasDestinationTable() - { - return isset($this->destination_table); - } - - public function clearDestinationTable() - { - unset($this->destination_table); - } - - /** - * Optional. A reference to the destination table of the job's query results. - * See - * [JobConfigurationQuery](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference destination_table = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference $var - * @return $this - */ - public function setDestinationTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference::class); - $this->destination_table = $var; - - return $this; - } - - /** - * Optional. The schema of the job's query results. - * See - * [JobStatistics2](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobstatistics2). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Schema|null - */ - public function getSchema() - { - return $this->schema; - } - - public function hasSchema() - { - return isset($this->schema); - } - - public function clearSchema() - { - unset($this->schema); - } - - /** - * Optional. The schema of the job's query results. - * See - * [JobStatistics2](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobstatistics2). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Schema::class); - $this->schema = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryTableReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryTableReference.php deleted file mode 100644 index ec6fc3fa2e71..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryTableReference.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.BigQueryTableReference - */ -class BigQueryTableReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project that the table belongs to. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * Required. The dataset that the table belongs to. - * - * Generated from protobuf field string dataset_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $dataset_id = ''; - /** - * Required. The table id. - * - * Generated from protobuf field string table_id = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table_id = ''; - /** - * Optional. The schema of the datasource. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The project that the table belongs to. - * @type string $dataset_id - * Required. The dataset that the table belongs to. - * @type string $table_id - * Required. The table id. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $schema - * Optional. The schema of the datasource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project that the table belongs to. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The project that the table belongs to. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The dataset that the table belongs to. - * - * Generated from protobuf field string dataset_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatasetId() - { - return $this->dataset_id; - } - - /** - * Required. The dataset that the table belongs to. - * - * Generated from protobuf field string dataset_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatasetId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_id = $var; - - return $this; - } - - /** - * Required. The table id. - * - * Generated from protobuf field string table_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * Required. The table id. - * - * Generated from protobuf field string table_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - - /** - * Optional. The schema of the datasource. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Schema|null - */ - public function getSchema() - { - return $this->schema; - } - - public function hasSchema() - { - return isset($this->schema); - } - - public function clearSchema() - { - unset($this->schema); - } - - /** - * Optional. The schema of the datasource. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Schema::class); - $this->schema = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryTableReferences.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryTableReferences.php deleted file mode 100644 index 1bcd78e05ae5..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/BigQueryTableReferences.php +++ /dev/null @@ -1,115 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.BigQueryTableReferences - */ -class BigQueryTableReferences extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. References to BigQuery tables. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference table_references = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $table_references; - /** - * Optional. Preview feature. References to BigQuery property graphs. - * Note: Data sources must exclusively use either tables or property graphs, - * not both. When using property graphs, a maximum of one graph reference is - * supported. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReference property_graph_references = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $property_graph_references; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference[] $table_references - * Optional. References to BigQuery tables. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference[] $property_graph_references - * Optional. Preview feature. References to BigQuery property graphs. - * Note: Data sources must exclusively use either tables or property graphs, - * not both. When using property graphs, a maximum of one graph reference is - * supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Optional. References to BigQuery tables. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference table_references = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference> - */ - public function getTableReferences() - { - return $this->table_references; - } - - /** - * Optional. References to BigQuery tables. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference table_references = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference[] $var - * @return $this - */ - public function setTableReferences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference::class); - $this->table_references = $arr; - - return $this; - } - - /** - * Optional. Preview feature. References to BigQuery property graphs. - * Note: Data sources must exclusively use either tables or property graphs, - * not both. When using property graphs, a maximum of one graph reference is - * supported. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReference property_graph_references = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference> - */ - public function getPropertyGraphReferences() - { - return $this->property_graph_references; - } - - /** - * Optional. Preview feature. References to BigQuery property graphs. - * Note: Data sources must exclusively use either tables or property graphs, - * not both. When using property graphs, a maximum of one graph reference is - * supported. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReference property_graph_references = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference[] $var - * @return $this - */ - public function setPropertyGraphReferences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference::class); - $this->property_graph_references = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Blob.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Blob.php deleted file mode 100644 index 663a7de8ea85..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Blob.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.Blob - */ -class Blob extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The IANA standard MIME type of the message data. - * - * Generated from protobuf field string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $mime_type = ''; - /** - * Required. The data represented as bytes. - * - * Generated from protobuf field bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $mime_type - * Required. The IANA standard MIME type of the message data. - * @type string $data - * Required. The data represented as bytes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The IANA standard MIME type of the message data. - * - * Generated from protobuf field string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * Required. The IANA standard MIME type of the message data. - * - * Generated from protobuf field string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - - /** - * Required. The data represented as bytes. - * - * Generated from protobuf field bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getData() - { - return $this->data; - } - - /** - * Required. The data represented as bytes. - * - * Generated from protobuf field bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setData($var) - { - GPBUtil::checkString($var, False); - $this->data = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartMessage.php deleted file mode 100644 index 47759cc581e6..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartMessage.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ChartMessage - */ -class ChartMessage extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ChartQuery $query - * A query for generating a chart. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ChartResult $result - * The result of a chart generation query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * A query for generating a chart. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartQuery query = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ChartQuery|null - */ - public function getQuery() - { - return $this->readOneof(1); - } - - public function hasQuery() - { - return $this->hasOneof(1); - } - - /** - * A query for generating a chart. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartQuery query = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ChartQuery $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChartQuery::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The result of a chart generation query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartResult result = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ChartResult|null - */ - public function getResult() - { - return $this->readOneof(2); - } - - public function hasResult() - { - return $this->hasOneof(2); - } - - /** - * The result of a chart generation query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartResult result = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ChartResult $var - * @return $this - */ - public function setResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChartResult::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions.php deleted file mode 100644 index cb66ad2b3ed5..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ChartOptions - */ -class ChartOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. When specified, the agent will render generated charts using the - * provided format. Defaults to no image. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions image = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $image = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions $image - * Optional. When specified, the agent will render generated charts using the - * provided format. Defaults to no image. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); - parent::__construct($data); - } - - /** - * Optional. When specified, the agent will render generated charts using the - * provided format. Defaults to no image. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions|null - */ - public function getImage() - { - return $this->image; - } - - public function hasImage() - { - return isset($this->image); - } - - public function clearImage() - { - unset($this->image); - } - - /** - * Optional. When specified, the agent will render generated charts using the - * provided format. Defaults to no image. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions::class); - $this->image = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions.php deleted file mode 100644 index 726eb5a22e21..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions - */ -class ImageOptions extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions\NoImage $no_image - * No image. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions\SvgOptions $svg - * SVG format. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); - parent::__construct($data); - } - - /** - * No image. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImage no_image = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions\NoImage|null - */ - public function getNoImage() - { - return $this->readOneof(1); - } - - public function hasNoImage() - { - return $this->hasOneof(1); - } - - /** - * No image. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImage no_image = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions\NoImage $var - * @return $this - */ - public function setNoImage($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions\NoImage::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * SVG format. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.SvgOptions svg = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions\SvgOptions|null - */ - public function getSvg() - { - return $this->readOneof(2); - } - - public function hasSvg() - { - return $this->hasOneof(2); - } - - /** - * SVG format. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.SvgOptions svg = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions\SvgOptions $var - * @return $this - */ - public function setSvg($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions\ImageOptions\SvgOptions::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions/NoImage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions/NoImage.php deleted file mode 100644 index 0aeb01e41cdf..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions/NoImage.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImage - */ -class NoImage extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions/SvgOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions/SvgOptions.php deleted file mode 100644 index ddb14ec7a43b..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartOptions/ImageOptions/SvgOptions.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.SvgOptions - */ -class SvgOptions extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartQuery.php deleted file mode 100644 index e0a8c4690112..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartQuery.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ChartQuery - */ -class ChartQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Natural language instructions for generating the chart. - * - * Generated from protobuf field string instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $instructions = ''; - /** - * Optional. The name of a previously retrieved data result to use in the - * chart. - * - * Generated from protobuf field string data_result_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $data_result_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $instructions - * Optional. Natural language instructions for generating the chart. - * @type string $data_result_name - * Optional. The name of a previously retrieved data result to use in the - * chart. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Natural language instructions for generating the chart. - * - * Generated from protobuf field string instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getInstructions() - { - return $this->instructions; - } - - /** - * Optional. Natural language instructions for generating the chart. - * - * Generated from protobuf field string instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setInstructions($var) - { - GPBUtil::checkString($var, True); - $this->instructions = $var; - - return $this; - } - - /** - * Optional. The name of a previously retrieved data result to use in the - * chart. - * - * Generated from protobuf field string data_result_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDataResultName() - { - return $this->data_result_name; - } - - /** - * Optional. The name of a previously retrieved data result to use in the - * chart. - * - * Generated from protobuf field string data_result_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDataResultName($var) - { - GPBUtil::checkString($var, True); - $this->data_result_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartResult.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartResult.php deleted file mode 100644 index fb40cd5844f8..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChartResult.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ChartResult - */ -class ChartResult extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A generated Vega chart config. - * See https://vega.github.io/vega/docs/config/ - * - * Generated from protobuf field .google.protobuf.Struct vega_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $vega_config = null; - /** - * Optional. A rendering of the chart if this was requested in the context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Blob image = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $image = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Struct $vega_config - * Optional. A generated Vega chart config. - * See https://vega.github.io/vega/docs/config/ - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Blob $image - * Optional. A rendering of the chart if this was requested in the context. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A generated Vega chart config. - * See https://vega.github.io/vega/docs/config/ - * - * Generated from protobuf field .google.protobuf.Struct vega_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Struct|null - */ - public function getVegaConfig() - { - return $this->vega_config; - } - - public function hasVegaConfig() - { - return isset($this->vega_config); - } - - public function clearVegaConfig() - { - unset($this->vega_config); - } - - /** - * Optional. A generated Vega chart config. - * See https://vega.github.io/vega/docs/config/ - * - * Generated from protobuf field .google.protobuf.Struct vega_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setVegaConfig($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->vega_config = $var; - - return $this; - } - - /** - * Optional. A rendering of the chart if this was requested in the context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Blob image = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Blob|null - */ - public function getImage() - { - return $this->image; - } - - public function hasImage() - { - return isset($this->image); - } - - public function clearImage() - { - unset($this->image); - } - - /** - * Optional. A rendering of the chart if this was requested in the context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Blob image = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Blob $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Blob::class); - $this->image = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest.php deleted file mode 100644 index 035f020fa760..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest.php +++ /dev/null @@ -1,498 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ChatRequest - */ -class ChatRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Deprecated: Use `parent` field instead. - * The Google Cloud project to be used for quota and billing. - * - * Generated from protobuf field string project = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @deprecated - */ - protected $project = ''; - /** - * Required. The parent value for chat request. - * Pattern: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Required. Content of current conversation. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Message messages = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $messages; - /** - * Optional. The credentials to use when calling the data source(s) specified - * in the context. - * This field can be used to provide credentials for various data sources. - * For example, when connecting to Looker, it currently supports both OAuth - * token and API key-based credentials, as described in - * [Authentication with an - * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $credentials = null; - /** - * Optional. The thinking mode to use for the agent loop. - * Defaults to THINKING_MODE_UNSPECIFIED if not specified. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChatRequest.ThinkingMode thinking_mode = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $thinking_mode = 0; - /** - * Optional. The model to use for the agent loop when processing the request. - * This setting only has an effect when context.options.model is not set. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChatRequest.Model model = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $model = 0; - protected $context_provider; - protected $datasource_settings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Context $inline_context - * Optional. Inline context for the chat request. Use this to chat - * statelessly (without managed conversation persistence and without an - * Agent) by passing all context inline. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationReference $conversation_reference - * Optional. Reference to a persisted conversation and agent context. - * Use this to chat with an Agent using managed conversation persistence. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgentContext $data_agent_context - * Optional. Context for the chat request. Use this to chat with an Agent - * statelessly, without managed conversation persistence. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ClientManagedResourceContext $client_managed_resource_context - * Optional. Context with client managed resources. - * Some clients may not use GDA managed resources including - * conversations and agents, instead they create and manage their own - * conversations and agents resources. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerSettings $looker_settings - * Optional. Looker specific settings. - * @type string $project - * Optional. Deprecated: Use `parent` field instead. - * The Google Cloud project to be used for quota and billing. - * @type string $parent - * Required. The parent value for chat request. - * Pattern: `projects/{project}/locations/{location}` - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Message[] $messages - * Required. Content of current conversation. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials $credentials - * Optional. The credentials to use when calling the data source(s) specified - * in the context. - * This field can be used to provide credentials for various data sources. - * For example, when connecting to Looker, it currently supports both OAuth - * token and API key-based credentials, as described in - * [Authentication with an - * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). - * @type int $thinking_mode - * Optional. The thinking mode to use for the agent loop. - * Defaults to THINKING_MODE_UNSPECIFIED if not specified. - * @type int $model - * Optional. The model to use for the agent loop when processing the request. - * This setting only has an effect when context.options.model is not set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Inline context for the chat request. Use this to chat - * statelessly (without managed conversation persistence and without an - * Agent) by passing all context inline. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context inline_context = 101 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Context|null - */ - public function getInlineContext() - { - return $this->readOneof(101); - } - - public function hasInlineContext() - { - return $this->hasOneof(101); - } - - /** - * Optional. Inline context for the chat request. Use this to chat - * statelessly (without managed conversation persistence and without an - * Agent) by passing all context inline. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context inline_context = 101 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Context $var - * @return $this - */ - public function setInlineContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Context::class); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * Optional. Reference to a persisted conversation and agent context. - * Use this to chat with an Agent using managed conversation persistence. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ConversationReference conversation_reference = 103 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationReference|null - */ - public function getConversationReference() - { - return $this->readOneof(103); - } - - public function hasConversationReference() - { - return $this->hasOneof(103); - } - - /** - * Optional. Reference to a persisted conversation and agent context. - * Use this to chat with an Agent using managed conversation persistence. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ConversationReference conversation_reference = 103 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationReference $var - * @return $this - */ - public function setConversationReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationReference::class); - $this->writeOneof(103, $var); - - return $this; - } - - /** - * Optional. Context for the chat request. Use this to chat with an Agent - * statelessly, without managed conversation persistence. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 104 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgentContext|null - */ - public function getDataAgentContext() - { - return $this->readOneof(104); - } - - public function hasDataAgentContext() - { - return $this->hasOneof(104); - } - - /** - * Optional. Context for the chat request. Use this to chat with an Agent - * statelessly, without managed conversation persistence. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 104 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgentContext $var - * @return $this - */ - public function setDataAgentContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgentContext::class); - $this->writeOneof(104, $var); - - return $this; - } - - /** - * Optional. Context with client managed resources. - * Some clients may not use GDA managed resources including - * conversations and agents, instead they create and manage their own - * conversations and agents resources. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ClientManagedResourceContext|null - */ - public function getClientManagedResourceContext() - { - return $this->readOneof(105); - } - - public function hasClientManagedResourceContext() - { - return $this->hasOneof(105); - } - - /** - * Optional. Context with client managed resources. - * Some clients may not use GDA managed resources including - * conversations and agents, instead they create and manage their own - * conversations and agents resources. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ClientManagedResourceContext $var - * @return $this - */ - public function setClientManagedResourceContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ClientManagedResourceContext::class); - $this->writeOneof(105, $var); - - return $this; - } - - /** - * Optional. Looker specific settings. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerSettings looker_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\LookerSettings|null - */ - public function getLookerSettings() - { - return $this->readOneof(13); - } - - public function hasLookerSettings() - { - return $this->hasOneof(13); - } - - /** - * Optional. Looker specific settings. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerSettings looker_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerSettings $var - * @return $this - */ - public function setLookerSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerSettings::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Optional. Deprecated: Use `parent` field instead. - * The Google Cloud project to be used for quota and billing. - * - * Generated from protobuf field string project = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - * @deprecated - */ - public function getProject() - { - if ($this->project !== '') { - @trigger_error('project is deprecated.', E_USER_DEPRECATED); - } - return $this->project; - } - - /** - * Optional. Deprecated: Use `parent` field instead. - * The Google Cloud project to be used for quota and billing. - * - * Generated from protobuf field string project = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - * @deprecated - */ - public function setProject($var) - { - @trigger_error('project is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * Required. The parent value for chat request. - * Pattern: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent value for chat request. - * Pattern: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Content of current conversation. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Message messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\Message> - */ - public function getMessages() - { - return $this->messages; - } - - /** - * Required. Content of current conversation. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Message messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Message[] $var - * @return $this - */ - public function setMessages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\Message::class); - $this->messages = $arr; - - return $this; - } - - /** - * Optional. The credentials to use when calling the data source(s) specified - * in the context. - * This field can be used to provide credentials for various data sources. - * For example, when connecting to Looker, it currently supports both OAuth - * token and API key-based credentials, as described in - * [Authentication with an - * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials|null - */ - public function getCredentials() - { - return $this->credentials; - } - - public function hasCredentials() - { - return isset($this->credentials); - } - - public function clearCredentials() - { - unset($this->credentials); - } - - /** - * Optional. The credentials to use when calling the data source(s) specified - * in the context. - * This field can be used to provide credentials for various data sources. - * For example, when connecting to Looker, it currently supports both OAuth - * token and API key-based credentials, as described in - * [Authentication with an - * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials $var - * @return $this - */ - public function setCredentials($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials::class); - $this->credentials = $var; - - return $this; - } - - /** - * Optional. The thinking mode to use for the agent loop. - * Defaults to THINKING_MODE_UNSPECIFIED if not specified. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChatRequest.ThinkingMode thinking_mode = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getThinkingMode() - { - return $this->thinking_mode; - } - - /** - * Optional. The thinking mode to use for the agent loop. - * Defaults to THINKING_MODE_UNSPECIFIED if not specified. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChatRequest.ThinkingMode thinking_mode = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setThinkingMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChatRequest\ThinkingMode::class); - $this->thinking_mode = $var; - - return $this; - } - - /** - * Optional. The model to use for the agent loop when processing the request. - * This setting only has an effect when context.options.model is not set. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChatRequest.Model model = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getModel() - { - return $this->model; - } - - /** - * Optional. The model to use for the agent loop when processing the request. - * This setting only has an effect when context.options.model is not set. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChatRequest.Model model = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setModel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChatRequest\Model::class); - $this->model = $var; - - return $this; - } - - /** - * @return string - */ - public function getContextProvider() - { - return $this->whichOneof("context_provider"); - } - - /** - * @return string - */ - public function getDatasourceSettings() - { - return $this->whichOneof("datasource_settings"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest/ThinkingMode.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest/ThinkingMode.php deleted file mode 100644 index 4509217a99cd..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ChatRequest/ThinkingMode.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ChatRequest.ThinkingMode - */ -class ThinkingMode -{ - /** - * Unspecified thinking mode, agent will use THINKING mode by default. - * - * Generated from protobuf enum THINKING_MODE_UNSPECIFIED = 0; - */ - const THINKING_MODE_UNSPECIFIED = 0; - /** - * Fast mode, answers quickly. - * - * Generated from protobuf enum FAST = 1; - */ - const FAST = 1; - /** - * Thinking mode, solves complex problems. - * - * Generated from protobuf enum THINKING = 2; - */ - const THINKING = 2; - - private static $valueToName = [ - self::THINKING_MODE_UNSPECIFIED => 'THINKING_MODE_UNSPECIFIED', - self::FAST => 'FAST', - self::THINKING => 'THINKING', - ]; - - 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationMessage.php deleted file mode 100644 index cef13305b11f..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationMessage.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ClarificationMessage - */ -class ClarificationMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Deprecated: The parent message is deprecated. - * A batch of clarification questions to ask the user. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated - */ - private $questions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationQuestion[] $questions - * Required. Deprecated: The parent message is deprecated. - * A batch of clarification questions to ask the user. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Deprecated: The parent message is deprecated. - * A batch of clarification questions to ask the user. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationQuestion> - * @deprecated - */ - public function getQuestions() - { - if ($this->questions->count() !== 0) { - @trigger_error('questions is deprecated.', E_USER_DEPRECATED); - } - return $this->questions; - } - - /** - * Required. Deprecated: The parent message is deprecated. - * A batch of clarification questions to ask the user. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationQuestion[] $var - * @return $this - * @deprecated - */ - public function setQuestions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationQuestion::class); - if ($arr->count() !== 0) { - @trigger_error('questions is deprecated.', E_USER_DEPRECATED); - } - $this->questions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion.php deleted file mode 100644 index 0609695347c0..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ClarificationQuestion - */ -class ClarificationQuestion extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Deprecated: The parent message is deprecated. - * The natural language question to ask the user. - * - * Generated from protobuf field string question = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated - */ - protected $question = ''; - /** - * Required. Deprecated: The parent message is deprecated. - * The selection mode for this question. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated - */ - protected $selection_mode = 0; - /** - * Required. Deprecated: The parent message is deprecated. - * A list of distinct options for the user to choose from. - * The number of options is limited to a maximum of 5. - * - * Generated from protobuf field repeated string options = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated - */ - private $options; - /** - * Optional. Deprecated: The parent message is deprecated. - * The type of clarification question. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated - */ - protected $clarification_question_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $question - * Required. Deprecated: The parent message is deprecated. - * The natural language question to ask the user. - * @type int $selection_mode - * Required. Deprecated: The parent message is deprecated. - * The selection mode for this question. - * @type string[] $options - * Required. Deprecated: The parent message is deprecated. - * A list of distinct options for the user to choose from. - * The number of options is limited to a maximum of 5. - * @type int $clarification_question_type - * Optional. Deprecated: The parent message is deprecated. - * The type of clarification question. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Deprecated: The parent message is deprecated. - * The natural language question to ask the user. - * - * Generated from protobuf field string question = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @return string - * @deprecated - */ - public function getQuestion() - { - if ($this->question !== '') { - @trigger_error('question is deprecated.', E_USER_DEPRECATED); - } - return $this->question; - } - - /** - * Required. Deprecated: The parent message is deprecated. - * The natural language question to ask the user. - * - * Generated from protobuf field string question = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - * @deprecated - */ - public function setQuestion($var) - { - @trigger_error('question is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->question = $var; - - return $this; - } - - /** - * Required. Deprecated: The parent message is deprecated. - * The selection mode for this question. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @return int - * @deprecated - */ - public function getSelectionMode() - { - if ($this->selection_mode !== 0) { - @trigger_error('selection_mode is deprecated.', E_USER_DEPRECATED); - } - return $this->selection_mode; - } - - /** - * Required. Deprecated: The parent message is deprecated. - * The selection mode for this question. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - * @deprecated - */ - public function setSelectionMode($var) - { - @trigger_error('selection_mode is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationQuestion\SelectionMode::class); - $this->selection_mode = $var; - - return $this; - } - - /** - * Required. Deprecated: The parent message is deprecated. - * A list of distinct options for the user to choose from. - * The number of options is limited to a maximum of 5. - * - * Generated from protobuf field repeated string options = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField - * @deprecated - */ - public function getOptions() - { - if ($this->options->count() !== 0) { - @trigger_error('options is deprecated.', E_USER_DEPRECATED); - } - return $this->options; - } - - /** - * Required. Deprecated: The parent message is deprecated. - * A list of distinct options for the user to choose from. - * The number of options is limited to a maximum of 5. - * - * Generated from protobuf field repeated string options = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @param string[] $var - * @return $this - * @deprecated - */ - public function setOptions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - if ($arr->count() !== 0) { - @trigger_error('options is deprecated.', E_USER_DEPRECATED); - } - $this->options = $arr; - - return $this; - } - - /** - * Optional. Deprecated: The parent message is deprecated. - * The type of clarification question. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @return int - * @deprecated - */ - public function getClarificationQuestionType() - { - if ($this->clarification_question_type !== 0) { - @trigger_error('clarification_question_type is deprecated.', E_USER_DEPRECATED); - } - return $this->clarification_question_type; - } - - /** - * Optional. Deprecated: The parent message is deprecated. - * The type of clarification question. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - * @deprecated - */ - public function setClarificationQuestionType($var) - { - @trigger_error('clarification_question_type is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationQuestion\ClarificationQuestionType::class); - $this->clarification_question_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion/ClarificationQuestionType.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion/ClarificationQuestionType.php deleted file mode 100644 index f0d80de24953..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion/ClarificationQuestionType.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType - */ -class ClarificationQuestionType -{ - /** - * Deprecated: The parent message is deprecated. - * Unspecified clarification question type. - * - * Generated from protobuf enum CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0 [deprecated = true]; - */ - const CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0; - /** - * Deprecated: The parent message is deprecated. - * The clarification question is for filter values. - * - * Generated from protobuf enum FILTER_VALUES = 1 [deprecated = true]; - */ - const FILTER_VALUES = 1; - /** - * Deprecated: The parent message is deprecated. - * The clarification question is for data fields. This is a generic term - * encompassing SQL columns, Looker fields (dimensions/measures), or - * nested data structure properties. - * - * Generated from protobuf enum FIELDS = 2 [deprecated = true]; - */ - const FIELDS = 2; - - private static $valueToName = [ - self::CLARIFICATION_QUESTION_TYPE_UNSPECIFIED => 'CLARIFICATION_QUESTION_TYPE_UNSPECIFIED', - self::FILTER_VALUES => 'FILTER_VALUES', - self::FIELDS => 'FIELDS', - ]; - - 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion/SelectionMode.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion/SelectionMode.php deleted file mode 100644 index 31c4f4e53289..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClarificationQuestion/SelectionMode.php +++ /dev/null @@ -1,66 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode - */ -class SelectionMode -{ - /** - * Deprecated: The parent message is deprecated. - * Unspecified selection mode. - * - * Generated from protobuf enum SELECTION_MODE_UNSPECIFIED = 0 [deprecated = true]; - */ - const SELECTION_MODE_UNSPECIFIED = 0; - /** - * Deprecated: The parent message is deprecated. - * The user can select only one option. - * - * Generated from protobuf enum SINGLE_SELECT = 1 [deprecated = true]; - */ - const SINGLE_SELECT = 1; - /** - * Deprecated: The parent message is deprecated. - * The user can select multiple options. - * - * Generated from protobuf enum MULTI_SELECT = 2 [deprecated = true]; - */ - const MULTI_SELECT = 2; - - private static $valueToName = [ - self::SELECTION_MODE_UNSPECIFIED => 'SELECTION_MODE_UNSPECIFIED', - self::SINGLE_SELECT => 'SINGLE_SELECT', - self::MULTI_SELECT => 'MULTI_SELECT', - ]; - - 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClientManagedResourceContext.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClientManagedResourceContext.php deleted file mode 100644 index c4ea48de3783..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ClientManagedResourceContext.php +++ /dev/null @@ -1,152 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext - */ -class ClientManagedResourceContext extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Context for the chat request. Use this to chat without GDA API - * managed conversation and agent persistence by passing all context inline. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $inline_context = null; - /** - * Optional. The client managed conversation id. - * - * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $conversation_id = ''; - /** - * Optional. The client managed agent id. - * - * Generated from protobuf field string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $agent_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Context $inline_context - * Required. Context for the chat request. Use this to chat without GDA API - * managed conversation and agent persistence by passing all context inline. - * @type string $conversation_id - * Optional. The client managed conversation id. - * @type string $agent_id - * Optional. The client managed agent id. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Context for the chat request. Use this to chat without GDA API - * managed conversation and agent persistence by passing all context inline. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Context|null - */ - public function getInlineContext() - { - return $this->inline_context; - } - - public function hasInlineContext() - { - return isset($this->inline_context); - } - - public function clearInlineContext() - { - unset($this->inline_context); - } - - /** - * Required. Context for the chat request. Use this to chat without GDA API - * managed conversation and agent persistence by passing all context inline. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Context $var - * @return $this - */ - public function setInlineContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Context::class); - $this->inline_context = $var; - - return $this; - } - - /** - * Optional. The client managed conversation id. - * - * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getConversationId() - { - return $this->conversation_id; - } - - /** - * Optional. The client managed conversation id. - * - * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setConversationId($var) - { - GPBUtil::checkString($var, True); - $this->conversation_id = $var; - - return $this; - } - - /** - * Optional. The client managed agent id. - * - * Generated from protobuf field string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAgentId() - { - return $this->agent_id; - } - - /** - * Optional. The client managed agent id. - * - * Generated from protobuf field string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAgentId($var) - { - GPBUtil::checkString($var, True); - $this->agent_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlDatabaseReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlDatabaseReference.php deleted file mode 100644 index 121a147ec7d8..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlDatabaseReference.php +++ /dev/null @@ -1,279 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference - */ -class CloudSqlDatabaseReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The engine of the Cloud SQL instance. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $engine = 0; - /** - * Required. The project the instance belongs to. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * Required. The region of the instance. - * - * Generated from protobuf field string region = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $region = ''; - /** - * Required. The instance id. - * - * Generated from protobuf field string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance_id = ''; - /** - * Required. The database id. - * - * Generated from protobuf field string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database_id = ''; - /** - * Optional. The table ids. Denotes all tables if unset. - * - * Generated from protobuf field repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $table_ids; - /** - * Optional. References to tables within the database. Each reference - * specifies a table and can optionally include the table's schema to provide - * context for the query. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $database_table_references; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $engine - * Required. The engine of the Cloud SQL instance. - * @type string $project_id - * Required. The project the instance belongs to. - * @type string $region - * Required. The region of the instance. - * @type string $instance_id - * Required. The instance id. - * @type string $database_id - * Required. The database id. - * @type string[] $table_ids - * Optional. The table ids. Denotes all tables if unset. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference[] $database_table_references - * Optional. References to tables within the database. Each reference - * specifies a table and can optionally include the table's schema to provide - * context for the query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Required. The engine of the Cloud SQL instance. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getEngine() - { - return $this->engine; - } - - /** - * Required. The engine of the Cloud SQL instance. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setEngine($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlDatabaseReference\Engine::class); - $this->engine = $var; - - return $this; - } - - /** - * Required. The project the instance belongs to. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The project the instance belongs to. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The region of the instance. - * - * Generated from protobuf field string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * Required. The region of the instance. - * - * Generated from protobuf field string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - - /** - * Required. The instance id. - * - * Generated from protobuf field string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getInstanceId() - { - return $this->instance_id; - } - - /** - * Required. The instance id. - * - * Generated from protobuf field string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setInstanceId($var) - { - GPBUtil::checkString($var, True); - $this->instance_id = $var; - - return $this; - } - - /** - * Required. The database id. - * - * Generated from protobuf field string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatabaseId() - { - return $this->database_id; - } - - /** - * Required. The database id. - * - * Generated from protobuf field string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatabaseId($var) - { - GPBUtil::checkString($var, True); - $this->database_id = $var; - - return $this; - } - - /** - * Optional. The table ids. Denotes all tables if unset. - * - * Generated from protobuf field repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getTableIds() - { - return $this->table_ids; - } - - /** - * Optional. The table ids. Denotes all tables if unset. - * - * Generated from protobuf field repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setTableIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->table_ids = $arr; - - return $this; - } - - /** - * Optional. References to tables within the database. Each reference - * specifies a table and can optionally include the table's schema to provide - * context for the query. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference> - */ - public function getDatabaseTableReferences() - { - return $this->database_table_references; - } - - /** - * Optional. References to tables within the database. Each reference - * specifies a table and can optionally include the table's schema to provide - * context for the query. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference[] $var - * @return $this - */ - public function setDatabaseTableReferences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference::class); - $this->database_table_references = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlDatabaseReference/Engine.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlDatabaseReference/Engine.php deleted file mode 100644 index e0e50ceda07d..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlDatabaseReference/Engine.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine - */ -class Engine -{ - /** - * Engine is not specified. - * - * Generated from protobuf enum ENGINE_UNSPECIFIED = 0; - */ - const ENGINE_UNSPECIFIED = 0; - /** - * PostgreSQL - * - * Generated from protobuf enum POSTGRESQL = 1; - */ - const POSTGRESQL = 1; - /** - * MySQL - * - * Generated from protobuf enum MYSQL = 2; - */ - const MYSQL = 2; - - private static $valueToName = [ - self::ENGINE_UNSPECIFIED => 'ENGINE_UNSPECIFIED', - self::POSTGRESQL => 'POSTGRESQL', - self::MYSQL => 'MYSQL', - ]; - - 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlReference.php deleted file mode 100644 index c0687a1f27f3..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CloudSqlReference.php +++ /dev/null @@ -1,126 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.CloudSqlReference - */ -class CloudSqlReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Singular proto that supports specifying which database and tables - * to include. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database_reference = null; - /** - * Optional. Parameters for retrieving data from Agent Context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $agent_context_reference = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlDatabaseReference $database_reference - * Required. Singular proto that supports specifying which database and tables - * to include. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference $agent_context_reference - * Optional. Parameters for retrieving data from Agent Context. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Required. Singular proto that supports specifying which database and tables - * to include. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlDatabaseReference|null - */ - public function getDatabaseReference() - { - return $this->database_reference; - } - - public function hasDatabaseReference() - { - return isset($this->database_reference); - } - - public function clearDatabaseReference() - { - unset($this->database_reference); - } - - /** - * Required. Singular proto that supports specifying which database and tables - * to include. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlDatabaseReference $var - * @return $this - */ - public function setDatabaseReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlDatabaseReference::class); - $this->database_reference = $var; - - return $this; - } - - /** - * Optional. Parameters for retrieving data from Agent Context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference|null - */ - public function getAgentContextReference() - { - return $this->agent_context_reference; - } - - public function hasAgentContextReference() - { - return isset($this->agent_context_reference); - } - - public function clearAgentContextReference() - { - unset($this->agent_context_reference); - } - - /** - * Optional. Parameters for retrieving data from Agent Context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference $var - * @return $this - */ - public function setAgentContextReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference::class); - $this->agent_context_reference = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context.php deleted file mode 100644 index 7c639c3b017a..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context.php +++ /dev/null @@ -1,379 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.Context - */ -class Context extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The basic entry point for data owners creating domain knowledge - * for Agent. - * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age - * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) - * can help the model understand the business context around a user question. - * - * Generated from protobuf field string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $system_instruction = ''; - /** - * Required. Data sources that are available for answering the question. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $datasource_references = null; - /** - * Optional. Additional options for the conversation. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $options = null; - /** - * Optional. A list of example queries, providing examples of relevant and - * commonly used SQL queries and their corresponding natural language queries - * optionally present. Currently only used for BigQuery data sources and - * databases (alloydb, cloudsql, spanner) data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $example_queries; - /** - * Optional. A list of golden queries, providing examples of relevant and - * commonly used Looker queries and their corresponding natural language - * queries optionally present. Only supported for Looker data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerGoldenQuery looker_golden_queries = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $looker_golden_queries; - /** - * Optional. Term definitions (currently, only user authored) - * Not supported for databases (alloydb, cloudsql, spanner) data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $glossary_terms; - /** - * Optional. Relationships between table schema, including referencing and - * referenced columns. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $schema_relationships; - /** - * Optional. A collection of user functions to be included in context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.UserFunctions user_functions = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $user_functions = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $system_instruction - * Optional. The basic entry point for data owners creating domain knowledge - * for Agent. - * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age - * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) - * can help the model understand the business context around a user question. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceReferences $datasource_references - * Required. Data sources that are available for answering the question. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationOptions $options - * Optional. Additional options for the conversation. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery[] $example_queries - * Optional. A list of example queries, providing examples of relevant and - * commonly used SQL queries and their corresponding natural language queries - * optionally present. Currently only used for BigQuery data sources and - * databases (alloydb, cloudsql, spanner) data sources. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerGoldenQuery[] $looker_golden_queries - * Optional. A list of golden queries, providing examples of relevant and - * commonly used Looker queries and their corresponding natural language - * queries optionally present. Only supported for Looker data sources. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\GlossaryTerm[] $glossary_terms - * Optional. Term definitions (currently, only user authored) - * Not supported for databases (alloydb, cloudsql, spanner) data sources. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship[] $schema_relationships - * Optional. Relationships between table schema, including referencing and - * referenced columns. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\UserFunctions $user_functions - * Optional. A collection of user functions to be included in context. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The basic entry point for data owners creating domain knowledge - * for Agent. - * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age - * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) - * can help the model understand the business context around a user question. - * - * Generated from protobuf field string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSystemInstruction() - { - return $this->system_instruction; - } - - /** - * Optional. The basic entry point for data owners creating domain knowledge - * for Agent. - * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age - * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) - * can help the model understand the business context around a user question. - * - * Generated from protobuf field string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSystemInstruction($var) - { - GPBUtil::checkString($var, True); - $this->system_instruction = $var; - - return $this; - } - - /** - * Required. Data sources that are available for answering the question. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceReferences|null - */ - public function getDatasourceReferences() - { - return $this->datasource_references; - } - - public function hasDatasourceReferences() - { - return isset($this->datasource_references); - } - - public function clearDatasourceReferences() - { - unset($this->datasource_references); - } - - /** - * Required. Data sources that are available for answering the question. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceReferences $var - * @return $this - */ - public function setDatasourceReferences($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceReferences::class); - $this->datasource_references = $var; - - return $this; - } - - /** - * Optional. Additional options for the conversation. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationOptions|null - */ - public function getOptions() - { - return $this->options; - } - - public function hasOptions() - { - return isset($this->options); - } - - public function clearOptions() - { - unset($this->options); - } - - /** - * Optional. Additional options for the conversation. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationOptions $var - * @return $this - */ - public function setOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationOptions::class); - $this->options = $var; - - return $this; - } - - /** - * Optional. A list of example queries, providing examples of relevant and - * commonly used SQL queries and their corresponding natural language queries - * optionally present. Currently only used for BigQuery data sources and - * databases (alloydb, cloudsql, spanner) data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery> - */ - public function getExampleQueries() - { - return $this->example_queries; - } - - /** - * Optional. A list of example queries, providing examples of relevant and - * commonly used SQL queries and their corresponding natural language queries - * optionally present. Currently only used for BigQuery data sources and - * databases (alloydb, cloudsql, spanner) data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery[] $var - * @return $this - */ - public function setExampleQueries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery::class); - $this->example_queries = $arr; - - return $this; - } - - /** - * Optional. A list of golden queries, providing examples of relevant and - * commonly used Looker queries and their corresponding natural language - * queries optionally present. Only supported for Looker data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerGoldenQuery looker_golden_queries = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\LookerGoldenQuery> - */ - public function getLookerGoldenQueries() - { - return $this->looker_golden_queries; - } - - /** - * Optional. A list of golden queries, providing examples of relevant and - * commonly used Looker queries and their corresponding natural language - * queries optionally present. Only supported for Looker data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerGoldenQuery looker_golden_queries = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerGoldenQuery[] $var - * @return $this - */ - public function setLookerGoldenQueries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerGoldenQuery::class); - $this->looker_golden_queries = $arr; - - return $this; - } - - /** - * Optional. Term definitions (currently, only user authored) - * Not supported for databases (alloydb, cloudsql, spanner) data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\GlossaryTerm> - */ - public function getGlossaryTerms() - { - return $this->glossary_terms; - } - - /** - * Optional. Term definitions (currently, only user authored) - * Not supported for databases (alloydb, cloudsql, spanner) data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\GlossaryTerm[] $var - * @return $this - */ - public function setGlossaryTerms($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\GlossaryTerm::class); - $this->glossary_terms = $arr; - - return $this; - } - - /** - * Optional. Relationships between table schema, including referencing and - * referenced columns. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship> - */ - public function getSchemaRelationships() - { - return $this->schema_relationships; - } - - /** - * Optional. Relationships between table schema, including referencing and - * referenced columns. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship[] $var - * @return $this - */ - public function setSchemaRelationships($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship::class); - $this->schema_relationships = $arr; - - return $this; - } - - /** - * Optional. A collection of user functions to be included in context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.UserFunctions user_functions = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\UserFunctions|null - */ - public function getUserFunctions() - { - return $this->user_functions; - } - - public function hasUserFunctions() - { - return isset($this->user_functions); - } - - public function clearUserFunctions() - { - unset($this->user_functions); - } - - /** - * Optional. A collection of user functions to be included in context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.UserFunctions user_functions = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\UserFunctions $var - * @return $this - */ - public function setUserFunctions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\UserFunctions::class); - $this->user_functions = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship.php deleted file mode 100644 index 91d7350cd5f2..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship.php +++ /dev/null @@ -1,219 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship - */ -class SchemaRelationship extends \Google\Protobuf\Internal\Message -{ - /** - * An ordered list of fields for the join from the first table. - * The size of this list must be the same as `right_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `right_schema_paths` list. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; - */ - protected $left_schema_paths = null; - /** - * An ordered list of fields for the join from the second table. - * The size of this list must be the same as `left_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `left_schema_paths` list. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; - */ - protected $right_schema_paths = null; - /** - * Optional. Sources which generated the schema relation edge. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $sources; - /** - * Optional. A confidence score for the suggested relationship. - * Manually added edges have the highest confidence score. - * - * Generated from protobuf field float confidence_score = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $confidence_score = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship\SchemaPaths $left_schema_paths - * An ordered list of fields for the join from the first table. - * The size of this list must be the same as `right_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `right_schema_paths` list. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship\SchemaPaths $right_schema_paths - * An ordered list of fields for the join from the second table. - * The size of this list must be the same as `left_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `left_schema_paths` list. - * @type int[] $sources - * Optional. Sources which generated the schema relation edge. - * @type float $confidence_score - * Optional. A confidence score for the suggested relationship. - * Manually added edges have the highest confidence score. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); - parent::__construct($data); - } - - /** - * An ordered list of fields for the join from the first table. - * The size of this list must be the same as `right_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `right_schema_paths` list. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship\SchemaPaths|null - */ - public function getLeftSchemaPaths() - { - return $this->left_schema_paths; - } - - public function hasLeftSchemaPaths() - { - return isset($this->left_schema_paths); - } - - public function clearLeftSchemaPaths() - { - unset($this->left_schema_paths); - } - - /** - * An ordered list of fields for the join from the first table. - * The size of this list must be the same as `right_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `right_schema_paths` list. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship\SchemaPaths $var - * @return $this - */ - public function setLeftSchemaPaths($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship\SchemaPaths::class); - $this->left_schema_paths = $var; - - return $this; - } - - /** - * An ordered list of fields for the join from the second table. - * The size of this list must be the same as `left_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `left_schema_paths` list. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship\SchemaPaths|null - */ - public function getRightSchemaPaths() - { - return $this->right_schema_paths; - } - - public function hasRightSchemaPaths() - { - return isset($this->right_schema_paths); - } - - public function clearRightSchemaPaths() - { - unset($this->right_schema_paths); - } - - /** - * An ordered list of fields for the join from the second table. - * The size of this list must be the same as `left_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `left_schema_paths` list. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship\SchemaPaths $var - * @return $this - */ - public function setRightSchemaPaths($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship\SchemaPaths::class); - $this->right_schema_paths = $var; - - return $this; - } - - /** - * Optional. Sources which generated the schema relation edge. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getSources() - { - return $this->sources; - } - - /** - * Optional. Sources which generated the schema relation edge. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int[] $var - * @return $this - */ - public function setSources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\GeminiDataAnalytics\V1beta\Context\SchemaRelationship\Source::class); - $this->sources = $arr; - - return $this; - } - - /** - * Optional. A confidence score for the suggested relationship. - * Manually added edges have the highest confidence score. - * - * Generated from protobuf field float confidence_score = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getConfidenceScore() - { - return $this->confidence_score; - } - - /** - * Optional. A confidence score for the suggested relationship. - * Manually added edges have the highest confidence score. - * - * Generated from protobuf field float confidence_score = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setConfidenceScore($var) - { - GPBUtil::checkFloat($var); - $this->confidence_score = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship/SchemaPaths.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship/SchemaPaths.php deleted file mode 100644 index 896ef64e7ad5..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship/SchemaPaths.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths - */ -class SchemaPaths extends \Google\Protobuf\Internal\Message -{ - /** - * The service-qualified full resource name of the table - * Ex: - * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * - * Generated from protobuf field string table_fqn = 1; - */ - protected $table_fqn = ''; - /** - * The ordered list of paths within the table schema. - * - * Generated from protobuf field repeated string paths = 2; - */ - private $paths; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $table_fqn - * The service-qualified full resource name of the table - * Ex: - * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * @type string[] $paths - * The ordered list of paths within the table schema. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); - parent::__construct($data); - } - - /** - * The service-qualified full resource name of the table - * Ex: - * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * - * Generated from protobuf field string table_fqn = 1; - * @return string - */ - public function getTableFqn() - { - return $this->table_fqn; - } - - /** - * The service-qualified full resource name of the table - * Ex: - * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * - * Generated from protobuf field string table_fqn = 1; - * @param string $var - * @return $this - */ - public function setTableFqn($var) - { - GPBUtil::checkString($var, True); - $this->table_fqn = $var; - - return $this; - } - - /** - * The ordered list of paths within the table schema. - * - * Generated from protobuf field repeated string paths = 2; - * @return RepeatedField - */ - public function getPaths() - { - return $this->paths; - } - - /** - * The ordered list of paths within the table schema. - * - * Generated from protobuf field repeated string paths = 2; - * @param string[] $var - * @return $this - */ - public function setPaths($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->paths = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship/Source.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship/Source.php deleted file mode 100644 index 4372bcc74fc5..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Context/SchemaRelationship/Source.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source - */ -class Source -{ - /** - * The source of the schema relationship is unspecified. - * - * Generated from protobuf enum SOURCE_UNSPECIFIED = 0; - */ - const SOURCE_UNSPECIFIED = 0; - /** - * The source of the schema relationship is BigQuery job history. - * - * Generated from protobuf enum BIGQUERY_JOB_HISTORY = 1; - */ - const BIGQUERY_JOB_HISTORY = 1; - /** - * The source of the schema relationship is LLM suggested. - * - * Generated from protobuf enum LLM_SUGGESTED = 2; - */ - const LLM_SUGGESTED = 2; - /** - * The source of the schema relationship is BigQuery table constraints. - * - * Generated from protobuf enum BIGQUERY_TABLE_CONSTRAINTS = 3; - */ - const BIGQUERY_TABLE_CONSTRAINTS = 3; - - private static $valueToName = [ - self::SOURCE_UNSPECIFIED => 'SOURCE_UNSPECIFIED', - self::BIGQUERY_JOB_HISTORY => 'BIGQUERY_JOB_HISTORY', - self::LLM_SUGGESTED => 'LLM_SUGGESTED', - self::BIGQUERY_TABLE_CONSTRAINTS => 'BIGQUERY_TABLE_CONSTRAINTS', - ]; - - 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Conversation.php deleted file mode 100644 index 7998a3c31727..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Conversation.php +++ /dev/null @@ -1,383 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.Conversation - */ -class Conversation extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Identifier. The unique resource name of a conversation. Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * `{conversation_id}` is the resource id and should be 63 characters or less - * and must match the format described in - * https://google.aip.dev/122#resource-id-segments - * Example: - * `projects/1234567890/locations/global/conversations/my-conversation`. - * It is recommended to skip setting this field during conversation creation - * as it will be inferred automatically and overwritten with the - * {parent}/conversations/{conversation_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. Agent(s) in the conversation. - * Currently, only one agent is supported. This field is repeated to allow - * for future support of multiple agents in a conversation. - * Format: `projects/{project}/locations/{location}/dataAgents/{agent}` - * - * Generated from protobuf field repeated string agents = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $agents; - /** - * Output only. Creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Timestamp of the last used conversation. - * - * Generated from protobuf field .google.protobuf.Timestamp last_used_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_used_time = null; - /** - * Optional. Open-ended and user-defined labels that can be set by the client - * to tag a conversation (e.g. to filter conversations for specific - * surfaces/products). - * - * Generated from protobuf field map labels = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Customer managed encryption key (CMEK) to use for encrypting the - * Conversation resources. Encryption will happen at Titan layer, we will pass - * the KMS key to Titan. - * Format: - * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. - * - * Generated from protobuf field optional string kms_key = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $kms_key = null; - /** - * Optional. Whether memory is paused for this conversation. - * - * Generated from protobuf field optional bool memory_paused = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $memory_paused = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Optional. Identifier. The unique resource name of a conversation. Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * `{conversation_id}` is the resource id and should be 63 characters or less - * and must match the format described in - * https://google.aip.dev/122#resource-id-segments - * Example: - * `projects/1234567890/locations/global/conversations/my-conversation`. - * It is recommended to skip setting this field during conversation creation - * as it will be inferred automatically and overwritten with the - * {parent}/conversations/{conversation_id}. - * @type string[] $agents - * Required. Agent(s) in the conversation. - * Currently, only one agent is supported. This field is repeated to allow - * for future support of multiple agents in a conversation. - * Format: `projects/{project}/locations/{location}/dataAgents/{agent}` - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Creation timestamp. - * @type \Google\Protobuf\Timestamp $last_used_time - * Output only. Timestamp of the last used conversation. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Open-ended and user-defined labels that can be set by the client - * to tag a conversation (e.g. to filter conversations for specific - * surfaces/products). - * @type string $kms_key - * Optional. Customer managed encryption key (CMEK) to use for encrypting the - * Conversation resources. Encryption will happen at Titan layer, we will pass - * the KMS key to Titan. - * Format: - * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. - * @type bool $memory_paused - * Optional. Whether memory is paused for this conversation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Conversation::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Identifier. The unique resource name of a conversation. Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * `{conversation_id}` is the resource id and should be 63 characters or less - * and must match the format described in - * https://google.aip.dev/122#resource-id-segments - * Example: - * `projects/1234567890/locations/global/conversations/my-conversation`. - * It is recommended to skip setting this field during conversation creation - * as it will be inferred automatically and overwritten with the - * {parent}/conversations/{conversation_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. Identifier. The unique resource name of a conversation. Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * `{conversation_id}` is the resource id and should be 63 characters or less - * and must match the format described in - * https://google.aip.dev/122#resource-id-segments - * Example: - * `projects/1234567890/locations/global/conversations/my-conversation`. - * It is recommended to skip setting this field during conversation creation - * as it will be inferred automatically and overwritten with the - * {parent}/conversations/{conversation_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Agent(s) in the conversation. - * Currently, only one agent is supported. This field is repeated to allow - * for future support of multiple agents in a conversation. - * Format: `projects/{project}/locations/{location}/dataAgents/{agent}` - * - * Generated from protobuf field repeated string agents = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField - */ - public function getAgents() - { - return $this->agents; - } - - /** - * Required. Agent(s) in the conversation. - * Currently, only one agent is supported. This field is repeated to allow - * for future support of multiple agents in a conversation. - * Format: `projects/{project}/locations/{location}/dataAgents/{agent}` - * - * Generated from protobuf field repeated string agents = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string[] $var - * @return $this - */ - public function setAgents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->agents = $arr; - - return $this; - } - - /** - * Output only. Creation timestamp. - * - * 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. Creation timestamp. - * - * 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 of the last used conversation. - * - * Generated from protobuf field .google.protobuf.Timestamp last_used_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastUsedTime() - { - return $this->last_used_time; - } - - public function hasLastUsedTime() - { - return isset($this->last_used_time); - } - - public function clearLastUsedTime() - { - unset($this->last_used_time); - } - - /** - * Output only. Timestamp of the last used conversation. - * - * Generated from protobuf field .google.protobuf.Timestamp last_used_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastUsedTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_used_time = $var; - - return $this; - } - - /** - * Optional. Open-ended and user-defined labels that can be set by the client - * to tag a conversation (e.g. to filter conversations for specific - * surfaces/products). - * - * Generated from protobuf field map labels = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Open-ended and user-defined labels that can be set by the client - * to tag a conversation (e.g. to filter conversations for specific - * surfaces/products). - * - * Generated from protobuf field map labels = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Customer managed encryption key (CMEK) to use for encrypting the - * Conversation resources. Encryption will happen at Titan layer, we will pass - * the KMS key to Titan. - * Format: - * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. - * - * Generated from protobuf field optional string kms_key = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getKmsKey() - { - return isset($this->kms_key) ? $this->kms_key : ''; - } - - public function hasKmsKey() - { - return isset($this->kms_key); - } - - public function clearKmsKey() - { - unset($this->kms_key); - } - - /** - * Optional. Customer managed encryption key (CMEK) to use for encrypting the - * Conversation resources. Encryption will happen at Titan layer, we will pass - * the KMS key to Titan. - * Format: - * projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}. - * - * Generated from protobuf field optional string kms_key = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setKmsKey($var) - { - GPBUtil::checkString($var, True); - $this->kms_key = $var; - - return $this; - } - - /** - * Optional. Whether memory is paused for this conversation. - * - * Generated from protobuf field optional bool memory_paused = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getMemoryPaused() - { - return isset($this->memory_paused) ? $this->memory_paused : false; - } - - public function hasMemoryPaused() - { - return isset($this->memory_paused); - } - - public function clearMemoryPaused() - { - unset($this->memory_paused); - } - - /** - * Optional. Whether memory is paused for this conversation. - * - * Generated from protobuf field optional bool memory_paused = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setMemoryPaused($var) - { - GPBUtil::checkBool($var); - $this->memory_paused = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationOptions.php deleted file mode 100644 index cc5be0c1684c..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationOptions.php +++ /dev/null @@ -1,209 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ConversationOptions - */ -class ConversationOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Options for chart generation. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions chart = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $chart = null; - /** - * Optional. Options for analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisOptions analysis = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $analysis = null; - /** - * Optional. Options for datasources. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $datasource = null; - /** - * Optional. The model to use for the agent loop. - * - * Generated from protobuf field optional .google.cloud.geminidataanalytics.v1beta.ConversationOptions.Model model = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $model = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions $chart - * Optional. Options for chart generation. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisOptions $analysis - * Optional. Options for analysis. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceOptions $datasource - * Optional. Options for datasources. - * @type int $model - * Optional. The model to use for the agent loop. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Options for chart generation. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions chart = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions|null - */ - public function getChart() - { - return $this->chart; - } - - public function hasChart() - { - return isset($this->chart); - } - - public function clearChart() - { - unset($this->chart); - } - - /** - * Optional. Options for chart generation. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartOptions chart = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions $var - * @return $this - */ - public function setChart($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChartOptions::class); - $this->chart = $var; - - return $this; - } - - /** - * Optional. Options for analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisOptions analysis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisOptions|null - */ - public function getAnalysis() - { - return $this->analysis; - } - - public function hasAnalysis() - { - return isset($this->analysis); - } - - public function clearAnalysis() - { - unset($this->analysis); - } - - /** - * Optional. Options for analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisOptions analysis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisOptions $var - * @return $this - */ - public function setAnalysis($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisOptions::class); - $this->analysis = $var; - - return $this; - } - - /** - * Optional. Options for datasources. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceOptions|null - */ - public function getDatasource() - { - return $this->datasource; - } - - public function hasDatasource() - { - return isset($this->datasource); - } - - public function clearDatasource() - { - unset($this->datasource); - } - - /** - * Optional. Options for datasources. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceOptions $var - * @return $this - */ - public function setDatasource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceOptions::class); - $this->datasource = $var; - - return $this; - } - - /** - * Optional. The model to use for the agent loop. - * - * Generated from protobuf field optional .google.cloud.geminidataanalytics.v1beta.ConversationOptions.Model model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getModel() - { - return isset($this->model) ? $this->model : 0; - } - - public function hasModel() - { - return isset($this->model); - } - - public function clearModel() - { - unset($this->model); - } - - /** - * Optional. The model to use for the agent loop. - * - * Generated from protobuf field optional .google.cloud.geminidataanalytics.v1beta.ConversationOptions.Model model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setModel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ConversationOptions\Model::class); - $this->model = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationReference.php deleted file mode 100644 index b8da0d101b3e..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ConversationReference.php +++ /dev/null @@ -1,119 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ConversationReference - */ -class ConversationReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the conversation resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * - * Generated from protobuf field string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $conversation = ''; - /** - * Required. Context for the chat request using a data agent. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_agent_context = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $conversation - * Required. Name of the conversation resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgentContext $data_agent_context - * Required. Context for the chat request using a data agent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the conversation resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * - * Generated from protobuf field string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getConversation() - { - return $this->conversation; - } - - /** - * Required. Name of the conversation resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * - * Generated from protobuf field string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setConversation($var) - { - GPBUtil::checkString($var, True); - $this->conversation = $var; - - return $this; - } - - /** - * Required. Context for the chat request using a data agent. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgentContext|null - */ - public function getDataAgentContext() - { - return $this->data_agent_context; - } - - public function hasDataAgentContext() - { - return isset($this->data_agent_context); - } - - public function clearDataAgentContext() - { - unset($this->data_agent_context); - } - - /** - * Required. Context for the chat request using a data agent. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgentContext $var - * @return $this - */ - public function setDataAgentContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgentContext::class); - $this->data_agent_context = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CreateConversationRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CreateConversationRequest.php deleted file mode 100644 index 6a14dc20360e..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CreateConversationRequest.php +++ /dev/null @@ -1,229 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.CreateConversationRequest - */ -class CreateConversationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent value for CreateConversationRequest. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The conversation id of the conversation to create. - * Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * - * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $conversation_id = ''; - /** - * Required. The conversation to create. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Conversation conversation = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $conversation = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $parent Required. Parent value for CreateConversationRequest. - * Format: `projects/{project}/locations/{location}` - * Please see {@see DataChatServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Conversation $conversation Required. The conversation to create. - * @param string $conversationId Optional. The conversation id of the conversation to create. - * Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\CreateConversationRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\GeminiDataAnalytics\V1beta\Conversation $conversation, string $conversationId): self - { - return (new self()) - ->setParent($parent) - ->setConversation($conversation) - ->setConversationId($conversationId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent value for CreateConversationRequest. - * Format: `projects/{project}/locations/{location}` - * @type string $conversation_id - * Optional. The conversation id of the conversation to create. - * Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Conversation $conversation - * Required. The conversation to create. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Conversation::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent value for CreateConversationRequest. - * Format: `projects/{project}/locations/{location}` - * - * 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. Parent value for CreateConversationRequest. - * Format: `projects/{project}/locations/{location}` - * - * 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 conversation id of the conversation to create. - * Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * - * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getConversationId() - { - return $this->conversation_id; - } - - /** - * Optional. The conversation id of the conversation to create. - * Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * - * Generated from protobuf field string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setConversationId($var) - { - GPBUtil::checkString($var, True); - $this->conversation_id = $var; - - return $this; - } - - /** - * Required. The conversation to create. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Conversation conversation = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Conversation|null - */ - public function getConversation() - { - return $this->conversation; - } - - public function hasConversation() - { - return isset($this->conversation); - } - - public function clearConversation() - { - unset($this->conversation); - } - - /** - * Required. The conversation to create. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Conversation conversation = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Conversation $var - * @return $this - */ - public function setConversation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Conversation::class); - $this->conversation = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CreateDataAgentRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CreateDataAgentRequest.php deleted file mode 100644 index 81ab839c54cf..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/CreateDataAgentRequest.php +++ /dev/null @@ -1,247 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest - */ -class CreateDataAgentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Value for parent. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Id of the requesting object. Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * - * Generated from protobuf field string data_agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $data_agent_id = ''; - /** - * Required. The resource being created. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgent data_agent = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_agent = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $parent Required. Value for parent. Please see - * {@see DataAgentServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent $dataAgent Required. The resource being created. - * @param string $dataAgentId Optional. Id of the requesting object. Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\CreateDataAgentRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent $dataAgent, string $dataAgentId): self - { - return (new self()) - ->setParent($parent) - ->setDataAgent($dataAgent) - ->setDataAgentId($dataAgentId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Value for parent. - * @type string $data_agent_id - * Optional. Id of the requesting object. Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent $data_agent - * Required. The resource being created. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Value for parent. - * - * 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. Value for parent. - * - * 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. Id of the requesting object. Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * - * Generated from protobuf field string data_agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDataAgentId() - { - return $this->data_agent_id; - } - - /** - * Optional. Id of the requesting object. Must be unique within the parent. - * The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * If not provided, the server will auto-generate a value for the id. - * - * Generated from protobuf field string data_agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDataAgentId($var) - { - GPBUtil::checkString($var, True); - $this->data_agent_id = $var; - - return $this; - } - - /** - * Required. The resource being created. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgent data_agent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent|null - */ - public function getDataAgent() - { - return $this->data_agent; - } - - public function hasDataAgent() - { - return isset($this->data_agent); - } - - public function clearDataAgent() - { - unset($this->data_agent); - } - - /** - * Required. The resource being created. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgent data_agent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent $var - * @return $this - */ - public function setDataAgent($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent::class); - $this->data_agent = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Credentials.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Credentials.php deleted file mode 100644 index 109a1091feea..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Credentials.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.Credentials - */ -class Credentials extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials $oauth - * OAuth credentials. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Credentials::initOnce(); - parent::__construct($data); - } - - /** - * OAuth credentials. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.OAuthCredentials oauth = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials|null - */ - public function getOauth() - { - return $this->readOneof(1); - } - - public function hasOauth() - { - return $this->hasOneof(1); - } - - /** - * OAuth credentials. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.OAuthCredentials oauth = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials $var - * @return $this - */ - public function setOauth($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgent.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgent.php deleted file mode 100644 index 2b7479ea2d1b..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgent.php +++ /dev/null @@ -1,515 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.DataAgent - */ -class DataAgent extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Identifier. The unique resource name of a DataAgent. - * Format: - * `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` - * `{data_agent}` is the resource id and should be 63 characters or less and - * must match the format described in - * https://google.aip.dev/122#resource-id-segments - * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. - * It is recommended to skip setting this field during agent creation as it - * will be inferred automatically and overwritten with the - * {parent}/dataAgents/{data_agent_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. User friendly display name. - * * Must be between 1-256 characters. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. Description of the agent. - * * Must be between 1-1024 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. Labels to help users filter related agents. - * For example, "sales", "business", "etl", and so on. - * Note labels are used only for filtering and not for policies. - * See the [labels - * documentation](https://cloud.google.com/resource-manager/docs/labels-overview) - * for more details on label usage. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Output only. The time when the data agent was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the data agent was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. [Output only] The time the data agent was soft deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $delete_time = null; - /** - * Output only. Timestamp in UTC of when this data agent is considered - * expired. This is *always* provided on output, regardless of what was sent - * on input. - * - * Generated from protobuf field .google.protobuf.Timestamp purge_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $purge_time = null; - /** - * Optional. Customer managed encryption key (CMEK) to use for encrypting the - * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location - * as the DataAgent. The expected format is - * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. - * - * Generated from protobuf field optional string kms_key = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $kms_key = null; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataAnalyticsAgent $data_analytics_agent - * Data analytics agent. - * @type string $name - * Optional. Identifier. The unique resource name of a DataAgent. - * Format: - * `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` - * `{data_agent}` is the resource id and should be 63 characters or less and - * must match the format described in - * https://google.aip.dev/122#resource-id-segments - * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. - * It is recommended to skip setting this field during agent creation as it - * will be inferred automatically and overwritten with the - * {parent}/dataAgents/{data_agent_id}. - * @type string $display_name - * Optional. User friendly display name. - * * Must be between 1-256 characters. - * @type string $description - * Optional. Description of the agent. - * * Must be between 1-1024 characters. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Labels to help users filter related agents. - * For example, "sales", "business", "etl", and so on. - * Note labels are used only for filtering and not for policies. - * See the [labels - * documentation](https://cloud.google.com/resource-manager/docs/labels-overview) - * for more details on label usage. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the data agent was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the data agent was last updated. - * @type \Google\Protobuf\Timestamp $delete_time - * Output only. [Output only] The time the data agent was soft deleted. - * @type \Google\Protobuf\Timestamp $purge_time - * Output only. Timestamp in UTC of when this data agent is considered - * expired. This is *always* provided on output, regardless of what was sent - * on input. - * @type string $kms_key - * Optional. Customer managed encryption key (CMEK) to use for encrypting the - * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location - * as the DataAgent. The expected format is - * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgent::initOnce(); - parent::__construct($data); - } - - /** - * Data analytics agent. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAnalyticsAgent data_analytics_agent = 101; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DataAnalyticsAgent|null - */ - public function getDataAnalyticsAgent() - { - return $this->readOneof(101); - } - - public function hasDataAnalyticsAgent() - { - return $this->hasOneof(101); - } - - /** - * Data analytics agent. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAnalyticsAgent data_analytics_agent = 101; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataAnalyticsAgent $var - * @return $this - */ - public function setDataAnalyticsAgent($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataAnalyticsAgent::class); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * Optional. Identifier. The unique resource name of a DataAgent. - * Format: - * `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` - * `{data_agent}` is the resource id and should be 63 characters or less and - * must match the format described in - * https://google.aip.dev/122#resource-id-segments - * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. - * It is recommended to skip setting this field during agent creation as it - * will be inferred automatically and overwritten with the - * {parent}/dataAgents/{data_agent_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. Identifier. The unique resource name of a DataAgent. - * Format: - * `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` - * `{data_agent}` is the resource id and should be 63 characters or less and - * must match the format described in - * https://google.aip.dev/122#resource-id-segments - * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. - * It is recommended to skip setting this field during agent creation as it - * will be inferred automatically and overwritten with the - * {parent}/dataAgents/{data_agent_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. User friendly display name. - * * Must be between 1-256 characters. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User friendly display name. - * * Must be between 1-256 characters. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Description of the agent. - * * Must be between 1-1024 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the agent. - * * Must be between 1-1024 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. Labels to help users filter related agents. - * For example, "sales", "business", "etl", and so on. - * Note labels are used only for filtering and not for policies. - * See the [labels - * documentation](https://cloud.google.com/resource-manager/docs/labels-overview) - * for more details on label usage. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Labels to help users filter related agents. - * For example, "sales", "business", "etl", and so on. - * Note labels are used only for filtering and not for policies. - * See the [labels - * documentation](https://cloud.google.com/resource-manager/docs/labels-overview) - * for more details on label usage. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. The time when the data agent was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.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 when the data agent was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.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 when the data agent was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.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 when the data agent was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.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. [Output only] The time the data agent was soft deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeleteTime() - { - return $this->delete_time; - } - - public function hasDeleteTime() - { - return isset($this->delete_time); - } - - public function clearDeleteTime() - { - unset($this->delete_time); - } - - /** - * Output only. [Output only] The time the data agent was soft deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeleteTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->delete_time = $var; - - return $this; - } - - /** - * Output only. Timestamp in UTC of when this data agent is considered - * expired. This is *always* provided on output, regardless of what was sent - * on input. - * - * Generated from protobuf field .google.protobuf.Timestamp purge_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getPurgeTime() - { - return $this->purge_time; - } - - public function hasPurgeTime() - { - return isset($this->purge_time); - } - - public function clearPurgeTime() - { - unset($this->purge_time); - } - - /** - * Output only. Timestamp in UTC of when this data agent is considered - * expired. This is *always* provided on output, regardless of what was sent - * on input. - * - * Generated from protobuf field .google.protobuf.Timestamp purge_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setPurgeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->purge_time = $var; - - return $this; - } - - /** - * Optional. Customer managed encryption key (CMEK) to use for encrypting the - * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location - * as the DataAgent. The expected format is - * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. - * - * Generated from protobuf field optional string kms_key = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getKmsKey() - { - return isset($this->kms_key) ? $this->kms_key : ''; - } - - public function hasKmsKey() - { - return isset($this->kms_key); - } - - public function clearKmsKey() - { - unset($this->kms_key); - } - - /** - * Optional. Customer managed encryption key (CMEK) to use for encrypting the - * DataAgent resources. Cloud KMS CryptoKeys must reside in the same location - * as the DataAgent. The expected format is - * `projects/{@*}locations/{@*}keyRings/{@*}cryptoKeys/*`. - * - * Generated from protobuf field optional string kms_key = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setKmsKey($var) - { - GPBUtil::checkString($var, True); - $this->kms_key = $var; - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgentContext.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgentContext.php deleted file mode 100644 index 0a4f9414e7ff..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgentContext.php +++ /dev/null @@ -1,176 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.DataAgentContext - */ -class DataAgentContext extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the data agent resource. - * - * Generated from protobuf field string data_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $data_agent = ''; - /** - * Optional. Deprecated: Use credentials in ChatRequest. - * The credentials to use when calling the Looker data source. - * Currently supports both OAuth token and API key-based credentials, as - * described in - * [Authentication with an - * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated - */ - protected $credentials = null; - /** - * Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED) - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $context_version = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $data_agent - * Required. The name of the data agent resource. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials $credentials - * Optional. Deprecated: Use credentials in ChatRequest. - * The credentials to use when calling the Looker data source. - * Currently supports both OAuth token and API key-based credentials, as - * described in - * [Authentication with an - * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). - * @type int $context_version - * Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the data agent resource. - * - * Generated from protobuf field string data_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getDataAgent() - { - return $this->data_agent; - } - - /** - * Required. The name of the data agent resource. - * - * Generated from protobuf field string data_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDataAgent($var) - { - GPBUtil::checkString($var, True); - $this->data_agent = $var; - - return $this; - } - - /** - * Optional. Deprecated: Use credentials in ChatRequest. - * The credentials to use when calling the Looker data source. - * Currently supports both OAuth token and API key-based credentials, as - * described in - * [Authentication with an - * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials|null - * @deprecated - */ - public function getCredentials() - { - if (isset($this->credentials)) { - @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); - } - return $this->credentials; - } - - public function hasCredentials() - { - if (isset($this->credentials)) { - @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); - } - return isset($this->credentials); - } - - public function clearCredentials() - { - @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); - unset($this->credentials); - } - - /** - * Optional. Deprecated: Use credentials in ChatRequest. - * The credentials to use when calling the Looker data source. - * Currently supports both OAuth token and API key-based credentials, as - * described in - * [Authentication with an - * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials $var - * @return $this - * @deprecated - */ - public function setCredentials($var) - { - @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials::class); - $this->credentials = $var; - - return $this; - } - - /** - * Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED) - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getContextVersion() - { - return $this->context_version; - } - - /** - * Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED) - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setContextVersion($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgentContext\ContextVersion::class); - $this->context_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgentContext/ContextVersion.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgentContext/ContextVersion.php deleted file mode 100644 index 78b061645ae1..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAgentContext/ContextVersion.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersion - */ -class ContextVersion -{ - /** - * Unspecified or unrecognized. - * - * Generated from protobuf enum CONTEXT_VERSION_UNSPECIFIED = 0; - */ - const CONTEXT_VERSION_UNSPECIFIED = 0; - /** - * Using this version, DCS will use the latest staging context for the - * data agent. - * - * Generated from protobuf enum STAGING = 1; - */ - const STAGING = 1; - /** - * Using this version, DCS will use the latest published context for the - * data agent. - * - * Generated from protobuf enum PUBLISHED = 2; - */ - const PUBLISHED = 2; - - private static $valueToName = [ - self::CONTEXT_VERSION_UNSPECIFIED => 'CONTEXT_VERSION_UNSPECIFIED', - self::STAGING => 'STAGING', - self::PUBLISHED => 'PUBLISHED', - ]; - - 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAnalyticsAgent.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAnalyticsAgent.php deleted file mode 100644 index 3148ed813d32..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataAnalyticsAgent.php +++ /dev/null @@ -1,185 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.DataAnalyticsAgent - */ -class DataAnalyticsAgent extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The staging context for the agent. - * This context is used to test and validate changes before publishing. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context staging_context = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $staging_context = null; - /** - * Optional. The published context for the agent. - * This context is used by the Chat API in production. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context published_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $published_context = null; - /** - * Output only. The last published context for the agent. - * This is an output-only field populated by the system when the - * published context is updated. It is used to restore the agent to a - * previous state. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context last_published_context = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_published_context = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Context $staging_context - * Optional. The staging context for the agent. - * This context is used to test and validate changes before publishing. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Context $published_context - * Optional. The published context for the agent. - * This context is used by the Chat API in production. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Context $last_published_context - * Output only. The last published context for the agent. - * This is an output-only field populated by the system when the - * published context is updated. It is used to restore the agent to a - * previous state. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAnalyticsAgent::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The staging context for the agent. - * This context is used to test and validate changes before publishing. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context staging_context = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Context|null - */ - public function getStagingContext() - { - return $this->staging_context; - } - - public function hasStagingContext() - { - return isset($this->staging_context); - } - - public function clearStagingContext() - { - unset($this->staging_context); - } - - /** - * Optional. The staging context for the agent. - * This context is used to test and validate changes before publishing. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context staging_context = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Context $var - * @return $this - */ - public function setStagingContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Context::class); - $this->staging_context = $var; - - return $this; - } - - /** - * Optional. The published context for the agent. - * This context is used by the Chat API in production. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context published_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Context|null - */ - public function getPublishedContext() - { - return $this->published_context; - } - - public function hasPublishedContext() - { - return isset($this->published_context); - } - - public function clearPublishedContext() - { - unset($this->published_context); - } - - /** - * Optional. The published context for the agent. - * This context is used by the Chat API in production. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context published_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Context $var - * @return $this - */ - public function setPublishedContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Context::class); - $this->published_context = $var; - - return $this; - } - - /** - * Output only. The last published context for the agent. - * This is an output-only field populated by the system when the - * published context is updated. It is used to restore the agent to a - * previous state. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context last_published_context = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Context|null - */ - public function getLastPublishedContext() - { - return $this->last_published_context; - } - - public function hasLastPublishedContext() - { - return isset($this->last_published_context); - } - - public function clearLastPublishedContext() - { - unset($this->last_published_context); - } - - /** - * Output only. The last published context for the agent. - * This is an output-only field populated by the system when the - * published context is updated. It is used to restore the agent to a - * previous state. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Context last_published_context = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Context $var - * @return $this - */ - public function setLastPublishedContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Context::class); - $this->last_published_context = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataFilter.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataFilter.php deleted file mode 100644 index 06fce16057c0..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataFilter.php +++ /dev/null @@ -1,148 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.DataFilter - */ -class DataFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The field to filter on. For example: ["event_date", - * "customer_id", "product_category"] - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $field = ''; - /** - * Optional. The default value used for this filter if the filter is not - * overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"] - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $value = ''; - /** - * Optional. The type of filter present on a datasource, such as - * ALWAYS_FILTER. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field - * Optional. The field to filter on. For example: ["event_date", - * "customer_id", "product_category"] - * @type string $value - * Optional. The default value used for this filter if the filter is not - * overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"] - * @type int $type - * Optional. The type of filter present on a datasource, such as - * ALWAYS_FILTER. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The field to filter on. For example: ["event_date", - * "customer_id", "product_category"] - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * Optional. The field to filter on. For example: ["event_date", - * "customer_id", "product_category"] - * - * 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. The default value used for this filter if the filter is not - * overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"] - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Optional. The default value used for this filter if the filter is not - * overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"] - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Optional. The type of filter present on a datasource, such as - * ALWAYS_FILTER. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Optional. The type of filter present on a datasource, such as - * ALWAYS_FILTER. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataFilterType::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataFilterType.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataFilterType.php deleted file mode 100644 index c554a0b3b5f1..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataFilterType.php +++ /dev/null @@ -1,56 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.DataFilterType - */ -class DataFilterType -{ - /** - * The filter type was not specified. - * - * Generated from protobuf enum DATA_FILTER_TYPE_UNSPECIFIED = 0; - */ - const DATA_FILTER_TYPE_UNSPECIFIED = 0; - /** - * A filter that the user configures, and any queries to the Explore will - * always apply this filter by default. Currently only used for Looker data - * sources. - * - * Generated from protobuf enum ALWAYS_FILTER = 1; - */ - const ALWAYS_FILTER = 1; - - private static $valueToName = [ - self::DATA_FILTER_TYPE_UNSPECIFIED => 'DATA_FILTER_TYPE_UNSPECIFIED', - self::ALWAYS_FILTER => 'ALWAYS_FILTER', - ]; - - 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataMessage.php deleted file mode 100644 index 0e7f2551c8da..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataMessage.php +++ /dev/null @@ -1,252 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.DataMessage - */ -class DataMessage extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataQuery $query - * A data retrieval query. - * @type string $generated_sql - * SQL generated by the system to retrieve data. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataResult $result - * Retrieved data. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery $generated_looker_query - * Deprecated: generated looker query is now under DataQuery.looker. - * Looker Query generated by the system to retrieve data. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryJob $big_query_job - * A BigQuery job executed by the system to retrieve data. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\MatchedQuery $matched_query - * A pre-existing query that was matched to retrieve data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * A data retrieval query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataQuery query = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DataQuery|null - */ - public function getQuery() - { - return $this->readOneof(1); - } - - public function hasQuery() - { - return $this->hasOneof(1); - } - - /** - * A data retrieval query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataQuery query = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataQuery $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataQuery::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * SQL generated by the system to retrieve data. - * - * Generated from protobuf field string generated_sql = 2; - * @return string - */ - public function getGeneratedSql() - { - return $this->readOneof(2); - } - - public function hasGeneratedSql() - { - return $this->hasOneof(2); - } - - /** - * SQL generated by the system to retrieve data. - * - * Generated from protobuf field string generated_sql = 2; - * @param string $var - * @return $this - */ - public function setGeneratedSql($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Retrieved data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataResult result = 3; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DataResult|null - */ - public function getResult() - { - return $this->readOneof(3); - } - - public function hasResult() - { - return $this->hasOneof(3); - } - - /** - * Retrieved data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataResult result = 3; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataResult $var - * @return $this - */ - public function setResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataResult::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Deprecated: generated looker query is now under DataQuery.looker. - * Looker Query generated by the system to retrieve data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery|null - * @deprecated - */ - public function getGeneratedLookerQuery() - { - if ($this->hasOneof(4)) { - @trigger_error('generated_looker_query is deprecated.', E_USER_DEPRECATED); - } - return $this->readOneof(4); - } - - public function hasGeneratedLookerQuery() - { - if ($this->hasOneof(4)) { - @trigger_error('generated_looker_query is deprecated.', E_USER_DEPRECATED); - } - return $this->hasOneof(4); - } - - /** - * Deprecated: generated looker query is now under DataQuery.looker. - * Looker Query generated by the system to retrieve data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery $var - * @return $this - * @deprecated - */ - public function setGeneratedLookerQuery($var) - { - @trigger_error('generated_looker_query is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A BigQuery job executed by the system to retrieve data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryJob big_query_job = 5; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryJob|null - */ - public function getBigQueryJob() - { - return $this->readOneof(5); - } - - public function hasBigQueryJob() - { - return $this->hasOneof(5); - } - - /** - * A BigQuery job executed by the system to retrieve data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryJob big_query_job = 5; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryJob $var - * @return $this - */ - public function setBigQueryJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryJob::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * A pre-existing query that was matched to retrieve data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.MatchedQuery matched_query = 6; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\MatchedQuery|null - */ - public function getMatchedQuery() - { - return $this->readOneof(6); - } - - public function hasMatchedQuery() - { - return $this->hasOneof(6); - } - - /** - * A pre-existing query that was matched to retrieve data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.MatchedQuery matched_query = 6; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\MatchedQuery $var - * @return $this - */ - public function setMatchedQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\MatchedQuery::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataQuery.php deleted file mode 100644 index f46b7f983940..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataQuery.php +++ /dev/null @@ -1,193 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.DataQuery - */ -class DataQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A natural language question to answer. - * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $question = ''; - /** - * Optional. A snake-case name for the query that reflects its intent. It is - * used to name the corresponding data result, so that it can be referenced in - * later steps. - * * Example: "total_sales_by_product" - * * Example: "sales_for_product_12345" - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - /** - * Optional. The datasources available to answer the question. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $datasources; - protected $query_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery $looker - * Optional. A query for retrieving data from a Looker explore. - * @type string $question - * Optional. A natural language question to answer. - * @type string $name - * Optional. A snake-case name for the query that reflects its intent. It is - * used to name the corresponding data result, so that it can be referenced in - * later steps. - * * Example: "total_sales_by_product" - * * Example: "sales_for_product_12345" - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Datasource[] $datasources - * Optional. The datasources available to answer the question. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A query for retrieving data from a Looker explore. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery|null - */ - public function getLooker() - { - return $this->readOneof(4); - } - - public function hasLooker() - { - return $this->hasOneof(4); - } - - /** - * Optional. A query for retrieving data from a Looker explore. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery $var - * @return $this - */ - public function setLooker($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Optional. A natural language question to answer. - * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getQuestion() - { - return $this->question; - } - - /** - * Optional. A natural language question to answer. - * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setQuestion($var) - { - GPBUtil::checkString($var, True); - $this->question = $var; - - return $this; - } - - /** - * Optional. A snake-case name for the query that reflects its intent. It is - * used to name the corresponding data result, so that it can be referenced in - * later steps. - * * Example: "total_sales_by_product" - * * Example: "sales_for_product_12345" - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. A snake-case name for the query that reflects its intent. It is - * used to name the corresponding data result, so that it can be referenced in - * later steps. - * * Example: "total_sales_by_product" - * * Example: "sales_for_product_12345" - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The datasources available to answer the question. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\Datasource> - */ - public function getDatasources() - { - return $this->datasources; - } - - /** - * Optional. The datasources available to answer the question. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Datasource[] $var - * @return $this - */ - public function setDatasources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\Datasource::class); - $this->datasources = $arr; - - return $this; - } - - /** - * @return string - */ - public function getQueryType() - { - return $this->whichOneof("query_type"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataResult.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataResult.php deleted file mode 100644 index f932924f5f71..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DataResult.php +++ /dev/null @@ -1,227 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.DataResult - */ -class DataResult extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A snake-case name for the data result that reflects its contents. - * The name is used to pass the result around by reference, and serves as a - * signal about its meaning. - * * Example: "total_sales_by_product" - * * Example: "sales_for_product_12345" - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - /** - * Optional. The schema of the data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema = null; - /** - * Optional. The content of the data. Each row is a struct that matches the - * schema. Simple values are represented as strings, while nested structures - * are represented as lists or structs. - * - * Generated from protobuf field repeated .google.protobuf.Struct data = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $data; - /** - * Optional. Formatted representation of the data, when applicable. - * Each row is a struct that directly corresponds to the row at the same index - * within the `data` field. Its values are string representations of the - * original data, formatted according to data source specifications (e.g., - * "$1,234.56" for currency). Columns without formatting will default to - * their raw value representation. If no columns have formatting rules, this - * field will be empty. - * - * Generated from protobuf field repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $formatted_data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Optional. A snake-case name for the data result that reflects its contents. - * The name is used to pass the result around by reference, and serves as a - * signal about its meaning. - * * Example: "total_sales_by_product" - * * Example: "sales_for_product_12345" - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $schema - * Optional. The schema of the data. - * @type \Google\Protobuf\Struct[] $data - * Optional. The content of the data. Each row is a struct that matches the - * schema. Simple values are represented as strings, while nested structures - * are represented as lists or structs. - * @type \Google\Protobuf\Struct[] $formatted_data - * Optional. Formatted representation of the data, when applicable. - * Each row is a struct that directly corresponds to the row at the same index - * within the `data` field. Its values are string representations of the - * original data, formatted according to data source specifications (e.g., - * "$1,234.56" for currency). Columns without formatting will default to - * their raw value representation. If no columns have formatting rules, this - * field will be empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A snake-case name for the data result that reflects its contents. - * The name is used to pass the result around by reference, and serves as a - * signal about its meaning. - * * Example: "total_sales_by_product" - * * Example: "sales_for_product_12345" - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. A snake-case name for the data result that reflects its contents. - * The name is used to pass the result around by reference, and serves as a - * signal about its meaning. - * * Example: "total_sales_by_product" - * * Example: "sales_for_product_12345" - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The schema of the data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Schema|null - */ - public function getSchema() - { - return $this->schema; - } - - public function hasSchema() - { - return isset($this->schema); - } - - public function clearSchema() - { - unset($this->schema); - } - - /** - * Optional. The schema of the data. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Schema::class); - $this->schema = $var; - - return $this; - } - - /** - * Optional. The content of the data. Each row is a struct that matches the - * schema. Simple values are represented as strings, while nested structures - * are represented as lists or structs. - * - * Generated from protobuf field repeated .google.protobuf.Struct data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Protobuf\Struct> - */ - public function getData() - { - return $this->data; - } - - /** - * Optional. The content of the data. Each row is a struct that matches the - * schema. Simple values are represented as strings, while nested structures - * are represented as lists or structs. - * - * Generated from protobuf field repeated .google.protobuf.Struct data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Struct[] $var - * @return $this - */ - public function setData($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Struct::class); - $this->data = $arr; - - return $this; - } - - /** - * Optional. Formatted representation of the data, when applicable. - * Each row is a struct that directly corresponds to the row at the same index - * within the `data` field. Its values are string representations of the - * original data, formatted according to data source specifications (e.g., - * "$1,234.56" for currency). Columns without formatting will default to - * their raw value representation. If no columns have formatting rules, this - * field will be empty. - * - * Generated from protobuf field repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Protobuf\Struct> - */ - public function getFormattedData() - { - return $this->formatted_data; - } - - /** - * Optional. Formatted representation of the data, when applicable. - * Each row is a struct that directly corresponds to the row at the same index - * within the `data` field. Its values are string representations of the - * original data, formatted according to data source specifications (e.g., - * "$1,234.56" for currency). Columns without formatting will default to - * their raw value representation. If no columns have formatting rules, this - * field will be empty. - * - * Generated from protobuf field repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Struct[] $var - * @return $this - */ - public function setFormattedData($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Struct::class); - $this->formatted_data = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Datasource.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Datasource.php deleted file mode 100644 index c2bffe5ab7b5..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Datasource.php +++ /dev/null @@ -1,377 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.Datasource - */ -class Datasource extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The schema of the datasource. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema = null; - /** - * Optional. A struct representation of the schema. - * This is populated for datasources with schemas that cannot be - * fully represented by the strongly-typed `schema` field. - * For Looker datasources, this maps to the LookmlModelExplore type: - * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore - * - * Generated from protobuf field .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $struct_schema = null; - protected $reference; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference $bigquery_table_reference - * A reference to a BigQuery table. - * @type string $studio_datasource_id - * A reference to a Looker Studio datasource. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReference $looker_explore_reference - * A reference to a Looker explore. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbReference $alloy_db_reference - * A reference to an AlloyDB database. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerReference $spanner_reference - * A reference to a Spanner database. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlReference $cloud_sql_reference - * A reference to a CloudSQL database. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference $bigquery_property_graph_reference - * A reference to a BigQuery property graph. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $schema - * Optional. The schema of the datasource. - * @type \Google\Protobuf\Struct $struct_schema - * Optional. A struct representation of the schema. - * This is populated for datasources with schemas that cannot be - * fully represented by the strongly-typed `schema` field. - * For Looker datasources, this maps to the LookmlModelExplore type: - * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * A reference to a BigQuery table. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference bigquery_table_reference = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference|null - */ - public function getBigqueryTableReference() - { - return $this->readOneof(1); - } - - public function hasBigqueryTableReference() - { - return $this->hasOneof(1); - } - - /** - * A reference to a BigQuery table. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference bigquery_table_reference = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference $var - * @return $this - */ - public function setBigqueryTableReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A reference to a Looker Studio datasource. - * - * Generated from protobuf field string studio_datasource_id = 2; - * @return string - */ - public function getStudioDatasourceId() - { - return $this->readOneof(2); - } - - public function hasStudioDatasourceId() - { - return $this->hasOneof(2); - } - - /** - * A reference to a Looker Studio datasource. - * - * Generated from protobuf field string studio_datasource_id = 2; - * @param string $var - * @return $this - */ - public function setStudioDatasourceId($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A reference to a Looker explore. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerExploreReference looker_explore_reference = 4; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReference|null - */ - public function getLookerExploreReference() - { - return $this->readOneof(4); - } - - public function hasLookerExploreReference() - { - return $this->hasOneof(4); - } - - /** - * A reference to a Looker explore. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerExploreReference looker_explore_reference = 4; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReference $var - * @return $this - */ - public function setLookerExploreReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReference::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A reference to an AlloyDB database. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbReference|null - */ - public function getAlloyDbReference() - { - return $this->readOneof(12); - } - - public function hasAlloyDbReference() - { - return $this->hasOneof(12); - } - - /** - * A reference to an AlloyDB database. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbReference $var - * @return $this - */ - public function setAlloyDbReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbReference::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * A reference to a Spanner database. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerReference|null - */ - public function getSpannerReference() - { - return $this->readOneof(13); - } - - public function hasSpannerReference() - { - return $this->hasOneof(13); - } - - /** - * A reference to a Spanner database. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerReference $var - * @return $this - */ - public function setSpannerReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerReference::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * A reference to a CloudSQL database. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlReference|null - */ - public function getCloudSqlReference() - { - return $this->readOneof(14); - } - - public function hasCloudSqlReference() - { - return $this->hasOneof(14); - } - - /** - * A reference to a CloudSQL database. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlReference $var - * @return $this - */ - public function setCloudSqlReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlReference::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * A reference to a BigQuery property graph. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReference bigquery_property_graph_reference = 16; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference|null - */ - public function getBigqueryPropertyGraphReference() - { - return $this->readOneof(16); - } - - public function hasBigqueryPropertyGraphReference() - { - return $this->hasOneof(16); - } - - /** - * A reference to a BigQuery property graph. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReference bigquery_property_graph_reference = 16; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference $var - * @return $this - */ - public function setBigqueryPropertyGraphReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryPropertyGraphReference::class); - $this->writeOneof(16, $var); - - return $this; - } - - /** - * Optional. The schema of the datasource. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Schema|null - */ - public function getSchema() - { - return $this->schema; - } - - public function hasSchema() - { - return isset($this->schema); - } - - public function clearSchema() - { - unset($this->schema); - } - - /** - * Optional. The schema of the datasource. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Schema::class); - $this->schema = $var; - - return $this; - } - - /** - * Optional. A struct representation of the schema. - * This is populated for datasources with schemas that cannot be - * fully represented by the strongly-typed `schema` field. - * For Looker datasources, this maps to the LookmlModelExplore type: - * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore - * - * Generated from protobuf field .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Struct|null - */ - public function getStructSchema() - { - return $this->struct_schema; - } - - public function hasStructSchema() - { - return isset($this->struct_schema); - } - - public function clearStructSchema() - { - unset($this->struct_schema); - } - - /** - * Optional. A struct representation of the schema. - * This is populated for datasources with schemas that cannot be - * fully represented by the strongly-typed `schema` field. - * For Looker datasources, this maps to the LookmlModelExplore type: - * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore - * - * Generated from protobuf field .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setStructSchema($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->struct_schema = $var; - - return $this; - } - - /** - * @return string - */ - public function getReference() - { - return $this->whichOneof("reference"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatasourceOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatasourceOptions.php deleted file mode 100644 index df74e31074ab..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatasourceOptions.php +++ /dev/null @@ -1,122 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.DatasourceOptions - */ -class DatasourceOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. This option applies to datasources that require BigQuery queries - * only. Limits the bytes billed for each BQ query job. Queries that will have - * bytes billed beyond this limit will fail (without incurring a charge). - * If unspecified, no limit will be applied. - * - * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $big_query_max_billed_bytes = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Int64Value $big_query_max_billed_bytes - * Optional. This option applies to datasources that require BigQuery queries - * only. Limits the bytes billed for each BQ query job. Queries that will have - * bytes billed beyond this limit will fail (without incurring a charge). - * If unspecified, no limit will be applied. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); - parent::__construct($data); - } - - /** - * Optional. This option applies to datasources that require BigQuery queries - * only. Limits the bytes billed for each BQ query job. Queries that will have - * bytes billed beyond this limit will fail (without incurring a charge). - * If unspecified, no limit will be applied. - * - * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Int64Value|null - */ - public function getBigQueryMaxBilledBytes() - { - return $this->big_query_max_billed_bytes; - } - - public function hasBigQueryMaxBilledBytes() - { - return isset($this->big_query_max_billed_bytes); - } - - public function clearBigQueryMaxBilledBytes() - { - unset($this->big_query_max_billed_bytes); - } - - /** - * Returns the unboxed value from getBigQueryMaxBilledBytes() - - * Optional. This option applies to datasources that require BigQuery queries - * only. Limits the bytes billed for each BQ query job. Queries that will have - * bytes billed beyond this limit will fail (without incurring a charge). - * If unspecified, no limit will be applied. - * - * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string|null - */ - public function getBigQueryMaxBilledBytesUnwrapped() - { - return $this->readWrapperValue("big_query_max_billed_bytes"); - } - - /** - * Optional. This option applies to datasources that require BigQuery queries - * only. Limits the bytes billed for each BQ query job. Queries that will have - * bytes billed beyond this limit will fail (without incurring a charge). - * If unspecified, no limit will be applied. - * - * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Int64Value $var - * @return $this - */ - public function setBigQueryMaxBilledBytes($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int64Value::class); - $this->big_query_max_billed_bytes = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object. - - * Optional. This option applies to datasources that require BigQuery queries - * only. Limits the bytes billed for each BQ query job. Queries that will have - * bytes billed beyond this limit will fail (without incurring a charge). - * If unspecified, no limit will be applied. - * - * Generated from protobuf field .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string|null $var - * @return $this - */ - public function setBigQueryMaxBilledBytesUnwrapped($var) - { - $this->writeWrapperValue("big_query_max_billed_bytes", $var); - return $this;} - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatasourceReferences.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatasourceReferences.php deleted file mode 100644 index 1290eb24325f..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DatasourceReferences.php +++ /dev/null @@ -1,249 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.DatasourceReferences - */ -class DatasourceReferences extends \Google\Protobuf\Internal\Message -{ - protected $references; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReferences $bq - * References to BigQuery tables. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReferences $studio - * References to Looker Studio datasources. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReferences $looker - * References to Looker Explores. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbReference $alloydb - * Reference to an AlloyDB database. Only supported for the `QueryData` - * method. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerReference $spanner_reference - * Reference to a Spanner database. Only supported for the `QueryData` - * method. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlReference $cloud_sql_reference - * Reference to a CloudSql database. Only supported for the `QueryData` - * method. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * References to BigQuery tables. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryTableReferences bq = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReferences|null - */ - public function getBq() - { - return $this->readOneof(1); - } - - public function hasBq() - { - return $this->hasOneof(1); - } - - /** - * References to BigQuery tables. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.BigQueryTableReferences bq = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReferences $var - * @return $this - */ - public function setBq($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReferences::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * References to Looker Studio datasources. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferences studio = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReferences|null - */ - public function getStudio() - { - return $this->readOneof(2); - } - - public function hasStudio() - { - return $this->hasOneof(2); - } - - /** - * References to Looker Studio datasources. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferences studio = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReferences $var - * @return $this - */ - public function setStudio($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReferences::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * References to Looker Explores. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerExploreReferences looker = 3; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReferences|null - */ - public function getLooker() - { - return $this->readOneof(3); - } - - public function hasLooker() - { - return $this->hasOneof(3); - } - - /** - * References to Looker Explores. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerExploreReferences looker = 3; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReferences $var - * @return $this - */ - public function setLooker($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReferences::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Reference to an AlloyDB database. Only supported for the `QueryData` - * method. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbReference|null - */ - public function getAlloydb() - { - return $this->readOneof(8); - } - - public function hasAlloydb() - { - return $this->hasOneof(8); - } - - /** - * Reference to an AlloyDB database. Only supported for the `QueryData` - * method. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbReference $var - * @return $this - */ - public function setAlloydb($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AlloyDbReference::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Reference to a Spanner database. Only supported for the `QueryData` - * method. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerReference|null - */ - public function getSpannerReference() - { - return $this->readOneof(9); - } - - public function hasSpannerReference() - { - return $this->hasOneof(9); - } - - /** - * Reference to a Spanner database. Only supported for the `QueryData` - * method. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerReference $var - * @return $this - */ - public function setSpannerReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerReference::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Reference to a CloudSql database. Only supported for the `QueryData` - * method. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlReference|null - */ - public function getCloudSqlReference() - { - return $this->readOneof(10); - } - - public function hasCloudSqlReference() - { - return $this->hasOneof(10); - } - - /** - * Reference to a CloudSql database. Only supported for the `QueryData` - * method. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlReference $var - * @return $this - */ - public function setCloudSqlReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\CloudSqlReference::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * @return string - */ - public function getReferences() - { - return $this->whichOneof("references"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DeleteConversationRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DeleteConversationRequest.php deleted file mode 100644 index b94bcfca774c..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DeleteConversationRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest - */ -class DeleteConversationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * Please see {@see DataChatServiceClient::conversationName()} for help formatting this field. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DeleteConversationRequest - * - * @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. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Conversation::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * - * 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. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * - * 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DeleteDataAgentRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DeleteDataAgentRequest.php deleted file mode 100644 index e0f0acd275f6..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/DeleteDataAgentRequest.php +++ /dev/null @@ -1,155 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest - */ -class DeleteDataAgentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $name Required. Name of the resource. Please see - * {@see DataAgentServiceClient::dataAgentName()} for help formatting this field. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DeleteDataAgentRequest - * - * @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. Name of the resource. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource. - * - * 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. Name of the resource. - * - * 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. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ErrorMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ErrorMessage.php deleted file mode 100644 index 4a33f7fb82f4..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ErrorMessage.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ErrorMessage - */ -class ErrorMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The text of the error. - * - * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $text = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * Output only. The text of the error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The text of the error. - * - * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Output only. The text of the error. - * - * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExampleQueries.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExampleQueries.php deleted file mode 100644 index 362a27ec356b..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExampleQueries.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ExampleQueries - */ -class ExampleQueries extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A list of derived and authored example queries, providing - * examples of relevant and commonly used SQL queries and their corresponding - * natural language queries optionally present. Currently only used for - * BigQuery data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $example_queries; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery[] $example_queries - * Optional. A list of derived and authored example queries, providing - * examples of relevant and commonly used SQL queries and their corresponding - * natural language queries optionally present. Currently only used for - * BigQuery data sources. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A list of derived and authored example queries, providing - * examples of relevant and commonly used SQL queries and their corresponding - * natural language queries optionally present. Currently only used for - * BigQuery data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery> - */ - public function getExampleQueries() - { - return $this->example_queries; - } - - /** - * Optional. A list of derived and authored example queries, providing - * examples of relevant and commonly used SQL queries and their corresponding - * natural language queries optionally present. Currently only used for - * BigQuery data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery[] $var - * @return $this - */ - public function setExampleQueries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQuery::class); - $this->example_queries = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExampleQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExampleQuery.php deleted file mode 100644 index 8fa837a7aed7..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExampleQuery.php +++ /dev/null @@ -1,167 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ExampleQuery - */ -class ExampleQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A natural language question that a user might ask. - * For example: "How many orders were placed last month?" - * - * Generated from protobuf field string natural_language_question = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $natural_language_question = ''; - /** - * Optional. The list of query parameters. - * Example: The parameterized SQL query - * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of - * id. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.QueryParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $parameters; - protected $query; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $sql_query - * Optional. The SQL query that should be generated to answer the natural - * language question. For example: "SELECT COUNT(*) FROM orders WHERE - * order_date BETWEEN '2024-01-01' AND '2024-01-31'" - * @type string $natural_language_question - * Optional. A natural language question that a user might ask. - * For example: "How many orders were placed last month?" - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\QueryParameter[] $parameters - * Optional. The list of query parameters. - * Example: The parameterized SQL query - * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of - * id. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The SQL query that should be generated to answer the natural - * language question. For example: "SELECT COUNT(*) FROM orders WHERE - * order_date BETWEEN '2024-01-01' AND '2024-01-31'" - * - * Generated from protobuf field string sql_query = 101 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSqlQuery() - { - return $this->readOneof(101); - } - - public function hasSqlQuery() - { - return $this->hasOneof(101); - } - - /** - * Optional. The SQL query that should be generated to answer the natural - * language question. For example: "SELECT COUNT(*) FROM orders WHERE - * order_date BETWEEN '2024-01-01' AND '2024-01-31'" - * - * Generated from protobuf field string sql_query = 101 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSqlQuery($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * Optional. A natural language question that a user might ask. - * For example: "How many orders were placed last month?" - * - * Generated from protobuf field string natural_language_question = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getNaturalLanguageQuestion() - { - return $this->natural_language_question; - } - - /** - * Optional. A natural language question that a user might ask. - * For example: "How many orders were placed last month?" - * - * Generated from protobuf field string natural_language_question = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setNaturalLanguageQuestion($var) - { - GPBUtil::checkString($var, True); - $this->natural_language_question = $var; - - return $this; - } - - /** - * Optional. The list of query parameters. - * Example: The parameterized SQL query - * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of - * id. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.QueryParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\QueryParameter> - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * Optional. The list of query parameters. - * Example: The parameterized SQL query - * "SELECT * FROM my_table WHERE id = \@id" can be matched with any value of - * id. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.QueryParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\QueryParameter[] $var - * @return $this - */ - public function setParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\QueryParameter::class); - $this->parameters = $arr; - - return $this; - } - - /** - * @return string - */ - public function getQuery() - { - return $this->whichOneof("query"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult.php deleted file mode 100644 index aef31a4a685c..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult.php +++ /dev/null @@ -1,227 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult - */ -class ExecutedQueryResult extends \Google\Protobuf\Internal\Message -{ - /** - * The columns in the result set, in order. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; - */ - private $columns; - /** - * The rows returned by the query. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; - */ - private $rows; - /** - * The total number of rows in the full result set, if known. - * This may be an estimate or an exact count. - * - * Generated from protobuf field int64 total_row_count = 3; - */ - protected $total_row_count = 0; - /** - * Set to true if the returned rows in `query_result` are a subset of the - * full result. This can happen, for example, if the query execution hits a - * row limit. When true, the `query_result` does not contain all - * rows. To retrieve the complete result, consider using the - * `generated_query` in `QueryDataResponse` and executing it in your own - * environment. - * - * Generated from protobuf field bool partial_result = 4; - */ - protected $partial_result = false; - /** - * The error message if the query execution failed. - * - * Generated from protobuf field string query_execution_error = 5; - */ - protected $query_execution_error = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Column[] $columns - * The columns in the result set, in order. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Row[] $rows - * The rows returned by the query. - * @type int|string $total_row_count - * The total number of rows in the full result set, if known. - * This may be an estimate or an exact count. - * @type bool $partial_result - * Set to true if the returned rows in `query_result` are a subset of the - * full result. This can happen, for example, if the query execution hits a - * row limit. When true, the `query_result` does not contain all - * rows. To retrieve the complete result, consider using the - * `generated_query` in `QueryDataResponse` and executing it in your own - * environment. - * @type string $query_execution_error - * The error message if the query execution failed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * The columns in the result set, in order. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Column> - */ - public function getColumns() - { - return $this->columns; - } - - /** - * The columns in the result set, in order. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Column[] $var - * @return $this - */ - public function setColumns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Column::class); - $this->columns = $arr; - - return $this; - } - - /** - * The rows returned by the query. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Row> - */ - public function getRows() - { - return $this->rows; - } - - /** - * The rows returned by the query. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Row[] $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Row::class); - $this->rows = $arr; - - return $this; - } - - /** - * The total number of rows in the full result set, if known. - * This may be an estimate or an exact count. - * - * Generated from protobuf field int64 total_row_count = 3; - * @return int|string - */ - public function getTotalRowCount() - { - return $this->total_row_count; - } - - /** - * The total number of rows in the full result set, if known. - * This may be an estimate or an exact count. - * - * Generated from protobuf field int64 total_row_count = 3; - * @param int|string $var - * @return $this - */ - public function setTotalRowCount($var) - { - GPBUtil::checkInt64($var); - $this->total_row_count = $var; - - return $this; - } - - /** - * Set to true if the returned rows in `query_result` are a subset of the - * full result. This can happen, for example, if the query execution hits a - * row limit. When true, the `query_result` does not contain all - * rows. To retrieve the complete result, consider using the - * `generated_query` in `QueryDataResponse` and executing it in your own - * environment. - * - * Generated from protobuf field bool partial_result = 4; - * @return bool - */ - public function getPartialResult() - { - return $this->partial_result; - } - - /** - * Set to true if the returned rows in `query_result` are a subset of the - * full result. This can happen, for example, if the query execution hits a - * row limit. When true, the `query_result` does not contain all - * rows. To retrieve the complete result, consider using the - * `generated_query` in `QueryDataResponse` and executing it in your own - * environment. - * - * Generated from protobuf field bool partial_result = 4; - * @param bool $var - * @return $this - */ - public function setPartialResult($var) - { - GPBUtil::checkBool($var); - $this->partial_result = $var; - - return $this; - } - - /** - * The error message if the query execution failed. - * - * Generated from protobuf field string query_execution_error = 5; - * @return string - */ - public function getQueryExecutionError() - { - return $this->query_execution_error; - } - - /** - * The error message if the query execution failed. - * - * Generated from protobuf field string query_execution_error = 5; - * @param string $var - * @return $this - */ - public function setQueryExecutionError($var) - { - GPBUtil::checkString($var, True); - $this->query_execution_error = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Column.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Column.php deleted file mode 100644 index 70b267680ae5..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Column.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column - */ -class Column extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the column. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP"). - * - * Generated from protobuf field string type = 2; - */ - protected $type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the column. - * @type string $type - * The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP"). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * The name of the column. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the column. - * - * 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; - } - - /** - * The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP"). - * - * Generated from protobuf field string type = 2; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP"). - * - * Generated from protobuf field string type = 2; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Row.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Row.php deleted file mode 100644 index dbdb343eb341..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Row.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row - */ -class Row extends \Google\Protobuf\Internal\Message -{ - /** - * The values in the row, corresponding positionally to the columns. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Value[] $values - * The values in the row, corresponding positionally to the columns. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * The values in the row, corresponding positionally to the columns. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Value> - */ - public function getValues() - { - return $this->values; - } - - /** - * The values in the row, corresponding positionally to the columns. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Value[] $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult\Value::class); - $this->values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Value.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Value.php deleted file mode 100644 index fd4dc0e6d314..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ExecutedQueryResult/Value.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value - */ -class Value extends \Google\Protobuf\Internal\Message -{ - /** - * The cell value, represented in a string format. - * Timestamps could be formatted, for example, using RFC3339Nano. - * This field is used if the value is not null. - * - * Generated from protobuf field string value = 1; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * The cell value, represented in a string format. - * Timestamps could be formatted, for example, using RFC3339Nano. - * This field is used if the value is not null. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * The cell value, represented in a string format. - * Timestamps could be formatted, for example, using RFC3339Nano. - * This field is used if the value is not null. - * - * Generated from protobuf field string value = 1; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The cell value, represented in a string format. - * Timestamps could be formatted, for example, using RFC3339Nano. - * This field is used if the value is not null. - * - * Generated from protobuf field string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Field.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Field.php deleted file mode 100644 index dea0c89210ed..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Field.php +++ /dev/null @@ -1,397 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.Field - */ -class Field extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The name of the field. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - /** - * Optional. The type of the field. - * - * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $type = ''; - /** - * Optional. A brief description of the field. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. The mode of the field (e.g., NULLABLE, REPEATED). - * - * Generated from protobuf field string mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $mode = ''; - /** - * Optional. A list of alternative names or synonyms that can be used to refer - * to this field. For example: ["id", "customerid", "cust_id"]. Currently only - * used for BigQuery data sources. - * - * Generated from protobuf field repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $synonyms; - /** - * Optional. A list of tags or keywords associated with the field, used for - * categorization. For example: ["identifier", "customer", "pii"]. Currently - * only used for BigQuery data sources. - * - * Generated from protobuf field repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $tags; - /** - * Optional. Field display_name (same as label in - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. Recursive property for nested schema structures. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Field subfields = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $subfields; - /** - * Optional. Field category, not required, currently only useful for Looker. - * - * Generated from protobuf field string category = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $category = ''; - /** - * Optional. Looker only. Value format of the field. - * Ref: - * https://cloud.google.com/looker/docs/reference/param-field-value-format - * - * Generated from protobuf field string value_format = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $value_format = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Optional. The name of the field. - * @type string $type - * Optional. The type of the field. - * @type string $description - * Optional. A brief description of the field. - * @type string $mode - * Optional. The mode of the field (e.g., NULLABLE, REPEATED). - * @type string[] $synonyms - * Optional. A list of alternative names or synonyms that can be used to refer - * to this field. For example: ["id", "customerid", "cust_id"]. Currently only - * used for BigQuery data sources. - * @type string[] $tags - * Optional. A list of tags or keywords associated with the field, used for - * categorization. For example: ["identifier", "customer", "pii"]. Currently - * only used for BigQuery data sources. - * @type string $display_name - * Optional. Field display_name (same as label in - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Field[] $subfields - * Optional. Recursive property for nested schema structures. - * @type string $category - * Optional. Field category, not required, currently only useful for Looker. - * @type string $value_format - * Optional. Looker only. Value format of the field. - * Ref: - * https://cloud.google.com/looker/docs/reference/param-field-value-format - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The name of the field. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. The name of the field. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The type of the field. - * - * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Optional. The type of the field. - * - * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Optional. A brief description of the field. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A brief description of the field. - * - * 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. The mode of the field (e.g., NULLABLE, REPEATED). - * - * Generated from protobuf field string mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMode() - { - return $this->mode; - } - - /** - * Optional. The mode of the field (e.g., NULLABLE, REPEATED). - * - * Generated from protobuf field string mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkString($var, True); - $this->mode = $var; - - return $this; - } - - /** - * Optional. A list of alternative names or synonyms that can be used to refer - * to this field. For example: ["id", "customerid", "cust_id"]. Currently only - * used for BigQuery data sources. - * - * Generated from protobuf field repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getSynonyms() - { - return $this->synonyms; - } - - /** - * Optional. A list of alternative names or synonyms that can be used to refer - * to this field. For example: ["id", "customerid", "cust_id"]. Currently only - * used for BigQuery data sources. - * - * Generated from protobuf field repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setSynonyms($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->synonyms = $arr; - - return $this; - } - - /** - * Optional. A list of tags or keywords associated with the field, used for - * categorization. For example: ["identifier", "customer", "pii"]. Currently - * only used for BigQuery data sources. - * - * Generated from protobuf field repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Optional. A list of tags or keywords associated with the field, used for - * categorization. For example: ["identifier", "customer", "pii"]. Currently - * only used for BigQuery data sources. - * - * Generated from protobuf field repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Optional. Field display_name (same as label in - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Field display_name (same as label in - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Recursive property for nested schema structures. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Field subfields = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\Field> - */ - public function getSubfields() - { - return $this->subfields; - } - - /** - * Optional. Recursive property for nested schema structures. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Field subfields = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Field[] $var - * @return $this - */ - public function setSubfields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\Field::class); - $this->subfields = $arr; - - return $this; - } - - /** - * Optional. Field category, not required, currently only useful for Looker. - * - * Generated from protobuf field string category = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCategory() - { - return $this->category; - } - - /** - * Optional. Field category, not required, currently only useful for Looker. - * - * Generated from protobuf field string category = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkString($var, True); - $this->category = $var; - - return $this; - } - - /** - * Optional. Looker only. Value format of the field. - * Ref: - * https://cloud.google.com/looker/docs/reference/param-field-value-format - * - * Generated from protobuf field string value_format = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getValueFormat() - { - return $this->value_format; - } - - /** - * Optional. Looker only. Value format of the field. - * Ref: - * https://cloud.google.com/looker/docs/reference/param-field-value-format - * - * Generated from protobuf field string value_format = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setValueFormat($var) - { - GPBUtil::checkString($var, True); - $this->value_format = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GenerationOptions.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GenerationOptions.php deleted file mode 100644 index a8cf32589d61..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GenerationOptions.php +++ /dev/null @@ -1,185 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.GenerationOptions - */ -class GenerationOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. If true, the generated query will be executed, and the result - * data will be returned in the response. - * - * Generated from protobuf field bool generate_query_result = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $generate_query_result = false; - /** - * Optional. If true, a natural language answer based on the query execution - * result will be generated and returned in the response. - * - * Generated from protobuf field bool generate_natural_language_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $generate_natural_language_answer = false; - /** - * Optional. If true, an explanation of the generated query will be returned - * in the response. - * - * Generated from protobuf field bool generate_explanation = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $generate_explanation = false; - /** - * Optional. If true (default to false), the service may return a - * clarifying_question if the input query is ambiguous. - * - * Generated from protobuf field bool generate_disambiguation_question = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $generate_disambiguation_question = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $generate_query_result - * Optional. If true, the generated query will be executed, and the result - * data will be returned in the response. - * @type bool $generate_natural_language_answer - * Optional. If true, a natural language answer based on the query execution - * result will be generated and returned in the response. - * @type bool $generate_explanation - * Optional. If true, an explanation of the generated query will be returned - * in the response. - * @type bool $generate_disambiguation_question - * Optional. If true (default to false), the service may return a - * clarifying_question if the input query is ambiguous. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. If true, the generated query will be executed, and the result - * data will be returned in the response. - * - * Generated from protobuf field bool generate_query_result = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getGenerateQueryResult() - { - return $this->generate_query_result; - } - - /** - * Optional. If true, the generated query will be executed, and the result - * data will be returned in the response. - * - * Generated from protobuf field bool generate_query_result = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setGenerateQueryResult($var) - { - GPBUtil::checkBool($var); - $this->generate_query_result = $var; - - return $this; - } - - /** - * Optional. If true, a natural language answer based on the query execution - * result will be generated and returned in the response. - * - * Generated from protobuf field bool generate_natural_language_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getGenerateNaturalLanguageAnswer() - { - return $this->generate_natural_language_answer; - } - - /** - * Optional. If true, a natural language answer based on the query execution - * result will be generated and returned in the response. - * - * Generated from protobuf field bool generate_natural_language_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setGenerateNaturalLanguageAnswer($var) - { - GPBUtil::checkBool($var); - $this->generate_natural_language_answer = $var; - - return $this; - } - - /** - * Optional. If true, an explanation of the generated query will be returned - * in the response. - * - * Generated from protobuf field bool generate_explanation = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getGenerateExplanation() - { - return $this->generate_explanation; - } - - /** - * Optional. If true, an explanation of the generated query will be returned - * in the response. - * - * Generated from protobuf field bool generate_explanation = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setGenerateExplanation($var) - { - GPBUtil::checkBool($var); - $this->generate_explanation = $var; - - return $this; - } - - /** - * Optional. If true (default to false), the service may return a - * clarifying_question if the input query is ambiguous. - * - * Generated from protobuf field bool generate_disambiguation_question = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getGenerateDisambiguationQuestion() - { - return $this->generate_disambiguation_question; - } - - /** - * Optional. If true (default to false), the service may return a - * clarifying_question if the input query is ambiguous. - * - * Generated from protobuf field bool generate_disambiguation_question = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setGenerateDisambiguationQuestion($var) - { - GPBUtil::checkBool($var); - $this->generate_disambiguation_question = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GetConversationRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GetConversationRequest.php deleted file mode 100644 index 42f43cc54df7..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GetConversationRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.GetConversationRequest - */ -class GetConversationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * Please see {@see DataChatServiceClient::conversationName()} for help formatting this field. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\GetConversationRequest - * - * @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. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Conversation::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * - * 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. Name of the resource. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation}` - * - * 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GetDataAgentRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GetDataAgentRequest.php deleted file mode 100644 index d01d49962a43..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GetDataAgentRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest - */ -class GetDataAgentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the resource. Please see - * {@see DataAgentServiceClient::dataAgentName()} for help formatting this field. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\GetDataAgentRequest - * - * @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. Name of the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource. - * - * 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. Name of the resource. - * - * 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GlossaryTerm.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GlossaryTerm.php deleted file mode 100644 index a2a158f65916..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/GlossaryTerm.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.GlossaryTerm - */ -class GlossaryTerm extends \Google\Protobuf\Internal\Message -{ - /** - * Required. User friendly display name of the glossary term being defined. - * For example: "CTR", "conversion rate", "pending" - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Required. The description or meaning of the term. - * For example: "Click-through rate", "The percentage of users who complete a - * desired action", "An order that is waiting to be processed." - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $description = ''; - /** - * Optional. A list of general purpose labels associated to this term. - * For example: ["click rate", "clickthrough", "waiting"] - * - * Generated from protobuf field repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Required. User friendly display name of the glossary term being defined. - * For example: "CTR", "conversion rate", "pending" - * @type string $description - * Required. The description or meaning of the term. - * For example: "Click-through rate", "The percentage of users who complete a - * desired action", "An order that is waiting to be processed." - * @type string[] $labels - * Optional. A list of general purpose labels associated to this term. - * For example: ["click rate", "clickthrough", "waiting"] - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); - parent::__construct($data); - } - - /** - * Required. User friendly display name of the glossary term being defined. - * For example: "CTR", "conversion rate", "pending" - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. User friendly display name of the glossary term being defined. - * For example: "CTR", "conversion rate", "pending" - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. The description or meaning of the term. - * For example: "Click-through rate", "The percentage of users who complete a - * desired action", "An order that is waiting to be processed." - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Required. The description or meaning of the term. - * For example: "Click-through rate", "The percentage of users who complete a - * desired action", "An order that is waiting to be processed." - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. A list of general purpose labels associated to this term. - * For example: ["click rate", "clickthrough", "waiting"] - * - * Generated from protobuf field repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. A list of general purpose labels associated to this term. - * For example: ["click rate", "clickthrough", "waiting"] - * - * Generated from protobuf field repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsRequest.php deleted file mode 100644 index 6a46fd5aa357..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsRequest.php +++ /dev/null @@ -1,313 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest - */ -class ListAccessibleDataAgentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent value for ListAccessibleDataAgentsRequest. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * 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 `ListAccessibleDataAgents` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAccessibleDataAgents` must match the call that provided the page - * token. The service may return fewer than this value. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. User specification for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. If true, the list results will include soft-deleted DataAgents. - * Defaults to false. - * - * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $show_deleted = false; - /** - * Optional. Filter for the creator of the agent. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest.CreatorFilter creator_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $creator_filter = 0; - - /** - * @param string $parent Required. Parent value for ListAccessibleDataAgentsRequest. Please see - * {@see DataAgentServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ListAccessibleDataAgentsRequest - * - * @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. Parent value for ListAccessibleDataAgentsRequest. - * @type int $page_size - * Optional. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * @type string $page_token - * Optional. A page token, received from a previous `ListAccessibleDataAgents` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAccessibleDataAgents` must match the call that provided the page - * token. The service may return fewer than this value. - * @type string $filter - * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * @type string $order_by - * Optional. User specification for how to order the results. - * @type bool $show_deleted - * Optional. If true, the list results will include soft-deleted DataAgents. - * Defaults to false. - * @type int $creator_filter - * Optional. Filter for the creator of the agent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent value for ListAccessibleDataAgentsRequest. - * - * 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. Parent value for ListAccessibleDataAgentsRequest. - * - * 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. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * 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 `ListAccessibleDataAgents` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAccessibleDataAgents` must match the call that provided the page - * token. The service may return fewer than this value. - * - * 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 `ListAccessibleDataAgents` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAccessibleDataAgents` must match the call that provided the page - * token. The service may return fewer than this value. - * - * 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. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * - * 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; - } - - /** - * Optional. User specification for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. User specification for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.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. If true, the list results will include soft-deleted DataAgents. - * Defaults to false. - * - * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getShowDeleted() - { - return $this->show_deleted; - } - - /** - * Optional. If true, the list results will include soft-deleted DataAgents. - * Defaults to false. - * - * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setShowDeleted($var) - { - GPBUtil::checkBool($var); - $this->show_deleted = $var; - - return $this; - } - - /** - * Optional. Filter for the creator of the agent. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest.CreatorFilter creator_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getCreatorFilter() - { - return $this->creator_filter; - } - - /** - * Optional. Filter for the creator of the agent. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest.CreatorFilter creator_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setCreatorFilter($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ListAccessibleDataAgentsRequest\CreatorFilter::class); - $this->creator_filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsRequest/CreatorFilter.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsRequest/CreatorFilter.php deleted file mode 100644 index 567ffa204669..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsRequest/CreatorFilter.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest.CreatorFilter - */ -class CreatorFilter -{ - /** - * Default value. - * - * Generated from protobuf enum CREATOR_FILTER_UNSPECIFIED = 0; - */ - const CREATOR_FILTER_UNSPECIFIED = 0; - /** - * No creator-specific filter will be applied. All agents will be returned. - * - * Generated from protobuf enum NONE = 1; - */ - const NONE = 1; - /** - * Only agents created by the user calling the API will be returned. - * - * Generated from protobuf enum CREATOR_ONLY = 2; - */ - const CREATOR_ONLY = 2; - /** - * Only agents not created by the user calling the API will be returned. - * - * Generated from protobuf enum NOT_CREATOR_ONLY = 3; - */ - const NOT_CREATOR_ONLY = 3; - - private static $valueToName = [ - self::CREATOR_FILTER_UNSPECIFIED => 'CREATOR_FILTER_UNSPECIFIED', - self::NONE => 'NONE', - self::CREATOR_ONLY => 'CREATOR_ONLY', - self::NOT_CREATOR_ONLY => 'NOT_CREATOR_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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsResponse.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsResponse.php deleted file mode 100644 index d4e87fbb7a16..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListAccessibleDataAgentsResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse - */ -class ListAccessibleDataAgentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of accessible DataAgent. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DataAgent data_agents = 1; - */ - private $data_agents; - /** - * The next page token or empty if none. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Unordered list. Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent[] $data_agents - * The list of accessible DataAgent. - * @type string $next_page_token - * The next page token or empty if none. - * @type string[] $unreachable - * Unordered list. Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgentService::initOnce(); - parent::__construct($data); - } - - /** - * The list of accessible DataAgent. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DataAgent data_agents = 1; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent> - */ - public function getDataAgents() - { - return $this->data_agents; - } - - /** - * The list of accessible DataAgent. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DataAgent data_agents = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent[] $var - * @return $this - */ - public function setDataAgents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent::class); - $this->data_agents = $arr; - - return $this; - } - - /** - * The next page token or empty if none. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The next page token or empty if none. - * - * 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; - } - - /** - * Unordered list. Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Unordered list. Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListConversationsRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListConversationsRequest.php deleted file mode 100644 index 12ad4ed74775..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListConversationsRequest.php +++ /dev/null @@ -1,212 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ListConversationsRequest - */ -class ListConversationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent value for ListConversationsRequest. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is `100`. All larger page sizes will be - * coerced to `100`. If unspecified, server will pick `50` as an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Returned conversations will match criteria specified within the - * filter. ListConversations allows filtering by: - * * agents - * * labels - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Parent value for ListConversationsRequest. - * Format: `projects/{project}/locations/{location}` - * Please see {@see DataChatServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ListConversationsRequest - * - * @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. Parent value for ListConversationsRequest. - * Format: `projects/{project}/locations/{location}` - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is `100`. All larger page sizes will be - * coerced to `100`. If unspecified, server will pick `50` as an appropriate - * default. - * @type string $page_token - * Optional. A token identifying a page of results the server should return. - * @type string $filter - * Optional. Returned conversations will match criteria specified within the - * filter. ListConversations allows filtering by: - * * agents - * * labels - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Conversation::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent value for ListConversationsRequest. - * Format: `projects/{project}/locations/{location}` - * - * 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. Parent value for ListConversationsRequest. - * Format: `projects/{project}/locations/{location}` - * - * 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. Requested page size. Server may return fewer items than - * requested. The max page size is `100`. All larger page sizes will be - * coerced to `100`. If unspecified, server will pick `50` as an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is `100`. All larger page sizes will be - * coerced to `100`. If unspecified, server will pick `50` as an appropriate - * default. - * - * 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 token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * 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. Returned conversations will match criteria specified within the - * filter. ListConversations allows filtering by: - * * agents - * * labels - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Returned conversations will match criteria specified within the - * filter. ListConversations allows filtering by: - * * agents - * * labels - * - * 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListConversationsResponse.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListConversationsResponse.php deleted file mode 100644 index 641e7ddcc0da..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListConversationsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ListConversationsResponse - */ -class ListConversationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of conversations. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Conversation conversations = 1; - */ - private $conversations; - /** - * A token identifying a page of results the server should return. - * - * 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\GeminiDataAnalytics\V1beta\Conversation[] $conversations - * The list of conversations. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Conversation::initOnce(); - parent::__construct($data); - } - - /** - * The list of conversations. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Conversation conversations = 1; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\Conversation> - */ - public function getConversations() - { - return $this->conversations; - } - - /** - * The list of conversations. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Conversation conversations = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Conversation[] $var - * @return $this - */ - public function setConversations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\Conversation::class); - $this->conversations = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListDataAgentsRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListDataAgentsRequest.php deleted file mode 100644 index 81e1650496d8..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListDataAgentsRequest.php +++ /dev/null @@ -1,279 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ListDataAgentsRequest - */ -class ListDataAgentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent value for ListDataAgentsRequest. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * 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 `ListDataAgents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataAgents` must - * match the call that provided the page token. The service may return fewer - * than this value. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. User specification for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. If true, the list results will include soft-deleted DataAgents. - * Defaults to false. - * - * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $show_deleted = false; - - /** - * @param string $parent Required. Parent value for ListDataAgentsRequest. Please see - * {@see DataAgentServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ListDataAgentsRequest - * - * @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. Parent value for ListDataAgentsRequest. - * @type int $page_size - * Optional. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * @type string $page_token - * Optional. A page token, received from a previous `ListDataAgents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataAgents` must - * match the call that provided the page token. The service may return fewer - * than this value. - * @type string $filter - * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * @type string $order_by - * Optional. User specification for how to order the results. - * @type bool $show_deleted - * Optional. If true, the list results will include soft-deleted DataAgents. - * Defaults to false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent value for ListDataAgentsRequest. - * - * 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. Parent value for ListDataAgentsRequest. - * - * 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. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * 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 `ListDataAgents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataAgents` must - * match the call that provided the page token. The service may return fewer - * than this value. - * - * 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 `ListDataAgents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataAgents` must - * match the call that provided the page token. The service may return fewer - * than this value. - * - * 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. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * - * 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; - } - - /** - * Optional. User specification for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. User specification for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.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. If true, the list results will include soft-deleted DataAgents. - * Defaults to false. - * - * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getShowDeleted() - { - return $this->show_deleted; - } - - /** - * Optional. If true, the list results will include soft-deleted DataAgents. - * Defaults to false. - * - * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setShowDeleted($var) - { - GPBUtil::checkBool($var); - $this->show_deleted = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListDataAgentsResponse.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListDataAgentsResponse.php deleted file mode 100644 index 27ebec75ff15..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListDataAgentsResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ListDataAgentsResponse - */ -class ListDataAgentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of DataAgent. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DataAgent data_agents = 1; - */ - private $data_agents; - /** - * The next page token or empty if none. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Unordered list. Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent[] $data_agents - * The list of DataAgent. - * @type string $next_page_token - * The next page token or empty if none. - * @type string[] $unreachable - * Unordered list. Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgentService::initOnce(); - parent::__construct($data); - } - - /** - * The list of DataAgent. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DataAgent data_agents = 1; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent> - */ - public function getDataAgents() - { - return $this->data_agents; - } - - /** - * The list of DataAgent. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DataAgent data_agents = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent[] $var - * @return $this - */ - public function setDataAgents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent::class); - $this->data_agents = $arr; - - return $this; - } - - /** - * The next page token or empty if none. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The next page token or empty if none. - * - * 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; - } - - /** - * Unordered list. Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Unordered list. Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListMessagesRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListMessagesRequest.php deleted file mode 100644 index e4bc1cf4f2b4..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListMessagesRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ListMessagesRequest - */ -class ListMessagesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The conversation to list messages under. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is `100`. All larger page sizes will be - * coerced to `100`. If unspecified, server will pick `50` as an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * ListMessages allows filtering by: - * * create_time (e.g., `createTime > "2025-01-28T06:51:56-08:00"`) - * * update_time - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The conversation to list messages under. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * Please see {@see DataChatServiceClient::conversationName()} for help formatting this field. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ListMessagesRequest - * - * @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 conversation to list messages under. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is `100`. All larger page sizes will be - * coerced to `100`. If unspecified, server will pick `50` as an appropriate - * default. - * @type string $page_token - * Optional. A token identifying a page of results the server should return. - * @type string $filter - * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * ListMessages allows filtering by: - * * create_time (e.g., `createTime > "2025-01-28T06:51:56-08:00"`) - * * update_time - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The conversation to list messages under. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * - * 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 conversation to list messages under. - * Format: - * `projects/{project}/locations/{location}/conversations/{conversation_id}` - * - * 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. Requested page size. Server may return fewer items than - * requested. The max page size is `100`. All larger page sizes will be - * coerced to `100`. If unspecified, server will pick `50` as an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. The max page size is `100`. All larger page sizes will be - * coerced to `100`. If unspecified, server will pick `50` as an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 3 [(.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 token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 4 [(.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. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * ListMessages allows filtering by: - * * create_time (e.g., `createTime > "2025-01-28T06:51:56-08:00"`) - * * update_time - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for - * syntax. - * ListMessages allows filtering by: - * * create_time (e.g., `createTime > "2025-01-28T06:51:56-08:00"`) - * * update_time - * - * 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListMessagesResponse.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListMessagesResponse.php deleted file mode 100644 index f539292c47af..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ListMessagesResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ListMessagesResponse - */ -class ListMessagesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of chat messages. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.StorageMessage messages = 1; - */ - private $messages; - /** - * A token identifying a page of results the server should return. - * - * 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\GeminiDataAnalytics\V1beta\StorageMessage[] $messages - * The list of chat messages. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * The list of chat messages. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.StorageMessage messages = 1; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\StorageMessage> - */ - public function getMessages() - { - return $this->messages; - } - - /** - * The list of chat messages. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.StorageMessage messages = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\StorageMessage[] $var - * @return $this - */ - public function setMessages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\StorageMessage::class); - $this->messages = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerExploreReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerExploreReference.php deleted file mode 100644 index b8480b4db7e2..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerExploreReference.php +++ /dev/null @@ -1,244 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.LookerExploreReference - */ -class LookerExploreReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Looker model, as outlined in - * [Major LookML - * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). - * Name of the LookML model. - * - * Generated from protobuf field string lookml_model = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $lookml_model = ''; - /** - * Required. Looker Explore, as outlined in - * [Major LookML - * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). - * Name of the LookML Explore. - * - * Generated from protobuf field string explore = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $explore = ''; - /** - * Optional. The schema of the datasource. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema = null; - protected $instance; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $looker_instance_uri - * Required. The base url of the Looker instance. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\PrivateLookerInstanceInfo $private_looker_instance_info - * Private Looker instance info. - * @type string $lookml_model - * Required. Looker model, as outlined in - * [Major LookML - * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). - * Name of the LookML model. - * @type string $explore - * Required. Looker Explore, as outlined in - * [Major LookML - * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). - * Name of the LookML Explore. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $schema - * Optional. The schema of the datasource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Required. The base url of the Looker instance. - * - * Generated from protobuf field string looker_instance_uri = 9; - * @return string - */ - public function getLookerInstanceUri() - { - return $this->readOneof(9); - } - - public function hasLookerInstanceUri() - { - return $this->hasOneof(9); - } - - /** - * Required. The base url of the Looker instance. - * - * Generated from protobuf field string looker_instance_uri = 9; - * @param string $var - * @return $this - */ - public function setLookerInstanceUri($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Private Looker instance info. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.PrivateLookerInstanceInfo private_looker_instance_info = 10; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\PrivateLookerInstanceInfo|null - */ - public function getPrivateLookerInstanceInfo() - { - return $this->readOneof(10); - } - - public function hasPrivateLookerInstanceInfo() - { - return $this->hasOneof(10); - } - - /** - * Private Looker instance info. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.PrivateLookerInstanceInfo private_looker_instance_info = 10; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\PrivateLookerInstanceInfo $var - * @return $this - */ - public function setPrivateLookerInstanceInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\PrivateLookerInstanceInfo::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Required. Looker model, as outlined in - * [Major LookML - * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). - * Name of the LookML model. - * - * Generated from protobuf field string lookml_model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLookmlModel() - { - return $this->lookml_model; - } - - /** - * Required. Looker model, as outlined in - * [Major LookML - * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). - * Name of the LookML model. - * - * Generated from protobuf field string lookml_model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLookmlModel($var) - { - GPBUtil::checkString($var, True); - $this->lookml_model = $var; - - return $this; - } - - /** - * Required. Looker Explore, as outlined in - * [Major LookML - * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). - * Name of the LookML Explore. - * - * Generated from protobuf field string explore = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getExplore() - { - return $this->explore; - } - - /** - * Required. Looker Explore, as outlined in - * [Major LookML - * structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures). - * Name of the LookML Explore. - * - * Generated from protobuf field string explore = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setExplore($var) - { - GPBUtil::checkString($var, True); - $this->explore = $var; - - return $this; - } - - /** - * Optional. The schema of the datasource. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Schema|null - */ - public function getSchema() - { - return $this->schema; - } - - public function hasSchema() - { - return isset($this->schema); - } - - public function clearSchema() - { - unset($this->schema); - } - - /** - * Optional. The schema of the datasource. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Schema schema = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Schema $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Schema::class); - $this->schema = $var; - - return $this; - } - - /** - * @return string - */ - public function getInstance() - { - return $this->whichOneof("instance"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerExploreReferences.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerExploreReferences.php deleted file mode 100644 index 2f6d629e313e..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerExploreReferences.php +++ /dev/null @@ -1,142 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.LookerExploreReferences - */ -class LookerExploreReferences extends \Google\Protobuf\Internal\Message -{ - /** - * Required. References to Looker explores. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerExploreReference explore_references = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $explore_references; - /** - * Optional. Deprecated: Use credentials in ChatRequest. - * The credentials to use when calling the Looker API. - * Currently supports both OAuth token and API key-based credentials, as - * described in - * [Authentication with an - * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated - */ - protected $credentials = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReference[] $explore_references - * Required. References to Looker explores. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials $credentials - * Optional. Deprecated: Use credentials in ChatRequest. - * The credentials to use when calling the Looker API. - * Currently supports both OAuth token and API key-based credentials, as - * described in - * [Authentication with an - * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Required. References to Looker explores. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerExploreReference explore_references = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReference> - */ - public function getExploreReferences() - { - return $this->explore_references; - } - - /** - * Required. References to Looker explores. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerExploreReference explore_references = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReference[] $var - * @return $this - */ - public function setExploreReferences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerExploreReference::class); - $this->explore_references = $arr; - - return $this; - } - - /** - * Optional. Deprecated: Use credentials in ChatRequest. - * The credentials to use when calling the Looker API. - * Currently supports both OAuth token and API key-based credentials, as - * described in - * [Authentication with an - * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials|null - * @deprecated - */ - public function getCredentials() - { - if (isset($this->credentials)) { - @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); - } - return $this->credentials; - } - - public function hasCredentials() - { - if (isset($this->credentials)) { - @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); - } - return isset($this->credentials); - } - - public function clearCredentials() - { - @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); - unset($this->credentials); - } - - /** - * Optional. Deprecated: Use credentials in ChatRequest. - * The credentials to use when calling the Looker API. - * Currently supports both OAuth token and API key-based credentials, as - * described in - * [Authentication with an - * SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials $var - * @return $this - * @deprecated - */ - public function setCredentials($var) - { - @trigger_error('credentials is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Credentials::class); - $this->credentials = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerGoldenQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerGoldenQuery.php deleted file mode 100644 index ffc044fc8529..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerGoldenQuery.php +++ /dev/null @@ -1,116 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.LookerGoldenQuery - */ -class LookerGoldenQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Natural language questions that a user might ask. - * For example: "How many orders were placed last month?" - * - * Generated from protobuf field repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $natural_language_questions; - /** - * Optional. The Looker Query corresponding to the natural language questions. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $looker_query = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $natural_language_questions - * Optional. Natural language questions that a user might ask. - * For example: "How many orders were placed last month?" - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery $looker_query - * Optional. The Looker Query corresponding to the natural language questions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Natural language questions that a user might ask. - * For example: "How many orders were placed last month?" - * - * Generated from protobuf field repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getNaturalLanguageQuestions() - { - return $this->natural_language_questions; - } - - /** - * Optional. Natural language questions that a user might ask. - * For example: "How many orders were placed last month?" - * - * Generated from protobuf field repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setNaturalLanguageQuestions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->natural_language_questions = $arr; - - return $this; - } - - /** - * Optional. The Looker Query corresponding to the natural language questions. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery|null - */ - public function getLookerQuery() - { - return $this->looker_query; - } - - public function hasLookerQuery() - { - return isset($this->looker_query); - } - - public function clearLookerQuery() - { - unset($this->looker_query); - } - - /** - * Optional. The Looker Query corresponding to the natural language questions. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery $var - * @return $this - */ - public function setLookerQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery::class); - $this->looker_query = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerQuery.php deleted file mode 100644 index e9af2dac06e7..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerQuery.php +++ /dev/null @@ -1,353 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.LookerQuery - */ -class LookerQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The LookML model used to generate the query. - * - * Generated from protobuf field string model = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $model = ''; - /** - * Required. The LookML explore used to generate the query. - * - * Generated from protobuf field string explore = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $explore = ''; - /** - * Optional. The fields to retrieve from the explore. - * - * Generated from protobuf field repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $fields; - /** - * Optional. The filters to apply to the explore. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $filters; - /** - * Optional. The sorts to apply to the explore. - * - * Generated from protobuf field repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $sorts; - /** - * Optional. Limit in the query. - * - * Generated from protobuf field optional string limit = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $limit = null; - /** - * Optional. The primary identifier for the query resource in Looker, used for - * API operations. Maps to `id` (or `slug`) in the Looker API `Query` - * resource. - * - * Generated from protobuf field optional string query_id = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $query_id = null; - /** - * Optional. The short alphanumeric identifier for the query, used for share - * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` - * in the Looker API `Query` resource. - * - * Generated from protobuf field optional string client_id = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $client_id = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $model - * Required. The LookML model used to generate the query. - * @type string $explore - * Required. The LookML explore used to generate the query. - * @type string[] $fields - * Optional. The fields to retrieve from the explore. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery\Filter[] $filters - * Optional. The filters to apply to the explore. - * @type string[] $sorts - * Optional. The sorts to apply to the explore. - * @type string $limit - * Optional. Limit in the query. - * @type string $query_id - * Optional. The primary identifier for the query resource in Looker, used for - * API operations. Maps to `id` (or `slug`) in the Looker API `Query` - * resource. - * @type string $client_id - * Optional. The short alphanumeric identifier for the query, used for share - * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` - * in the Looker API `Query` resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); - parent::__construct($data); - } - - /** - * Required. The LookML model used to generate the query. - * - * Generated from protobuf field string model = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getModel() - { - return $this->model; - } - - /** - * Required. The LookML model used to generate the query. - * - * Generated from protobuf field string model = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setModel($var) - { - GPBUtil::checkString($var, True); - $this->model = $var; - - return $this; - } - - /** - * Required. The LookML explore used to generate the query. - * - * Generated from protobuf field string explore = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getExplore() - { - return $this->explore; - } - - /** - * Required. The LookML explore used to generate the query. - * - * Generated from protobuf field string explore = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setExplore($var) - { - GPBUtil::checkString($var, True); - $this->explore = $var; - - return $this; - } - - /** - * Optional. The fields to retrieve from the explore. - * - * Generated from protobuf field repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getFields() - { - return $this->fields; - } - - /** - * Optional. The fields to retrieve from the explore. - * - * Generated from protobuf field repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->fields = $arr; - - return $this; - } - - /** - * Optional. The filters to apply to the explore. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery\Filter> - */ - public function getFilters() - { - return $this->filters; - } - - /** - * Optional. The filters to apply to the explore. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery\Filter[] $var - * @return $this - */ - public function setFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery\Filter::class); - $this->filters = $arr; - - return $this; - } - - /** - * Optional. The sorts to apply to the explore. - * - * Generated from protobuf field repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getSorts() - { - return $this->sorts; - } - - /** - * Optional. The sorts to apply to the explore. - * - * Generated from protobuf field repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setSorts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->sorts = $arr; - - return $this; - } - - /** - * Optional. Limit in the query. - * - * Generated from protobuf field optional string limit = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getLimit() - { - return isset($this->limit) ? $this->limit : ''; - } - - public function hasLimit() - { - return isset($this->limit); - } - - public function clearLimit() - { - unset($this->limit); - } - - /** - * Optional. Limit in the query. - * - * Generated from protobuf field optional string limit = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkString($var, True); - $this->limit = $var; - - return $this; - } - - /** - * Optional. The primary identifier for the query resource in Looker, used for - * API operations. Maps to `id` (or `slug`) in the Looker API `Query` - * resource. - * - * Generated from protobuf field optional string query_id = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getQueryId() - { - return isset($this->query_id) ? $this->query_id : ''; - } - - public function hasQueryId() - { - return isset($this->query_id); - } - - public function clearQueryId() - { - unset($this->query_id); - } - - /** - * Optional. The primary identifier for the query resource in Looker, used for - * API operations. Maps to `id` (or `slug`) in the Looker API `Query` - * resource. - * - * Generated from protobuf field optional string query_id = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setQueryId($var) - { - GPBUtil::checkString($var, True); - $this->query_id = $var; - - return $this; - } - - /** - * Optional. The short alphanumeric identifier for the query, used for share - * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` - * in the Looker API `Query` resource. - * - * Generated from protobuf field optional string client_id = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getClientId() - { - return isset($this->client_id) ? $this->client_id : ''; - } - - public function hasClientId() - { - return isset($this->client_id); - } - - public function clearClientId() - { - unset($this->client_id); - } - - /** - * Optional. The short alphanumeric identifier for the query, used for share - * links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` - * in the Looker API `Query` resource. - * - * Generated from protobuf field optional string client_id = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setClientId($var) - { - GPBUtil::checkString($var, True); - $this->client_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerQuery/Filter.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerQuery/Filter.php deleted file mode 100644 index 674f2f79180d..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/LookerQuery/Filter.php +++ /dev/null @@ -1,119 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.LookerQuery.Filter - */ -class Filter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The field to filter on. - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $field = ''; - /** - * Optional. The value for the field to filter on. - * Optional so we can preserve the default value as an empty - * string, important to get a valid and working Looker Explore url. - * - * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field - * Required. The field to filter on. - * @type string $value - * Optional. The value for the field to filter on. - * Optional so we can preserve the default value as an empty - * string, important to get a valid and working Looker Explore url. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce(); - parent::__construct($data); - } - - /** - * Required. The field to filter on. - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * Required. The field to filter on. - * - * 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. The value for the field to filter on. - * Optional so we can preserve the default value as an empty - * string, important to get a valid and working Looker Explore url. - * - * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getValue() - { - return isset($this->value) ? $this->value : ''; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * Optional. The value for the field to filter on. - * Optional so we can preserve the default value as an empty - * string, important to get a valid and working Looker Explore url. - * - * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Message.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Message.php deleted file mode 100644 index a02fd69f42ba..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Message.php +++ /dev/null @@ -1,194 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.Message - */ -class Message extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. For user messages, this is the time at which the system - * received the message. For system messages, this is the time at which the - * system generated the message. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $timestamp = null; - /** - * Optional. unique id of the message in the conversation for persistence. - * - * Generated from protobuf field string message_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $message_id = ''; - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\UserMessage $user_message - * A message from the user that is interacting with the system. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\SystemMessage $system_message - * A message from the system in response to the user. - * @type \Google\Protobuf\Timestamp $timestamp - * Output only. For user messages, this is the time at which the system - * received the message. For system messages, this is the time at which the - * system generated the message. - * @type string $message_id - * Optional. unique id of the message in the conversation for persistence. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * A message from the user that is interacting with the system. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.UserMessage user_message = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\UserMessage|null - */ - public function getUserMessage() - { - return $this->readOneof(2); - } - - public function hasUserMessage() - { - return $this->hasOneof(2); - } - - /** - * A message from the user that is interacting with the system. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.UserMessage user_message = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\UserMessage $var - * @return $this - */ - public function setUserMessage($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\UserMessage::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A message from the system in response to the user. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SystemMessage system_message = 3; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\SystemMessage|null - */ - public function getSystemMessage() - { - return $this->readOneof(3); - } - - public function hasSystemMessage() - { - return $this->hasOneof(3); - } - - /** - * A message from the system in response to the user. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SystemMessage system_message = 3; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\SystemMessage $var - * @return $this - */ - public function setSystemMessage($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\SystemMessage::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Output only. For user messages, this is the time at which the system - * received the message. For system messages, this is the time at which the - * system generated the message. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestamp() - { - return $this->timestamp; - } - - public function hasTimestamp() - { - return isset($this->timestamp); - } - - public function clearTimestamp() - { - unset($this->timestamp); - } - - /** - * Output only. For user messages, this is the time at which the system - * received the message. For system messages, this is the time at which the - * system generated the message. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->timestamp = $var; - - return $this; - } - - /** - * Optional. unique id of the message in the conversation for persistence. - * - * Generated from protobuf field string message_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMessageId() - { - return $this->message_id; - } - - /** - * Optional. unique id of the message in the conversation for persistence. - * - * Generated from protobuf field string message_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMessageId($var) - { - GPBUtil::checkString($var, True); - $this->message_id = $var; - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials.php deleted file mode 100644 index 142e396d22a0..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.OAuthCredentials - */ -class OAuthCredentials extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials\SecretBased $secret - * Secret-based OAuth credentials. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials\TokenBased $token - * Token-based OAuth credentials. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Credentials::initOnce(); - parent::__construct($data); - } - - /** - * Secret-based OAuth credentials. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.OAuthCredentials.SecretBased secret = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials\SecretBased|null - */ - public function getSecret() - { - return $this->readOneof(2); - } - - public function hasSecret() - { - return $this->hasOneof(2); - } - - /** - * Secret-based OAuth credentials. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.OAuthCredentials.SecretBased secret = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials\SecretBased $var - * @return $this - */ - public function setSecret($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials\SecretBased::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Token-based OAuth credentials. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.OAuthCredentials.TokenBased token = 3; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials\TokenBased|null - */ - public function getToken() - { - return $this->readOneof(3); - } - - public function hasToken() - { - return $this->hasOneof(3); - } - - /** - * Token-based OAuth credentials. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.OAuthCredentials.TokenBased token = 3; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials\TokenBased $var - * @return $this - */ - public function setToken($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\OAuthCredentials\TokenBased::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials/SecretBased.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials/SecretBased.php deleted file mode 100644 index 877bf6e2541a..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials/SecretBased.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.OAuthCredentials.SecretBased - */ -class SecretBased extends \Google\Protobuf\Internal\Message -{ - /** - * Required. An OAuth client ID. - * - * Generated from protobuf field string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $client_id = ''; - /** - * Required. An OAuth client secret. - * - * Generated from protobuf field string client_secret = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $client_secret = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $client_id - * Required. An OAuth client ID. - * @type string $client_secret - * Required. An OAuth client secret. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Credentials::initOnce(); - parent::__construct($data); - } - - /** - * Required. An OAuth client ID. - * - * Generated from protobuf field string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getClientId() - { - return $this->client_id; - } - - /** - * Required. An OAuth client ID. - * - * Generated from protobuf field string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setClientId($var) - { - GPBUtil::checkString($var, True); - $this->client_id = $var; - - return $this; - } - - /** - * Required. An OAuth client secret. - * - * Generated from protobuf field string client_secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getClientSecret() - { - return $this->client_secret; - } - - /** - * Required. An OAuth client secret. - * - * Generated from protobuf field string client_secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setClientSecret($var) - { - GPBUtil::checkString($var, True); - $this->client_secret = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials/TokenBased.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials/TokenBased.php deleted file mode 100644 index 43de6c77d95b..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OAuthCredentials/TokenBased.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.OAuthCredentials.TokenBased - */ -class TokenBased extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the secret containing the access token. - * - * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $access_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $access_token - * Required. The name of the secret containing the access token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Credentials::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the secret containing the access token. - * - * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAccessToken() - { - return $this->access_token; - } - - /** - * Required. The name of the secret containing the access token. - * - * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAccessToken($var) - { - GPBUtil::checkString($var, True); - $this->access_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OperationMetadata.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OperationMetadata.php deleted file mode 100644 index 5e5eb78072f6..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/OperationMetadata.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status_message = ''; - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requested_cancellation = false; - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $api_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the operation finished running. - * @type string $target - * Output only. Server-defined resource path for the target of the operation. - * @type string $verb - * Output only. Name of the verb executed by the operation. - * @type string $status_message - * Output only. Human-readable status of the operation, if any. - * @type bool $requested_cancellation - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * @type string $api_version - * Output only. API version used to start the operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgentService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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 the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVerb() - { - return $this->verb; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVerb($var) - { - GPBUtil::checkString($var, True); - $this->verb = $var; - - return $this; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStatusMessage() - { - return $this->status_message; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStatusMessage($var) - { - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getRequestedCancellation() - { - return $this->requested_cancellation; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setRequestedCancellation($var) - { - GPBUtil::checkBool($var); - $this->requested_cancellation = $var; - - return $this; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getApiVersion() - { - return $this->api_version; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->api_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ParameterizedSecureViewParameters.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ParameterizedSecureViewParameters.php deleted file mode 100644 index 2f333b96a253..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/ParameterizedSecureViewParameters.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters - */ -class ParameterizedSecureViewParameters extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Named parameters for Parameterized Secure Views (PSV). - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters.Parameter parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $parameters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters\Parameter[] $parameters - * Optional. Named parameters for Parameterized Secure Views (PSV). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Named parameters for Parameterized Secure Views (PSV). - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters.Parameter parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters\Parameter> - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * Optional. Named parameters for Parameterized Secure Views (PSV). - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters.Parameter parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters\Parameter[] $var - * @return $this - */ - public function setParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters\Parameter::class); - $this->parameters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/PrivateLookerInstanceInfo.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/PrivateLookerInstanceInfo.php deleted file mode 100644 index 95d2e8cf081a..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/PrivateLookerInstanceInfo.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.PrivateLookerInstanceInfo - */ -class PrivateLookerInstanceInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The Looker instance id. - * - * Generated from protobuf field string looker_instance_id = 1; - */ - protected $looker_instance_id = ''; - /** - * The service directory name of the Looker instance. - * - * Generated from protobuf field string service_directory_name = 2; - */ - protected $service_directory_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $looker_instance_id - * The Looker instance id. - * @type string $service_directory_name - * The service directory name of the Looker instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * The Looker instance id. - * - * Generated from protobuf field string looker_instance_id = 1; - * @return string - */ - public function getLookerInstanceId() - { - return $this->looker_instance_id; - } - - /** - * The Looker instance id. - * - * Generated from protobuf field string looker_instance_id = 1; - * @param string $var - * @return $this - */ - public function setLookerInstanceId($var) - { - GPBUtil::checkString($var, True); - $this->looker_instance_id = $var; - - return $this; - } - - /** - * The service directory name of the Looker instance. - * - * Generated from protobuf field string service_directory_name = 2; - * @return string - */ - public function getServiceDirectoryName() - { - return $this->service_directory_name; - } - - /** - * The service directory name of the Looker instance. - * - * Generated from protobuf field string service_directory_name = 2; - * @param string $var - * @return $this - */ - public function setServiceDirectoryName($var) - { - GPBUtil::checkString($var, True); - $this->service_directory_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataContext.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataContext.php deleted file mode 100644 index 44bfc5498f25..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataContext.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.QueryDataContext - */ -class QueryDataContext extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The datasource references to use for the query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $datasource_references = null; - /** - * Optional. Parameters for Parameterized Secure Views (PSV). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters parameterized_secure_view_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $parameterized_secure_view_parameters = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceReferences $datasource_references - * Required. The datasource references to use for the query. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters $parameterized_secure_view_parameters - * Optional. Parameters for Parameterized Secure Views (PSV). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The datasource references to use for the query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceReferences|null - */ - public function getDatasourceReferences() - { - return $this->datasource_references; - } - - public function hasDatasourceReferences() - { - return isset($this->datasource_references); - } - - public function clearDatasourceReferences() - { - unset($this->datasource_references); - } - - /** - * Required. The datasource references to use for the query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceReferences $var - * @return $this - */ - public function setDatasourceReferences($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DatasourceReferences::class); - $this->datasource_references = $var; - - return $this; - } - - /** - * Optional. Parameters for Parameterized Secure Views (PSV). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters parameterized_secure_view_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters|null - */ - public function getParameterizedSecureViewParameters() - { - return $this->parameterized_secure_view_parameters; - } - - public function hasParameterizedSecureViewParameters() - { - return isset($this->parameterized_secure_view_parameters); - } - - public function clearParameterizedSecureViewParameters() - { - unset($this->parameterized_secure_view_parameters); - } - - /** - * Optional. Parameters for Parameterized Secure Views (PSV). - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ParameterizedSecureViewParameters parameterized_secure_view_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters $var - * @return $this - */ - public function setParameterizedSecureViewParameters($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ParameterizedSecureViewParameters::class); - $this->parameterized_secure_view_parameters = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataRequest.php deleted file mode 100644 index 27d17a2af353..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataRequest.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.QueryDataRequest - */ -class QueryDataRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource to generate the query for. - * Format: projects/{project}/locations/{location} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The natural language query for which to generate query. - * Example: "What are the top 5 best selling products this month?" - * - * Generated from protobuf field string prompt = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $prompt = ''; - /** - * Required. The context for the data query, including the data sources to - * use. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $context = null; - /** - * Optional. Options to control query generation and execution behavior. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $generation_options = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource to generate the query for. - * Format: projects/{project}/locations/{location} - * @type string $prompt - * Required. The natural language query for which to generate query. - * Example: "What are the top 5 best selling products this month?" - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\QueryDataContext $context - * Required. The context for the data query, including the data sources to - * use. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\GenerationOptions $generation_options - * Optional. Options to control query generation and execution behavior. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource to generate the query for. - * Format: projects/{project}/locations/{location} - * - * 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 to generate the query for. - * Format: projects/{project}/locations/{location} - * - * 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 natural language query for which to generate query. - * Example: "What are the top 5 best selling products this month?" - * - * Generated from protobuf field string prompt = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPrompt() - { - return $this->prompt; - } - - /** - * Required. The natural language query for which to generate query. - * Example: "What are the top 5 best selling products this month?" - * - * Generated from protobuf field string prompt = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPrompt($var) - { - GPBUtil::checkString($var, True); - $this->prompt = $var; - - return $this; - } - - /** - * Required. The context for the data query, including the data sources to - * use. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\QueryDataContext|null - */ - public function getContext() - { - return $this->context; - } - - public function hasContext() - { - return isset($this->context); - } - - public function clearContext() - { - unset($this->context); - } - - /** - * Required. The context for the data query, including the data sources to - * use. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\QueryDataContext $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\QueryDataContext::class); - $this->context = $var; - - return $this; - } - - /** - * Optional. Options to control query generation and execution behavior. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\GenerationOptions|null - */ - public function getGenerationOptions() - { - return $this->generation_options; - } - - public function hasGenerationOptions() - { - return isset($this->generation_options); - } - - public function clearGenerationOptions() - { - unset($this->generation_options); - } - - /** - * Optional. Options to control query generation and execution behavior. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\GenerationOptions $var - * @return $this - */ - public function setGenerationOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\GenerationOptions::class); - $this->generation_options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataResponse.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataResponse.php deleted file mode 100644 index 3f259556a2cd..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/QueryDataResponse.php +++ /dev/null @@ -1,253 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.QueryDataResponse - */ -class QueryDataResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Generated query for the given user prompt. - * - * Generated from protobuf field string generated_query = 1; - */ - protected $generated_query = ''; - /** - * A natural language explanation of the generated query. - * Populated if options.generate_explanation was true in the request. - * - * Generated from protobuf field string intent_explanation = 2; - */ - protected $intent_explanation = ''; - /** - * The result of executing the query. - * Populated if options.generate_query_result or - * options.generate_natural_language_answer was true in the request, and - * execution was successful or attempted. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; - */ - protected $query_result = null; - /** - * A natural language answer to the query, based on the query_result. - * Populated if options.generate_natural_language_answer was true in the - * request and query execution was successful based in the response from - * executeSql API. - * - * Generated from protobuf field string natural_language_answer = 4; - */ - protected $natural_language_answer = ''; - /** - * If ambiguity was detected in the natural language query and - * options.generate_disambiguation_question was true, this field contains a - * question to the user for clarification. The returned represents the - * service's best effort based on the ambiguous input. - * - * Generated from protobuf field repeated string disambiguation_question = 5; - */ - private $disambiguation_question; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $generated_query - * Generated query for the given user prompt. - * @type string $intent_explanation - * A natural language explanation of the generated query. - * Populated if options.generate_explanation was true in the request. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult $query_result - * The result of executing the query. - * Populated if options.generate_query_result or - * options.generate_natural_language_answer was true in the request, and - * execution was successful or attempted. - * @type string $natural_language_answer - * A natural language answer to the query, based on the query_result. - * Populated if options.generate_natural_language_answer was true in the - * request and query execution was successful based in the response from - * executeSql API. - * @type string[] $disambiguation_question - * If ambiguity was detected in the natural language query and - * options.generate_disambiguation_question was true, this field contains a - * question to the user for clarification. The returned represents the - * service's best effort based on the ambiguous input. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Generated query for the given user prompt. - * - * Generated from protobuf field string generated_query = 1; - * @return string - */ - public function getGeneratedQuery() - { - return $this->generated_query; - } - - /** - * Generated query for the given user prompt. - * - * Generated from protobuf field string generated_query = 1; - * @param string $var - * @return $this - */ - public function setGeneratedQuery($var) - { - GPBUtil::checkString($var, True); - $this->generated_query = $var; - - return $this; - } - - /** - * A natural language explanation of the generated query. - * Populated if options.generate_explanation was true in the request. - * - * Generated from protobuf field string intent_explanation = 2; - * @return string - */ - public function getIntentExplanation() - { - return $this->intent_explanation; - } - - /** - * A natural language explanation of the generated query. - * Populated if options.generate_explanation was true in the request. - * - * Generated from protobuf field string intent_explanation = 2; - * @param string $var - * @return $this - */ - public function setIntentExplanation($var) - { - GPBUtil::checkString($var, True); - $this->intent_explanation = $var; - - return $this; - } - - /** - * The result of executing the query. - * Populated if options.generate_query_result or - * options.generate_natural_language_answer was true in the request, and - * execution was successful or attempted. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult|null - */ - public function getQueryResult() - { - return $this->query_result; - } - - public function hasQueryResult() - { - return isset($this->query_result); - } - - public function clearQueryResult() - { - unset($this->query_result); - } - - /** - * The result of executing the query. - * Populated if options.generate_query_result or - * options.generate_natural_language_answer was true in the request, and - * execution was successful or attempted. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult $var - * @return $this - */ - public function setQueryResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ExecutedQueryResult::class); - $this->query_result = $var; - - return $this; - } - - /** - * A natural language answer to the query, based on the query_result. - * Populated if options.generate_natural_language_answer was true in the - * request and query execution was successful based in the response from - * executeSql API. - * - * Generated from protobuf field string natural_language_answer = 4; - * @return string - */ - public function getNaturalLanguageAnswer() - { - return $this->natural_language_answer; - } - - /** - * A natural language answer to the query, based on the query_result. - * Populated if options.generate_natural_language_answer was true in the - * request and query execution was successful based in the response from - * executeSql API. - * - * Generated from protobuf field string natural_language_answer = 4; - * @param string $var - * @return $this - */ - public function setNaturalLanguageAnswer($var) - { - GPBUtil::checkString($var, True); - $this->natural_language_answer = $var; - - return $this; - } - - /** - * If ambiguity was detected in the natural language query and - * options.generate_disambiguation_question was true, this field contains a - * question to the user for clarification. The returned represents the - * service's best effort based on the ambiguous input. - * - * Generated from protobuf field repeated string disambiguation_question = 5; - * @return RepeatedField - */ - public function getDisambiguationQuestion() - { - return $this->disambiguation_question; - } - - /** - * If ambiguity was detected in the natural language query and - * options.generate_disambiguation_question was true, this field contains a - * question to the user for clarification. The returned represents the - * service's best effort based on the ambiguous input. - * - * Generated from protobuf field repeated string disambiguation_question = 5; - * @param string[] $var - * @return $this - */ - public function setDisambiguationQuestion($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->disambiguation_question = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Schema.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Schema.php deleted file mode 100644 index 6e4f1c9e5205..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/Schema.php +++ /dev/null @@ -1,273 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.Schema - */ -class Schema extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The fields in the schema. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Field fields = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $fields; - /** - * Optional. A textual description of the table's content and purpose. - * For example: "Contains information about customer orders in our e-commerce - * store." Currently only used for BigQuery data sources. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. A list of alternative names or synonyms that can be used to refer - * to the table. For example: ["sales", "orders", "purchases"]. Currently only - * used for BigQuery data sources. - * - * Generated from protobuf field repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $synonyms; - /** - * Optional. A list of tags or keywords associated with the table, used for - * categorization. For example: ["transaction", "revenue", "customer_data"]. - * Currently only used for BigQuery data sources. - * - * Generated from protobuf field repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $tags; - /** - * Optional. Table display_name (same as label in - * cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not - * required, currently only Looker has this field. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. The filters on the datasource's underlying data. Currently only - * used for Looker data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DataFilter filters = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $filters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Field[] $fields - * Optional. The fields in the schema. - * @type string $description - * Optional. A textual description of the table's content and purpose. - * For example: "Contains information about customer orders in our e-commerce - * store." Currently only used for BigQuery data sources. - * @type string[] $synonyms - * Optional. A list of alternative names or synonyms that can be used to refer - * to the table. For example: ["sales", "orders", "purchases"]. Currently only - * used for BigQuery data sources. - * @type string[] $tags - * Optional. A list of tags or keywords associated with the table, used for - * categorization. For example: ["transaction", "revenue", "customer_data"]. - * Currently only used for BigQuery data sources. - * @type string $display_name - * Optional. Table display_name (same as label in - * cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not - * required, currently only Looker has this field. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataFilter[] $filters - * Optional. The filters on the datasource's underlying data. Currently only - * used for Looker data sources. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The fields in the schema. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Field fields = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\Field> - */ - public function getFields() - { - return $this->fields; - } - - /** - * Optional. The fields in the schema. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Field fields = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Field[] $var - * @return $this - */ - public function setFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\Field::class); - $this->fields = $arr; - - return $this; - } - - /** - * Optional. A textual description of the table's content and purpose. - * For example: "Contains information about customer orders in our e-commerce - * store." Currently only used for BigQuery data sources. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A textual description of the table's content and purpose. - * For example: "Contains information about customer orders in our e-commerce - * store." Currently only used for BigQuery data sources. - * - * 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; - } - - /** - * Optional. A list of alternative names or synonyms that can be used to refer - * to the table. For example: ["sales", "orders", "purchases"]. Currently only - * used for BigQuery data sources. - * - * Generated from protobuf field repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getSynonyms() - { - return $this->synonyms; - } - - /** - * Optional. A list of alternative names or synonyms that can be used to refer - * to the table. For example: ["sales", "orders", "purchases"]. Currently only - * used for BigQuery data sources. - * - * Generated from protobuf field repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setSynonyms($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->synonyms = $arr; - - return $this; - } - - /** - * Optional. A list of tags or keywords associated with the table, used for - * categorization. For example: ["transaction", "revenue", "customer_data"]. - * Currently only used for BigQuery data sources. - * - * Generated from protobuf field repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Optional. A list of tags or keywords associated with the table, used for - * categorization. For example: ["transaction", "revenue", "customer_data"]. - * Currently only used for BigQuery data sources. - * - * Generated from protobuf field repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Optional. Table display_name (same as label in - * cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not - * required, currently only Looker has this field. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Table display_name (same as label in - * cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not - * required, currently only Looker has this field. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. The filters on the datasource's underlying data. Currently only - * used for Looker data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DataFilter filters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\DataFilter> - */ - public function getFilters() - { - return $this->filters; - } - - /** - * Optional. The filters on the datasource's underlying data. Currently only - * used for Looker data sources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DataFilter filters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataFilter[] $var - * @return $this - */ - public function setFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\DataFilter::class); - $this->filters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaMessage.php deleted file mode 100644 index ab3ae4282df6..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaMessage.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.SchemaMessage - */ -class SchemaMessage extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaQuery $query - * A schema resolution query. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaResult $result - * The result of a schema resolution query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * A schema resolution query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SchemaQuery query = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaQuery|null - */ - public function getQuery() - { - return $this->readOneof(1); - } - - public function hasQuery() - { - return $this->hasOneof(1); - } - - /** - * A schema resolution query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SchemaQuery query = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaQuery $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaQuery::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The result of a schema resolution query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SchemaResult result = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaResult|null - */ - public function getResult() - { - return $this->readOneof(2); - } - - public function hasResult() - { - return $this->hasOneof(2); - } - - /** - * The result of a schema resolution query. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SchemaResult result = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaResult $var - * @return $this - */ - public function setResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaResult::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaQuery.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaQuery.php deleted file mode 100644 index 983b46007deb..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaQuery.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.SchemaQuery - */ -class SchemaQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The question to send to the system for schema resolution. - * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $question = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $question - * Optional. The question to send to the system for schema resolution. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The question to send to the system for schema resolution. - * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getQuestion() - { - return $this->question; - } - - /** - * Optional. The question to send to the system for schema resolution. - * - * Generated from protobuf field string question = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setQuestion($var) - { - GPBUtil::checkString($var, True); - $this->question = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaResult.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaResult.php deleted file mode 100644 index 4a489595f5b8..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SchemaResult.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.SchemaResult - */ -class SchemaResult extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The datasources used to resolve the schema query. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $datasources; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Datasource[] $datasources - * Optional. The datasources used to resolve the schema query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The datasources used to resolve the schema query. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\Datasource> - */ - public function getDatasources() - { - return $this->datasources; - } - - /** - * Optional. The datasources used to resolve the schema query. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Datasource[] $var - * @return $this - */ - public function setDatasources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\Datasource::class); - $this->datasources = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerDatabaseReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerDatabaseReference.php deleted file mode 100644 index 7fef96622a97..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerDatabaseReference.php +++ /dev/null @@ -1,333 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference - */ -class SpannerDatabaseReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The engine of the Spanner instance. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine engine = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $engine = 0; - /** - * Required. The project the instance belongs to. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * Required. The instance id. - * - * Generated from protobuf field string instance_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance_id = ''; - /** - * Required. The database id. - * - * Generated from protobuf field string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database_id = ''; - /** - * Optional. The table ids. Denotes all tables if unset. - * - * Generated from protobuf field repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $table_ids; - /** - * Optional. References to tables within the database. Each reference - * specifies a table and can optionally include the table's schema to provide - * context for the query. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $database_table_references; - /** - * Optional. Priority for the queries to Spanner. Should be a value supported - * by Cloud Spanner e.g.: LOW, MEDIUM, HIGH. Unsupported values will be - * ignored. See - * https://docs.cloud.google.com/spanner/docs/reference/rest/v1/RequestOptions#Priority - * for complete list. - * - * Generated from protobuf field string priority = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $priority = ''; - /** - * Tag to be attached to all queries to Spanner. Allows to identify and - * monitor queries sent to Spanner by the GDA service. - * - * Generated from protobuf field string request_tag = 9; - */ - protected $request_tag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $engine - * Required. The engine of the Spanner instance. - * @type string $project_id - * Required. The project the instance belongs to. - * @type string $instance_id - * Required. The instance id. - * @type string $database_id - * Required. The database id. - * @type string[] $table_ids - * Optional. The table ids. Denotes all tables if unset. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference[] $database_table_references - * Optional. References to tables within the database. Each reference - * specifies a table and can optionally include the table's schema to provide - * context for the query. - * @type string $priority - * Optional. Priority for the queries to Spanner. Should be a value supported - * by Cloud Spanner e.g.: LOW, MEDIUM, HIGH. Unsupported values will be - * ignored. See - * https://docs.cloud.google.com/spanner/docs/reference/rest/v1/RequestOptions#Priority - * for complete list. - * @type string $request_tag - * Tag to be attached to all queries to Spanner. Allows to identify and - * monitor queries sent to Spanner by the GDA service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Required. The engine of the Spanner instance. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine engine = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getEngine() - { - return $this->engine; - } - - /** - * Required. The engine of the Spanner instance. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine engine = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setEngine($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerDatabaseReference\Engine::class); - $this->engine = $var; - - return $this; - } - - /** - * Required. The project the instance belongs to. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The project the instance belongs to. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The instance id. - * - * Generated from protobuf field string instance_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getInstanceId() - { - return $this->instance_id; - } - - /** - * Required. The instance id. - * - * Generated from protobuf field string instance_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setInstanceId($var) - { - GPBUtil::checkString($var, True); - $this->instance_id = $var; - - return $this; - } - - /** - * Required. The database id. - * - * Generated from protobuf field string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatabaseId() - { - return $this->database_id; - } - - /** - * Required. The database id. - * - * Generated from protobuf field string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatabaseId($var) - { - GPBUtil::checkString($var, True); - $this->database_id = $var; - - return $this; - } - - /** - * Optional. The table ids. Denotes all tables if unset. - * - * Generated from protobuf field repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getTableIds() - { - return $this->table_ids; - } - - /** - * Optional. The table ids. Denotes all tables if unset. - * - * Generated from protobuf field repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setTableIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->table_ids = $arr; - - return $this; - } - - /** - * Optional. References to tables within the database. Each reference - * specifies a table and can optionally include the table's schema to provide - * context for the query. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference> - */ - public function getDatabaseTableReferences() - { - return $this->database_table_references; - } - - /** - * Optional. References to tables within the database. Each reference - * specifies a table and can optionally include the table's schema to provide - * context for the query. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference[] $var - * @return $this - */ - public function setDatabaseTableReferences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\DatabaseTableReference::class); - $this->database_table_references = $arr; - - return $this; - } - - /** - * Optional. Priority for the queries to Spanner. Should be a value supported - * by Cloud Spanner e.g.: LOW, MEDIUM, HIGH. Unsupported values will be - * ignored. See - * https://docs.cloud.google.com/spanner/docs/reference/rest/v1/RequestOptions#Priority - * for complete list. - * - * Generated from protobuf field string priority = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPriority() - { - return $this->priority; - } - - /** - * Optional. Priority for the queries to Spanner. Should be a value supported - * by Cloud Spanner e.g.: LOW, MEDIUM, HIGH. Unsupported values will be - * ignored. See - * https://docs.cloud.google.com/spanner/docs/reference/rest/v1/RequestOptions#Priority - * for complete list. - * - * Generated from protobuf field string priority = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPriority($var) - { - GPBUtil::checkString($var, True); - $this->priority = $var; - - return $this; - } - - /** - * Tag to be attached to all queries to Spanner. Allows to identify and - * monitor queries sent to Spanner by the GDA service. - * - * Generated from protobuf field string request_tag = 9; - * @return string - */ - public function getRequestTag() - { - return $this->request_tag; - } - - /** - * Tag to be attached to all queries to Spanner. Allows to identify and - * monitor queries sent to Spanner by the GDA service. - * - * Generated from protobuf field string request_tag = 9; - * @param string $var - * @return $this - */ - public function setRequestTag($var) - { - GPBUtil::checkString($var, True); - $this->request_tag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerDatabaseReference/Engine.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerDatabaseReference/Engine.php deleted file mode 100644 index 11ccfb69eaeb..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerDatabaseReference/Engine.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine - */ -class Engine -{ - /** - * Engine is not specified. - * - * Generated from protobuf enum ENGINE_UNSPECIFIED = 0; - */ - const ENGINE_UNSPECIFIED = 0; - /** - * Google SQL - * - * Generated from protobuf enum GOOGLE_SQL = 1; - */ - const GOOGLE_SQL = 1; - /** - * PostgreSQL - * - * Generated from protobuf enum POSTGRESQL = 2; - */ - const POSTGRESQL = 2; - - private static $valueToName = [ - self::ENGINE_UNSPECIFIED => 'ENGINE_UNSPECIFIED', - self::GOOGLE_SQL => 'GOOGLE_SQL', - self::POSTGRESQL => 'POSTGRESQL', - ]; - - 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerReference.php deleted file mode 100644 index ed9075c147ba..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SpannerReference.php +++ /dev/null @@ -1,126 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.SpannerReference - */ -class SpannerReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Singular proto that supports specifying which database and tables - * to include. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database_reference = null; - /** - * Optional. Parameters for retrieving data from Agent Context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $agent_context_reference = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerDatabaseReference $database_reference - * Required. Singular proto that supports specifying which database and tables - * to include. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference $agent_context_reference - * Optional. Parameters for retrieving data from Agent Context. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Required. Singular proto that supports specifying which database and tables - * to include. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerDatabaseReference|null - */ - public function getDatabaseReference() - { - return $this->database_reference; - } - - public function hasDatabaseReference() - { - return isset($this->database_reference); - } - - public function clearDatabaseReference() - { - unset($this->database_reference); - } - - /** - * Required. Singular proto that supports specifying which database and tables - * to include. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerDatabaseReference $var - * @return $this - */ - public function setDatabaseReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\SpannerDatabaseReference::class); - $this->database_reference = $var; - - return $this; - } - - /** - * Optional. Parameters for retrieving data from Agent Context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference|null - */ - public function getAgentContextReference() - { - return $this->agent_context_reference; - } - - public function hasAgentContextReference() - { - return isset($this->agent_context_reference); - } - - public function clearAgentContextReference() - { - unset($this->agent_context_reference); - } - - /** - * Optional. Parameters for retrieving data from Agent Context. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference $var - * @return $this - */ - public function setAgentContextReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AgentContextReference::class); - $this->agent_context_reference = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StorageMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StorageMessage.php deleted file mode 100644 index 0fe4433973c8..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StorageMessage.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.StorageMessage - */ -class StorageMessage extends \Google\Protobuf\Internal\Message -{ - /** - * The unique resource name of a chat message. - * - * Generated from protobuf field string message_id = 1; - */ - protected $message_id = ''; - /** - * The message content. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Message message = 2; - */ - protected $message = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message_id - * The unique resource name of a chat message. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Message $message - * The message content. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * The unique resource name of a chat message. - * - * Generated from protobuf field string message_id = 1; - * @return string - */ - public function getMessageId() - { - return $this->message_id; - } - - /** - * The unique resource name of a chat message. - * - * Generated from protobuf field string message_id = 1; - * @param string $var - * @return $this - */ - public function setMessageId($var) - { - GPBUtil::checkString($var, True); - $this->message_id = $var; - - return $this; - } - - /** - * The message content. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Message message = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Message|null - */ - public function getMessage() - { - return $this->message; - } - - public function hasMessage() - { - return isset($this->message); - } - - public function clearMessage() - { - unset($this->message); - } - - /** - * The message content. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Message message = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Message $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Message::class); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StudioDatasourceReference.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StudioDatasourceReference.php deleted file mode 100644 index 3a1839719db7..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StudioDatasourceReference.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference - */ -class StudioDatasourceReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The id of the datasource. - * - * Generated from protobuf field string datasource_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $datasource_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $datasource_id - * Required. The id of the datasource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Required. The id of the datasource. - * - * Generated from protobuf field string datasource_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatasourceId() - { - return $this->datasource_id; - } - - /** - * Required. The id of the datasource. - * - * Generated from protobuf field string datasource_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatasourceId($var) - { - GPBUtil::checkString($var, True); - $this->datasource_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StudioDatasourceReferences.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StudioDatasourceReferences.php deleted file mode 100644 index dbb00ea32bc1..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/StudioDatasourceReferences.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferences - */ -class StudioDatasourceReferences extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The references to the studio datasources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference studio_references = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $studio_references; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReference[] $studio_references - * Optional. The references to the studio datasources. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The references to the studio datasources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference studio_references = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReference> - */ - public function getStudioReferences() - { - return $this->studio_references; - } - - /** - * Optional. The references to the studio datasources. - * - * Generated from protobuf field repeated .google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference studio_references = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReference[] $var - * @return $this - */ - public function setStudioReferences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\StudioDatasourceReference::class); - $this->studio_references = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SystemMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SystemMessage.php deleted file mode 100644 index 97568b248d39..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/SystemMessage.php +++ /dev/null @@ -1,416 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.SystemMessage - */ -class SystemMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Identifies the group that the event belongs to. Similar events are deemed - * to be logically relevant to each other and should be shown together in - * the UI. - * - * Generated from protobuf field optional int32 group_id = 12; - */ - protected $group_id = null; - /** - * Output only. Citation information for the system message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Citation citation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $citation = null; - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\TextMessage $text - * A direct natural language response to the user message. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaMessage $schema - * A message produced during schema resolution. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataMessage $data - * A message produced during data retrieval. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisMessage $analysis - * A message produced during analysis. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ChartMessage $chart - * A message produced during chart generation. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ErrorMessage $error - * An error message. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQueries $example_queries - * Optional. A message containing example queries. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationMessage $clarification - * Optional. Deprecated: Use TextMessage with TextType.FINAL_RESPONSE - * instead. A message containing clarification questions. - * @type int $group_id - * Identifies the group that the event belongs to. Similar events are deemed - * to be logically relevant to each other and should be shown together in - * the UI. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\Citation $citation - * Output only. Citation information for the system message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * A direct natural language response to the user message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.TextMessage text = 1; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\TextMessage|null - */ - public function getText() - { - return $this->readOneof(1); - } - - public function hasText() - { - return $this->hasOneof(1); - } - - /** - * A direct natural language response to the user message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.TextMessage text = 1; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\TextMessage $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\TextMessage::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A message produced during schema resolution. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SchemaMessage schema = 2; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaMessage|null - */ - public function getSchema() - { - return $this->readOneof(2); - } - - public function hasSchema() - { - return $this->hasOneof(2); - } - - /** - * A message produced during schema resolution. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.SchemaMessage schema = 2; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaMessage $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\SchemaMessage::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A message produced during data retrieval. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataMessage data = 3; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DataMessage|null - */ - public function getData() - { - return $this->readOneof(3); - } - - public function hasData() - { - return $this->hasOneof(3); - } - - /** - * A message produced during data retrieval. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataMessage data = 3; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataMessage $var - * @return $this - */ - public function setData($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataMessage::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A message produced during analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisMessage analysis = 4; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisMessage|null - */ - public function getAnalysis() - { - return $this->readOneof(4); - } - - public function hasAnalysis() - { - return $this->hasOneof(4); - } - - /** - * A message produced during analysis. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.AnalysisMessage analysis = 4; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisMessage $var - * @return $this - */ - public function setAnalysis($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\AnalysisMessage::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A message produced during chart generation. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartMessage chart = 5; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ChartMessage|null - */ - public function getChart() - { - return $this->readOneof(5); - } - - public function hasChart() - { - return $this->hasOneof(5); - } - - /** - * A message produced during chart generation. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ChartMessage chart = 5; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ChartMessage $var - * @return $this - */ - public function setChart($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ChartMessage::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * An error message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ErrorMessage error = 6; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ErrorMessage|null - */ - public function getError() - { - return $this->readOneof(6); - } - - public function hasError() - { - return $this->hasOneof(6); - } - - /** - * An error message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ErrorMessage error = 6; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ErrorMessage $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ErrorMessage::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Optional. A message containing example queries. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQueries|null - */ - public function getExampleQueries() - { - return $this->readOneof(13); - } - - public function hasExampleQueries() - { - return $this->hasOneof(13); - } - - /** - * Optional. A message containing example queries. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQueries $var - * @return $this - */ - public function setExampleQueries($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ExampleQueries::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Optional. Deprecated: Use TextMessage with TextType.FINAL_RESPONSE - * instead. A message containing clarification questions. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationMessage|null - * @deprecated - */ - public function getClarification() - { - if ($this->hasOneof(14)) { - @trigger_error('clarification is deprecated.', E_USER_DEPRECATED); - } - return $this->readOneof(14); - } - - public function hasClarification() - { - if ($this->hasOneof(14)) { - @trigger_error('clarification is deprecated.', E_USER_DEPRECATED); - } - return $this->hasOneof(14); - } - - /** - * Optional. Deprecated: Use TextMessage with TextType.FINAL_RESPONSE - * instead. A message containing clarification questions. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationMessage $var - * @return $this - * @deprecated - */ - public function setClarification($var) - { - @trigger_error('clarification is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\ClarificationMessage::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * Identifies the group that the event belongs to. Similar events are deemed - * to be logically relevant to each other and should be shown together in - * the UI. - * - * Generated from protobuf field optional int32 group_id = 12; - * @return int - */ - public function getGroupId() - { - return isset($this->group_id) ? $this->group_id : 0; - } - - public function hasGroupId() - { - return isset($this->group_id); - } - - public function clearGroupId() - { - unset($this->group_id); - } - - /** - * Identifies the group that the event belongs to. Similar events are deemed - * to be logically relevant to each other and should be shown together in - * the UI. - * - * Generated from protobuf field optional int32 group_id = 12; - * @param int $var - * @return $this - */ - public function setGroupId($var) - { - GPBUtil::checkInt32($var); - $this->group_id = $var; - - return $this; - } - - /** - * Output only. Citation information for the system message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Citation citation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\Citation|null - */ - public function getCitation() - { - return $this->citation; - } - - public function hasCitation() - { - return isset($this->citation); - } - - public function clearCitation() - { - unset($this->citation); - } - - /** - * Output only. Citation information for the system message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.Citation citation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\Citation $var - * @return $this - */ - public function setCitation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\Citation::class); - $this->citation = $var; - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/TextMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/TextMessage.php deleted file mode 100644 index 1ec10ab7a44c..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/TextMessage.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.TextMessage - */ -class TextMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The parts of the message. - * - * Generated from protobuf field repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $parts; - /** - * Optional. The type of the text message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $text_type = 0; - /** - * Optional. An opaque signature for a thought so it can be reused in - * subsequent requests. - * - * Generated from protobuf field bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $thought_signature = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $parts - * Optional. The parts of the message. - * @type int $text_type - * Optional. The type of the text message. - * @type string $thought_signature - * Optional. An opaque signature for a thought so it can be reused in - * subsequent requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The parts of the message. - * - * Generated from protobuf field repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getParts() - { - return $this->parts; - } - - /** - * Optional. The parts of the message. - * - * Generated from protobuf field repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setParts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->parts = $arr; - - return $this; - } - - /** - * Optional. The type of the text message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getTextType() - { - return $this->text_type; - } - - /** - * Optional. The type of the text message. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setTextType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GeminiDataAnalytics\V1beta\TextMessage\TextType::class); - $this->text_type = $var; - - return $this; - } - - /** - * Optional. An opaque signature for a thought so it can be reused in - * subsequent requests. - * - * Generated from protobuf field bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getThoughtSignature() - { - return $this->thought_signature; - } - - /** - * Optional. An opaque signature for a thought so it can be reused in - * subsequent requests. - * - * Generated from protobuf field bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setThoughtSignature($var) - { - GPBUtil::checkString($var, False); - $this->thought_signature = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/TextMessage/TextType.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/TextMessage/TextType.php deleted file mode 100644 index 8e92b4641f59..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/TextMessage/TextType.php +++ /dev/null @@ -1,80 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.TextMessage.TextType - */ -class TextType -{ - /** - * The default text type. - * - * Generated from protobuf enum TEXT_TYPE_UNSPECIFIED = 0; - */ - const TEXT_TYPE_UNSPECIFIED = 0; - /** - * The text is a final response to the user question. - * - * Generated from protobuf enum FINAL_RESPONSE = 1; - */ - const FINAL_RESPONSE = 1; - /** - * The text is a thought from the model. - * - * Generated from protobuf enum THOUGHT = 2; - */ - const THOUGHT = 2; - /** - * The text is an informational message about the agent's progress, such as - * a tool being invoked. This is distinct from the agent's internal thought - * process (`THOUGHT`) and the final answer to the user - * (`FINAL_RESPONSE`). These messages provide insight into the agent's - * actions. - * - * Generated from protobuf enum PROGRESS = 3; - */ - const PROGRESS = 3; - /** - * The text is a list of follow-up questions suggested. - * Each item in parts is a follow-up question. - * - * Generated from protobuf enum FOLLOWUP_QUESTIONS = 4; - */ - const FOLLOWUP_QUESTIONS = 4; - - private static $valueToName = [ - self::TEXT_TYPE_UNSPECIFIED => 'TEXT_TYPE_UNSPECIFIED', - self::FINAL_RESPONSE => 'FINAL_RESPONSE', - self::THOUGHT => 'THOUGHT', - self::PROGRESS => 'PROGRESS', - self::FOLLOWUP_QUESTIONS => 'FOLLOWUP_QUESTIONS', - ]; - - 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/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UpdateDataAgentRequest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UpdateDataAgentRequest.php deleted file mode 100644 index 18708afdd7bb..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UpdateDataAgentRequest.php +++ /dev/null @@ -1,240 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest - */ -class UpdateDataAgentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * DataAgent resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields with non-default values - * present in the request will be overwritten. If a wildcard mask is provided, - * all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Required. The resource being updated. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgent data_agent = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_agent = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent $dataAgent Required. The resource being updated. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Field mask is used to specify the fields to be overwritten in the - * DataAgent resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields with non-default values - * present in the request will be overwritten. If a wildcard mask is provided, - * all fields will be overwritten. - * - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\UpdateDataAgentRequest - * - * @experimental - */ - public static function build(\Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent $dataAgent, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataAgent($dataAgent) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Field mask is used to specify the fields to be overwritten in the - * DataAgent resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields with non-default values - * present in the request will be overwritten. If a wildcard mask is provided, - * all fields will be overwritten. - * @type \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent $data_agent - * Required. The resource being updated. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataAgentService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * DataAgent resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields with non-default values - * present in the request will be overwritten. If a wildcard mask is provided, - * all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the - * DataAgent resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields with non-default values - * present in the request will be overwritten. If a wildcard mask is provided, - * all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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; - } - - /** - * Required. The resource being updated. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgent data_agent = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent|null - */ - public function getDataAgent() - { - return $this->data_agent; - } - - public function hasDataAgent() - { - return isset($this->data_agent); - } - - public function clearDataAgent() - { - unset($this->data_agent); - } - - /** - * Required. The resource being updated. - * - * Generated from protobuf field .google.cloud.geminidataanalytics.v1beta.DataAgent data_agent = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent $var - * @return $this - */ - public function setDataAgent($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent::class); - $this->data_agent = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UserMessage.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UserMessage.php deleted file mode 100644 index 5a8930195779..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/proto/src/Google/Cloud/GeminiDataAnalytics/V1beta/UserMessage.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.geminidataanalytics.v1beta.UserMessage - */ -class UserMessage extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * Text should use this field instead of blob. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce(); - parent::__construct($data); - } - - /** - * Text should use this field instead of blob. - * - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->readOneof(1); - } - - public function hasText() - { - return $this->hasOneof(1); - } - - /** - * Text should use this field instead of blob. - * - * Generated from protobuf field string text = 1; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/create_data_agent.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/create_data_agent.php deleted file mode 100644 index 00eba51fe9b2..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/create_data_agent.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($formattedParent) - ->setDataAgent($dataAgent); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataAgentServiceClient->createDataAgent($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DataAgent $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 = DataAgentServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - create_data_agent_sample($formattedParent); -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgent_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/create_data_agent_sync.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/create_data_agent_sync.php deleted file mode 100644 index f3ddbb0ce95e..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/create_data_agent_sync.php +++ /dev/null @@ -1,73 +0,0 @@ -setParent($formattedParent) - ->setDataAgent($dataAgent); - - // Call the API and handle any network failures. - try { - /** @var DataAgent $response */ - $response = $dataAgentServiceClient->createDataAgentSync($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 = DataAgentServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - create_data_agent_sync_sample($formattedParent); -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgentSync_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/delete_data_agent.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/delete_data_agent.php deleted file mode 100644 index 179700b34f48..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/delete_data_agent.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataAgentServiceClient->deleteDataAgent($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } 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 -{ - $formattedName = DataAgentServiceClient::dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); - - delete_data_agent_sample($formattedName); -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgent_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/delete_data_agent_sync.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/delete_data_agent_sync.php deleted file mode 100644 index ca37d541704c..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/delete_data_agent_sync.php +++ /dev/null @@ -1,69 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataAgentServiceClient->deleteDataAgentSync($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 = DataAgentServiceClient::dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); - - delete_data_agent_sync_sample($formattedName); -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgentSync_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_data_agent.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_data_agent.php deleted file mode 100644 index e9ff3e265b19..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_data_agent.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataAgent $response */ - $response = $dataAgentServiceClient->getDataAgent($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 = DataAgentServiceClient::dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); - - get_data_agent_sample($formattedName); -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_GetDataAgent_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_iam_policy.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_iam_policy.php deleted file mode 100644 index f245429deb01..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_iam_policy.php +++ /dev/null @@ -1,71 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataAgentServiceClient->getIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_GetIamPolicy_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_location.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_location.php deleted file mode 100644 index 923247045a27..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_GetLocation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_accessible_data_agents.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_accessible_data_agents.php deleted file mode 100644 index 9809096ebd71..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_accessible_data_agents.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataAgentServiceClient->listAccessibleDataAgents($request); - - /** @var DataAgent $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 = DataAgentServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_accessible_data_agents_sample($formattedParent); -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_ListAccessibleDataAgents_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_data_agents.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_data_agents.php deleted file mode 100644 index 4df1a479b7aa..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_data_agents.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataAgentServiceClient->listDataAgents($request); - - /** @var DataAgent $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 = DataAgentServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_data_agents_sample($formattedParent); -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_ListDataAgents_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_locations.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_locations.php deleted file mode 100644 index dcca0ca70cc6..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/list_locations.php +++ /dev/null @@ -1,77 +0,0 @@ -listLocations($request); - - /** @var Location $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()); - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_ListLocations_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/set_iam_policy.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/set_iam_policy.php deleted file mode 100644 index 53af809bda3d..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/set_iam_policy.php +++ /dev/null @@ -1,73 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataAgentServiceClient->setIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_SetIamPolicy_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/update_data_agent.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/update_data_agent.php deleted file mode 100644 index 43877c9a8d02..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/update_data_agent.php +++ /dev/null @@ -1,71 +0,0 @@ -setDataAgent($dataAgent); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataAgentServiceClient->updateDataAgent($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DataAgent $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()); - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgent_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/update_data_agent_sync.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/update_data_agent_sync.php deleted file mode 100644 index 98be2bda9c1f..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataAgentServiceClient/update_data_agent_sync.php +++ /dev/null @@ -1,59 +0,0 @@ -setDataAgent($dataAgent); - - // Call the API and handle any network failures. - try { - /** @var DataAgent $response */ - $response = $dataAgentServiceClient->updateDataAgentSync($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgentSync_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/chat.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/chat.php deleted file mode 100644 index b86005cfdff1..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/chat.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($parent) - ->setMessages($messages); - - // Call the API and handle any network failures. - try { - /** @var ServerStream $stream */ - $stream = $dataChatServiceClient->chat($request); - - /** @var Message $element */ - foreach ($stream->readAll() 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 -{ - $parent = '[PARENT]'; - - chat_sample($parent); -} -// [END geminidataanalytics_v1beta_generated_DataChatService_Chat_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/create_conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/create_conversation.php deleted file mode 100644 index 176cabea58f9..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/create_conversation.php +++ /dev/null @@ -1,84 +0,0 @@ -setAgents($conversationAgents); - $request = (new CreateConversationRequest()) - ->setParent($formattedParent) - ->setConversation($conversation); - - // Call the API and handle any network failures. - try { - /** @var Conversation $response */ - $response = $dataChatServiceClient->createConversation($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 = DataChatServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $conversationAgentsElement = '[AGENTS]'; - - create_conversation_sample($formattedParent, $conversationAgentsElement); -} -// [END geminidataanalytics_v1beta_generated_DataChatService_CreateConversation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/delete_conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/delete_conversation.php deleted file mode 100644 index 7643d77052b7..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/delete_conversation.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataChatServiceClient->deleteConversation($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 = DataChatServiceClient::conversationName( - '[PROJECT]', - '[LOCATION]', - '[CONVERSATION]' - ); - - delete_conversation_sample($formattedName); -} -// [END geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/get_conversation.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/get_conversation.php deleted file mode 100644 index 4aaaf276285c..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/get_conversation.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Conversation $response */ - $response = $dataChatServiceClient->getConversation($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 = DataChatServiceClient::conversationName( - '[PROJECT]', - '[LOCATION]', - '[CONVERSATION]' - ); - - get_conversation_sample($formattedName); -} -// [END geminidataanalytics_v1beta_generated_DataChatService_GetConversation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/get_location.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/get_location.php deleted file mode 100644 index 4c70a5831734..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_GetLocation_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_conversations.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_conversations.php deleted file mode 100644 index 8bcb5a9aca7a..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_conversations.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataChatServiceClient->listConversations($request); - - /** @var Conversation $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 = DataChatServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_conversations_sample($formattedParent); -} -// [END geminidataanalytics_v1beta_generated_DataChatService_ListConversations_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_locations.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_locations.php deleted file mode 100644 index 1219c1cd0007..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_locations.php +++ /dev/null @@ -1,77 +0,0 @@ -listLocations($request); - - /** @var Location $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()); - } -} -// [END geminidataanalytics_v1beta_generated_DataChatService_ListLocations_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_messages.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_messages.php deleted file mode 100644 index d65057a35076..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/list_messages.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataChatServiceClient->listMessages($request); - - /** @var StorageMessage $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 = DataChatServiceClient::conversationName( - '[PROJECT]', - '[LOCATION]', - '[CONVERSATION]' - ); - - list_messages_sample($formattedParent); -} -// [END geminidataanalytics_v1beta_generated_DataChatService_ListMessages_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/query_data.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/query_data.php deleted file mode 100644 index 0fc4921349a1..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/samples/V1beta/DataChatServiceClient/query_data.php +++ /dev/null @@ -1,82 +0,0 @@ -setDatasourceReferences($contextDatasourceReferences); - $request = (new QueryDataRequest()) - ->setParent($formattedParent) - ->setPrompt($prompt) - ->setContext($context); - - // Call the API and handle any network failures. - try { - /** @var QueryDataResponse $response */ - $response = $dataChatServiceClient->queryData($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 = DataChatServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $prompt = '[PROMPT]'; - - query_data_sample($formattedParent, $prompt); -} -// [END geminidataanalytics_v1beta_generated_DataChatService_QueryData_sync] diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/Client/DataAgentServiceClient.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/Client/DataAgentServiceClient.php deleted file mode 100644 index 78353268f7ff..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/Client/DataAgentServiceClient.php +++ /dev/null @@ -1,744 +0,0 @@ - createDataAgentAsync(CreateDataAgentRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDataAgentSyncAsync(CreateDataAgentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataAgentAsync(DeleteDataAgentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataAgentSyncAsync(DeleteDataAgentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataAgentAsync(GetDataAgentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAccessibleDataAgentsAsync(ListAccessibleDataAgentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataAgentsAsync(ListDataAgentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataAgentAsync(UpdateDataAgentRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataAgentSyncAsync(UpdateDataAgentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class DataAgentServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.geminidataanalytics.v1beta.DataAgentService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'geminidataanalytics.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'geminidataanalytics.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/data_agent_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/data_agent_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/data_agent_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/data_agent_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - * - * @experimental - */ - 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 - * - * @experimental - */ - 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 crypto_key - * resource. - * - * @param string $project - * @param string $location - * @param string $keyRing - * @param string $cryptoKey - * - * @return string The formatted crypto_key resource. - * - * @experimental - */ - public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string - { - return self::getPathTemplate('cryptoKey')->render([ - 'project' => $project, - 'location' => $location, - 'key_ring' => $keyRing, - 'crypto_key' => $cryptoKey, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_agent - * resource. - * - * @param string $project - * @param string $location - * @param string $dataAgent - * - * @return string The formatted data_agent resource. - * - * @experimental - */ - public static function dataAgentName(string $project, string $location, string $dataAgent): string - { - return self::getPathTemplate('dataAgent')->render([ - 'project' => $project, - 'location' => $location, - 'data_agent' => $dataAgent, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - * - * @experimental - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} - * - dataAgent: projects/{project}/locations/{location}/dataAgents/{data_agent} - * - location: projects/{project}/locations/{location} - * - * 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. - * - * @experimental - */ - 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 'geminidataanalytics.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\GeminiDataAnalytics\V1beta\DataAgentServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DataAgentServiceClient(['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 - * - * @experimental - */ - 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); - } - - /** - * Creates a new DataAgent in a given project and location. - * - * The async variant is {@see DataAgentServiceClient::createDataAgentAsync()} . - * - * @example samples/V1beta/DataAgentServiceClient/create_data_agent.php - * - * @param CreateDataAgentRequest $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. - * - * @experimental - */ - public function createDataAgent(CreateDataAgentRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateDataAgent', $request, $callOptions)->wait(); - } - - /** - * Creates a new DataAgent in a given project and location synchronously. - * - * The async variant is {@see DataAgentServiceClient::createDataAgentSyncAsync()} . - * - * @example samples/V1beta/DataAgentServiceClient/create_data_agent_sync.php - * - * @param CreateDataAgentRequest $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 DataAgent - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createDataAgentSync(CreateDataAgentRequest $request, array $callOptions = []): DataAgent - { - return $this->startApiCall('CreateDataAgentSync', $request, $callOptions)->wait(); - } - - /** - * Deletes a single DataAgent. - * - * The async variant is {@see DataAgentServiceClient::deleteDataAgentAsync()} . - * - * @example samples/V1beta/DataAgentServiceClient/delete_data_agent.php - * - * @param DeleteDataAgentRequest $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. - * - * @experimental - */ - public function deleteDataAgent(DeleteDataAgentRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteDataAgent', $request, $callOptions)->wait(); - } - - /** - * Deletes a single DataAgent synchronously. - * - * The async variant is {@see DataAgentServiceClient::deleteDataAgentSyncAsync()} . - * - * @example samples/V1beta/DataAgentServiceClient/delete_data_agent_sync.php - * - * @param DeleteDataAgentRequest $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. - * - * @experimental - */ - public function deleteDataAgentSync(DeleteDataAgentRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDataAgentSync', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single DataAgent. - * - * The async variant is {@see DataAgentServiceClient::getDataAgentAsync()} . - * - * @example samples/V1beta/DataAgentServiceClient/get_data_agent.php - * - * @param GetDataAgentRequest $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 DataAgent - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getDataAgent(GetDataAgentRequest $request, array $callOptions = []): DataAgent - { - return $this->startApiCall('GetDataAgent', $request, $callOptions)->wait(); - } - - /** - * Gets the IAM policy for DataAgent - * - * The async variant is {@see DataAgentServiceClient::getIamPolicyAsync()} . - * - * @example samples/V1beta/DataAgentServiceClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Lists DataAgents that are accessible to the caller in a given project and - * location. - * - * The async variant is - * {@see DataAgentServiceClient::listAccessibleDataAgentsAsync()} . - * - * @example samples/V1beta/DataAgentServiceClient/list_accessible_data_agents.php - * - * @param ListAccessibleDataAgentsRequest $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. - * - * @experimental - */ - public function listAccessibleDataAgents(ListAccessibleDataAgentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAccessibleDataAgents', $request, $callOptions); - } - - /** - * Lists DataAgents in a given project and location. - * - * The async variant is {@see DataAgentServiceClient::listDataAgentsAsync()} . - * - * @example samples/V1beta/DataAgentServiceClient/list_data_agents.php - * - * @param ListDataAgentsRequest $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. - * - * @experimental - */ - public function listDataAgents(ListDataAgentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataAgents', $request, $callOptions); - } - - /** - * Sets the IAM policy for a DataAgent. - * - * The async variant is {@see DataAgentServiceClient::setIamPolicyAsync()} . - * - * @example samples/V1beta/DataAgentServiceClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Updates the parameters of a single DataAgent. - * - * The async variant is {@see DataAgentServiceClient::updateDataAgentAsync()} . - * - * @example samples/V1beta/DataAgentServiceClient/update_data_agent.php - * - * @param UpdateDataAgentRequest $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. - * - * @experimental - */ - public function updateDataAgent(UpdateDataAgentRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateDataAgent', $request, $callOptions)->wait(); - } - - /** - * Updates the parameters of a single DataAgent synchronously. - * - * The async variant is {@see DataAgentServiceClient::updateDataAgentSyncAsync()} . - * - * @example samples/V1beta/DataAgentServiceClient/update_data_agent_sync.php - * - * @param UpdateDataAgentRequest $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 DataAgent - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateDataAgentSync(UpdateDataAgentRequest $request, array $callOptions = []): DataAgent - { - return $this->startApiCall('UpdateDataAgentSync', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see DataAgentServiceClient::getLocationAsync()} . - * - * @example samples/V1beta/DataAgentServiceClient/get_location.php - * - * @param GetLocationRequest $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 Location - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - - This method lists locations based on the resource scope provided in - the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * - **Global locations**: If `name` is empty, the method lists the - public locations available to all projects. * **Project-specific - locations**: If `name` follows the format - `projects/{project}`, the method lists locations visible to that - specific project. This includes public, private, or other - project-specific locations enabled for the project. - - For gRPC and client library implementations, the resource name is - passed as the `name` field. For direct service calls, the resource - name is - incorporated into the request path based on the specific service - implementation and version. - * - * The async variant is {@see DataAgentServiceClient::listLocationsAsync()} . - * - * @example samples/V1beta/DataAgentServiceClient/list_locations.php - * - * @param ListLocationsRequest $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. - * - * @experimental - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/Client/DataChatServiceClient.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/Client/DataChatServiceClient.php deleted file mode 100644 index dae101ba60eb..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/Client/DataChatServiceClient.php +++ /dev/null @@ -1,608 +0,0 @@ - createConversationAsync(CreateConversationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteConversationAsync(DeleteConversationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConversationAsync(GetConversationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConversationsAsync(ListConversationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMessagesAsync(ListMessagesRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryDataAsync(QueryDataRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class DataChatServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.geminidataanalytics.v1beta.DataChatService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'geminidataanalytics.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'geminidataanalytics.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_chat_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/data_chat_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/data_chat_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/data_chat_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a conversation - * resource. - * - * @param string $project - * @param string $location - * @param string $conversation - * - * @return string The formatted conversation resource. - * - * @experimental - */ - public static function conversationName(string $project, string $location, string $conversation): string - { - return self::getPathTemplate('conversation')->render([ - 'project' => $project, - 'location' => $location, - 'conversation' => $conversation, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a crypto_key - * resource. - * - * @param string $project - * @param string $location - * @param string $keyRing - * @param string $cryptoKey - * - * @return string The formatted crypto_key resource. - * - * @experimental - */ - public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string - { - return self::getPathTemplate('cryptoKey')->render([ - 'project' => $project, - 'location' => $location, - 'key_ring' => $keyRing, - 'crypto_key' => $cryptoKey, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_agent - * resource. - * - * @param string $project - * @param string $location - * @param string $dataAgent - * - * @return string The formatted data_agent resource. - * - * @experimental - */ - public static function dataAgentName(string $project, string $location, string $dataAgent): string - { - return self::getPathTemplate('dataAgent')->render([ - 'project' => $project, - 'location' => $location, - 'data_agent' => $dataAgent, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - * - * @experimental - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - * - * @experimental - */ - public static function projectName(string $project): string - { - return self::getPathTemplate('project')->render([ - 'project' => $project, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - conversation: projects/{project}/locations/{location}/conversations/{conversation} - * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} - * - dataAgent: projects/{project}/locations/{location}/dataAgents/{data_agent} - * - location: projects/{project}/locations/{location} - * - project: projects/{project} - * - * 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. - * - * @experimental - */ - 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 'geminidataanalytics.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\GeminiDataAnalytics\V1beta\DataChatServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DataChatServiceClient(['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 - * - * @experimental - */ - 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); - } - - /** - * Answers a data question by generating a stream of - * [Message][google.cloud.geminidataanalytics.v1.Message] objects. - * - * @example samples/V1beta/DataChatServiceClient/chat.php - * - * @param ChatRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type int $timeoutMillis - * Timeout to use for this call. - * } - * - * @return ServerStream - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function chat(ChatRequest $request, array $callOptions = []): ServerStream - { - return $this->startApiCall('Chat', $request, $callOptions); - } - - /** - * Creates a new conversation to persist the conversation history. Each - * conversation will have multiple messages associated with it. - * - * The async variant is {@see DataChatServiceClient::createConversationAsync()} . - * - * @example samples/V1beta/DataChatServiceClient/create_conversation.php - * - * @param CreateConversationRequest $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 Conversation - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createConversation(CreateConversationRequest $request, array $callOptions = []): Conversation - { - return $this->startApiCall('CreateConversation', $request, $callOptions)->wait(); - } - - /** - * Deletes a conversation. - * - * The async variant is {@see DataChatServiceClient::deleteConversationAsync()} . - * - * @example samples/V1beta/DataChatServiceClient/delete_conversation.php - * - * @param DeleteConversationRequest $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. - * - * @experimental - */ - public function deleteConversation(DeleteConversationRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteConversation', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single conversation by using conversation id and parent. - * - * The async variant is {@see DataChatServiceClient::getConversationAsync()} . - * - * @example samples/V1beta/DataChatServiceClient/get_conversation.php - * - * @param GetConversationRequest $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 Conversation - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getConversation(GetConversationRequest $request, array $callOptions = []): Conversation - { - return $this->startApiCall('GetConversation', $request, $callOptions)->wait(); - } - - /** - * Lists all conversations for a given parent. - * - * The async variant is {@see DataChatServiceClient::listConversationsAsync()} . - * - * @example samples/V1beta/DataChatServiceClient/list_conversations.php - * - * @param ListConversationsRequest $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. - * - * @experimental - */ - public function listConversations(ListConversationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListConversations', $request, $callOptions); - } - - /** - * Lists all messages for a given conversation. - * - * The async variant is {@see DataChatServiceClient::listMessagesAsync()} . - * - * @example samples/V1beta/DataChatServiceClient/list_messages.php - * - * @param ListMessagesRequest $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. - * - * @experimental - */ - public function listMessages(ListMessagesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMessages', $request, $callOptions); - } - - /** - * Queries data from a natural language user query. - * - * The async variant is {@see DataChatServiceClient::queryDataAsync()} . - * - * @example samples/V1beta/DataChatServiceClient/query_data.php - * - * @param QueryDataRequest $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 QueryDataResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function queryData(QueryDataRequest $request, array $callOptions = []): QueryDataResponse - { - return $this->startApiCall('QueryData', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see DataChatServiceClient::getLocationAsync()} . - * - * @example samples/V1beta/DataChatServiceClient/get_location.php - * - * @param GetLocationRequest $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 Location - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - - This method lists locations based on the resource scope provided in - the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * - **Global locations**: If `name` is empty, the method lists the - public locations available to all projects. * **Project-specific - locations**: If `name` follows the format - `projects/{project}`, the method lists locations visible to that - specific project. This includes public, private, or other - project-specific locations enabled for the project. - - For gRPC and client library implementations, the resource name is - passed as the `name` field. For direct service calls, the resource - name is - incorporated into the request path based on the specific service - implementation and version. - * - * The async variant is {@see DataChatServiceClient::listLocationsAsync()} . - * - * @example samples/V1beta/DataChatServiceClient/list_locations.php - * - * @param ListLocationsRequest $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. - * - * @experimental - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/gapic_metadata.json b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/gapic_metadata.json deleted file mode 100644 index a79c77aa8ea3..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/gapic_metadata.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.geminidataanalytics.v1beta", - "libraryPackage": "Google\\Cloud\\GeminiDataAnalytics\\V1beta", - "services": { - "DataAgentService": { - "clients": { - "grpc": { - "libraryClient": "DataAgentServiceGapicClient", - "rpcs": { - "CreateDataAgent": { - "methods": [ - "createDataAgent" - ] - }, - "CreateDataAgentSync": { - "methods": [ - "createDataAgentSync" - ] - }, - "DeleteDataAgent": { - "methods": [ - "deleteDataAgent" - ] - }, - "DeleteDataAgentSync": { - "methods": [ - "deleteDataAgentSync" - ] - }, - "GetDataAgent": { - "methods": [ - "getDataAgent" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "ListAccessibleDataAgents": { - "methods": [ - "listAccessibleDataAgents" - ] - }, - "ListDataAgents": { - "methods": [ - "listDataAgents" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "UpdateDataAgent": { - "methods": [ - "updateDataAgent" - ] - }, - "UpdateDataAgentSync": { - "methods": [ - "updateDataAgentSync" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - }, - "DataChatService": { - "clients": { - "grpc": { - "libraryClient": "DataChatServiceGapicClient", - "rpcs": { - "Chat": { - "methods": [ - "chat" - ] - }, - "CreateConversation": { - "methods": [ - "createConversation" - ] - }, - "DeleteConversation": { - "methods": [ - "deleteConversation" - ] - }, - "GetConversation": { - "methods": [ - "getConversation" - ] - }, - "ListConversations": { - "methods": [ - "listConversations" - ] - }, - "ListMessages": { - "methods": [ - "listMessages" - ] - }, - "QueryData": { - "methods": [ - "queryData" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_client_config.json b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_client_config.json deleted file mode 100644 index fc71a4e3a3bd..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_client_config.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "interfaces": { - "google.cloud.geminidataanalytics.v1beta.DataAgentService": { - "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": 10000, - "initial_rpc_timeout_millis": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - } - }, - "methods": { - "CreateDataAgent": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateDataAgentSync": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteDataAgent": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteDataAgentSync": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataAgent": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetIamPolicy": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAccessibleDataAgents": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDataAgents": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SetIamPolicy": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDataAgent": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDataAgentSync": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetLocation": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListLocations": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_descriptor_config.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_descriptor_config.php deleted file mode 100644 index f2dd70e0e0d2..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_descriptor_config.php +++ /dev/null @@ -1,238 +0,0 @@ - [ - 'google.cloud.geminidataanalytics.v1beta.DataAgentService' => [ - 'CreateDataAgent' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent', - 'metadataReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1beta\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataAgent' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1beta\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateDataAgent' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent', - 'metadataReturnType' => '\Google\Cloud\GeminiDataAnalytics\V1beta\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'data_agent.name', - 'fieldAccessors' => [ - 'getDataAgent', - 'getName', - ], - ], - ], - ], - 'CreateDataAgentSync' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataAgentSync' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataAgent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'ListAccessibleDataAgents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataAgents', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\ListAccessibleDataAgentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataAgents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataAgents', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\ListDataAgentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'UpdateDataAgentSync' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\DataAgent', - 'headerParams' => [ - [ - 'keyName' => 'data_agent.name', - 'fieldAccessors' => [ - 'getDataAgent', - 'getName', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', - 'dataAgent' => 'projects/{project}/locations/{location}/dataAgents/{data_agent}', - 'location' => 'projects/{project}/locations/{location}', - ], - ], - ], -]; diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_rest_client_config.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_rest_client_config.php deleted file mode 100644 index 009377e77874..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_agent_service_rest_client_config.php +++ /dev/null @@ -1,229 +0,0 @@ - [ - 'google.cloud.geminidataanalytics.v1beta.DataAgentService' => [ - 'CreateDataAgent' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}/dataAgents', - 'body' => 'data_agent', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataAgentSync' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}/dataAgents:createSync', - 'body' => 'data_agent', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataAgent' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/dataAgents/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataAgentSync' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/dataAgents/*}:deleteSync', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataAgent' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/dataAgents/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/dataAgents/*}:getIamPolicy', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'ListAccessibleDataAgents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}/dataAgents:listAccessible', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataAgents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}/dataAgents', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/dataAgents/*}:setIamPolicy', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'UpdateDataAgent' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{data_agent.name=projects/*/locations/*/dataAgents/*}', - 'body' => 'data_agent', - 'placeholders' => [ - 'data_agent.name' => [ - 'getters' => [ - 'getDataAgent', - 'getName', - ], - ], - ], - ], - 'UpdateDataAgentSync' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{data_agent.name=projects/*/locations/*/dataAgents/*}:updateSync', - 'body' => 'data_agent', - 'placeholders' => [ - 'data_agent.name' => [ - 'getters' => [ - 'getDataAgent', - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_client_config.json b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_client_config.json deleted file mode 100644 index a9855879377d..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_client_config.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "interfaces": { - "google.cloud.geminidataanalytics.v1beta.DataChatService": { - "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": 10000, - "initial_rpc_timeout_millis": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - } - }, - "methods": { - "Chat": { - "timeout_millis": 600000 - }, - "CreateConversation": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteConversation": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetConversation": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListConversations": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListMessages": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "QueryData": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetLocation": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListLocations": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_descriptor_config.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_descriptor_config.php deleted file mode 100644 index e10d915e8fa6..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_descriptor_config.php +++ /dev/null @@ -1,172 +0,0 @@ - [ - 'google.cloud.geminidataanalytics.v1beta.DataChatService' => [ - 'Chat' => [ - 'grpcStreaming' => [ - 'grpcStreamingType' => 'ServerStreaming', - ], - 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\Message', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateConversation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\Conversation', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteConversation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetConversation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\Conversation', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListConversations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getConversations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\ListConversationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMessages' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMessages', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\ListMessagesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'QueryData' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\GeminiDataAnalytics\V1beta\QueryDataResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'conversation' => 'projects/{project}/locations/{location}/conversations/{conversation}', - 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', - 'dataAgent' => 'projects/{project}/locations/{location}/dataAgents/{data_agent}', - 'location' => 'projects/{project}/locations/{location}', - 'project' => 'projects/{project}', - ], - ], - ], -]; diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_rest_client_config.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_rest_client_config.php deleted file mode 100644 index a04e6cc61b3a..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/src/V1beta/resources/data_chat_service_rest_client_config.php +++ /dev/null @@ -1,180 +0,0 @@ - [ - 'google.cloud.geminidataanalytics.v1beta.DataChatService' => [ - 'Chat' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}:chat', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateConversation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}/conversations', - 'body' => 'conversation', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteConversation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/conversations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetConversation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/conversations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListConversations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}/conversations', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMessages' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*/conversations/*}/messages', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'QueryData' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}:queryData', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/tests/Unit/V1beta/Client/DataAgentServiceClientTest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/tests/Unit/V1beta/Client/DataAgentServiceClientTest.php deleted file mode 100644 index d599e629c835..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/tests/Unit/V1beta/Client/DataAgentServiceClientTest.php +++ /dev/null @@ -1,1225 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataAgentServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataAgentServiceClient($options); - } - - /** @test */ - public function createDataAgentTest() - { - $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/createDataAgentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $kmsKey = 'kmsKey-591635343'; - $expectedResponse = new DataAgent(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setKmsKey($kmsKey); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDataAgentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $dataAgent = new DataAgent(); - $request = (new CreateDataAgentRequest()) - ->setParent($formattedParent) - ->setDataAgent($dataAgent); - $response = $gapicClient->createDataAgent($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.geminidataanalytics.v1beta.DataAgentService/CreateDataAgent', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDataAgent(); - $this->assertProtobufEquals($dataAgent, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataAgentTest'); - $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 createDataAgentExceptionTest() - { - $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/createDataAgentTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $dataAgent = new DataAgent(); - $request = (new CreateDataAgentRequest()) - ->setParent($formattedParent) - ->setDataAgent($dataAgent); - $response = $gapicClient->createDataAgent($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataAgentTest'); - 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 createDataAgentSyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $kmsKey = 'kmsKey-591635343'; - $expectedResponse = new DataAgent(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setKmsKey($kmsKey); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $dataAgent = new DataAgent(); - $request = (new CreateDataAgentRequest()) - ->setParent($formattedParent) - ->setDataAgent($dataAgent); - $response = $gapicClient->createDataAgentSync($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.geminidataanalytics.v1beta.DataAgentService/CreateDataAgentSync', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataAgent(); - $this->assertProtobufEquals($dataAgent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataAgentSyncExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $dataAgent = new DataAgent(); - $request = (new CreateDataAgentRequest()) - ->setParent($formattedParent) - ->setDataAgent($dataAgent); - try { - $gapicClient->createDataAgentSync($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 deleteDataAgentTest() - { - $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/deleteDataAgentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteDataAgentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); - $request = (new DeleteDataAgentRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDataAgent($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.geminidataanalytics.v1beta.DataAgentService/DeleteDataAgent', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDataAgentTest'); - $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 deleteDataAgentExceptionTest() - { - $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/deleteDataAgentTest'); - $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 - $formattedName = $gapicClient->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); - $request = (new DeleteDataAgentRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDataAgent($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDataAgentTest'); - 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 deleteDataAgentSyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); - $request = (new DeleteDataAgentRequest()) - ->setName($formattedName); - $gapicClient->deleteDataAgentSync($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.geminidataanalytics.v1beta.DataAgentService/DeleteDataAgentSync', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataAgentSyncExceptionTest() - { - $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->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); - $request = (new DeleteDataAgentRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDataAgentSync($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 getDataAgentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $kmsKey = 'kmsKey-591635343'; - $expectedResponse = new DataAgent(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setKmsKey($kmsKey); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); - $request = (new GetDataAgentRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataAgent($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.geminidataanalytics.v1beta.DataAgentService/GetDataAgent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataAgentExceptionTest() - { - $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->dataAgentName('[PROJECT]', '[LOCATION]', '[DATA_AGENT]'); - $request = (new GetDataAgentRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataAgent($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 getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($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.geminidataanalytics.v1beta.DataAgentService/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($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 listAccessibleDataAgentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataAgentsElement = new DataAgent(); - $dataAgents = [ - $dataAgentsElement, - ]; - $expectedResponse = new ListAccessibleDataAgentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataAgents($dataAgents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListAccessibleDataAgentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAccessibleDataAgents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataAgents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.geminidataanalytics.v1beta.DataAgentService/ListAccessibleDataAgents', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccessibleDataAgentsExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListAccessibleDataAgentsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAccessibleDataAgents($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 listDataAgentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataAgentsElement = new DataAgent(); - $dataAgents = [ - $dataAgentsElement, - ]; - $expectedResponse = new ListDataAgentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataAgents($dataAgents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDataAgentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataAgents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataAgents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.geminidataanalytics.v1beta.DataAgentService/ListDataAgents', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataAgentsExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDataAgentsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataAgents($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 setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($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.geminidataanalytics.v1beta.DataAgentService/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($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 updateDataAgentTest() - { - $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/updateDataAgentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $kmsKey = 'kmsKey-591635343'; - $expectedResponse = new DataAgent(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setKmsKey($kmsKey); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateDataAgentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $dataAgent = new DataAgent(); - $request = (new UpdateDataAgentRequest()) - ->setDataAgent($dataAgent); - $response = $gapicClient->updateDataAgent($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.geminidataanalytics.v1beta.DataAgentService/UpdateDataAgent', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getDataAgent(); - $this->assertProtobufEquals($dataAgent, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDataAgentTest'); - $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 updateDataAgentExceptionTest() - { - $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/updateDataAgentTest'); - $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 - $dataAgent = new DataAgent(); - $request = (new UpdateDataAgentRequest()) - ->setDataAgent($dataAgent); - $response = $gapicClient->updateDataAgent($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDataAgentTest'); - 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 updateDataAgentSyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $kmsKey = 'kmsKey-591635343'; - $expectedResponse = new DataAgent(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setKmsKey($kmsKey); - $transport->addResponse($expectedResponse); - // Mock request - $dataAgent = new DataAgent(); - $request = (new UpdateDataAgentRequest()) - ->setDataAgent($dataAgent); - $response = $gapicClient->updateDataAgentSync($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.geminidataanalytics.v1beta.DataAgentService/UpdateDataAgentSync', $actualFuncCall); - $actualValue = $actualRequestObject->getDataAgent(); - $this->assertProtobufEquals($dataAgent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataAgentSyncExceptionTest() - { - $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 - $dataAgent = new DataAgent(); - $request = (new UpdateDataAgentRequest()) - ->setDataAgent($dataAgent); - try { - $gapicClient->updateDataAgentSync($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 getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($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.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $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); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($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 listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $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); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($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 createDataAgentAsyncTest() - { - $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/createDataAgentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $kmsKey = 'kmsKey-591635343'; - $expectedResponse = new DataAgent(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setKmsKey($kmsKey); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDataAgentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $dataAgent = new DataAgent(); - $request = (new CreateDataAgentRequest()) - ->setParent($formattedParent) - ->setDataAgent($dataAgent); - $response = $gapicClient->createDataAgentAsync($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.geminidataanalytics.v1beta.DataAgentService/CreateDataAgent', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDataAgent(); - $this->assertProtobufEquals($dataAgent, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataAgentTest'); - $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()); - } -} diff --git a/owl-bot-staging/GeminiDataAnalytics/v1beta/tests/Unit/V1beta/Client/DataChatServiceClientTest.php b/owl-bot-staging/GeminiDataAnalytics/v1beta/tests/Unit/V1beta/Client/DataChatServiceClientTest.php deleted file mode 100644 index 271f3cdc43c6..000000000000 --- a/owl-bot-staging/GeminiDataAnalytics/v1beta/tests/Unit/V1beta/Client/DataChatServiceClientTest.php +++ /dev/null @@ -1,765 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataChatServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataChatServiceClient($options); - } - - /** @test */ - public function chatTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $messageId = 'messageId-1690722221'; - $expectedResponse = new Message(); - $expectedResponse->setMessageId($messageId); - $transport->addResponse($expectedResponse); - $messageId2 = 'messageId2-1286413498'; - $expectedResponse2 = new Message(); - $expectedResponse2->setMessageId($messageId2); - $transport->addResponse($expectedResponse2); - $messageId3 = 'messageId3-1286413497'; - $expectedResponse3 = new Message(); - $expectedResponse3->setMessageId($messageId3); - $transport->addResponse($expectedResponse3); - // Mock request - $parent = 'parent-995424086'; - $messages = []; - $request = (new ChatRequest()) - ->setParent($parent) - ->setMessages($messages); - $serverStream = $gapicClient->chat($request); - $this->assertInstanceOf(ServerStream::class, $serverStream); - $responses = iterator_to_array($serverStream->readAll()); - $expectedResponses = []; - $expectedResponses[] = $expectedResponse; - $expectedResponses[] = $expectedResponse2; - $expectedResponses[] = $expectedResponse3; - $this->assertEquals($expectedResponses, $responses); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.geminidataanalytics.v1beta.DataChatService/Chat', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $actualValue = $actualRequestObject->getMessages(); - $this->assertProtobufEquals($messages, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function chatExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $status = new stdClass(); - $status->code = 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->setStreamingStatus($status); - $this->assertTrue($transport->isExhausted()); - // Mock request - $parent = 'parent-995424086'; - $messages = []; - $request = (new ChatRequest()) - ->setParent($parent) - ->setMessages($messages); - $serverStream = $gapicClient->chat($request); - $results = $serverStream->readAll(); - try { - iterator_to_array($results); - // If the close stream 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 createConversationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $kmsKey = 'kmsKey-591635343'; - $memoryPaused = true; - $expectedResponse = new Conversation(); - $expectedResponse->setName($name); - $expectedResponse->setKmsKey($kmsKey); - $expectedResponse->setMemoryPaused($memoryPaused); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $conversation = new Conversation(); - $conversationAgents = []; - $conversation->setAgents($conversationAgents); - $request = (new CreateConversationRequest()) - ->setParent($formattedParent) - ->setConversation($conversation); - $response = $gapicClient->createConversation($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.geminidataanalytics.v1beta.DataChatService/CreateConversation', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getConversation(); - $this->assertProtobufEquals($conversation, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConversationExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $conversation = new Conversation(); - $conversationAgents = []; - $conversation->setAgents($conversationAgents); - $request = (new CreateConversationRequest()) - ->setParent($formattedParent) - ->setConversation($conversation); - try { - $gapicClient->createConversation($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 deleteConversationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); - $request = (new DeleteConversationRequest()) - ->setName($formattedName); - $gapicClient->deleteConversation($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.geminidataanalytics.v1beta.DataChatService/DeleteConversation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConversationExceptionTest() - { - $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->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); - $request = (new DeleteConversationRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteConversation($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 getConversationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $kmsKey = 'kmsKey-591635343'; - $memoryPaused = true; - $expectedResponse = new Conversation(); - $expectedResponse->setName($name2); - $expectedResponse->setKmsKey($kmsKey); - $expectedResponse->setMemoryPaused($memoryPaused); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); - $request = (new GetConversationRequest()) - ->setName($formattedName); - $response = $gapicClient->getConversation($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.geminidataanalytics.v1beta.DataChatService/GetConversation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConversationExceptionTest() - { - $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->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); - $request = (new GetConversationRequest()) - ->setName($formattedName); - try { - $gapicClient->getConversation($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 listConversationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $conversationsElement = new Conversation(); - $conversations = [ - $conversationsElement, - ]; - $expectedResponse = new ListConversationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setConversations($conversations); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListConversationsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listConversations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getConversations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.geminidataanalytics.v1beta.DataChatService/ListConversations', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConversationsExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListConversationsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listConversations($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 listMessagesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $messagesElement = new StorageMessage(); - $messages = [ - $messagesElement, - ]; - $expectedResponse = new ListMessagesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMessages($messages); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); - $request = (new ListMessagesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMessages($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMessages()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.geminidataanalytics.v1beta.DataChatService/ListMessages', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMessagesExceptionTest() - { - $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->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); - $request = (new ListMessagesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMessages($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 queryDataTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $generatedQuery = 'generatedQuery606760472'; - $intentExplanation = 'intentExplanation-1406510858'; - $naturalLanguageAnswer = 'naturalLanguageAnswer-645483921'; - $expectedResponse = new QueryDataResponse(); - $expectedResponse->setGeneratedQuery($generatedQuery); - $expectedResponse->setIntentExplanation($intentExplanation); - $expectedResponse->setNaturalLanguageAnswer($naturalLanguageAnswer); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $prompt = 'prompt-979805852'; - $context = new QueryDataContext(); - $contextDatasourceReferences = new DatasourceReferences(); - $context->setDatasourceReferences($contextDatasourceReferences); - $request = (new QueryDataRequest()) - ->setParent($formattedParent) - ->setPrompt($prompt) - ->setContext($context); - $response = $gapicClient->queryData($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.geminidataanalytics.v1beta.DataChatService/QueryData', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getPrompt(); - $this->assertProtobufEquals($prompt, $actualValue); - $actualValue = $actualRequestObject->getContext(); - $this->assertProtobufEquals($context, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryDataExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $prompt = 'prompt-979805852'; - $context = new QueryDataContext(); - $contextDatasourceReferences = new DatasourceReferences(); - $context->setDatasourceReferences($contextDatasourceReferences); - $request = (new QueryDataRequest()) - ->setParent($formattedParent) - ->setPrompt($prompt) - ->setContext($context); - try { - $gapicClient->queryData($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 getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($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.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $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); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($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 listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $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); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($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 createConversationAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $kmsKey = 'kmsKey-591635343'; - $memoryPaused = true; - $expectedResponse = new Conversation(); - $expectedResponse->setName($name); - $expectedResponse->setKmsKey($kmsKey); - $expectedResponse->setMemoryPaused($memoryPaused); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $conversation = new Conversation(); - $conversationAgents = []; - $conversation->setAgents($conversationAgents); - $request = (new CreateConversationRequest()) - ->setParent($formattedParent) - ->setConversation($conversation); - $response = $gapicClient->createConversationAsync($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.geminidataanalytics.v1beta.DataChatService/CreateConversation', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getConversation(); - $this->assertProtobufEquals($conversation, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -}