@@ -327,6 +327,38 @@ message CloudSqlSource {
327327 bool offload = 6 ;
328328}
329329
330+ // AlloyDB source import data from.
331+ message AlloyDbSource {
332+ // The project ID that the AlloyDB source is in
333+ // with a length limit of 128 characters. If not specified, inherits the
334+ // project ID from the parent request.
335+ string project_id = 1 ;
336+
337+ // Required. The AlloyDB location to copy the data from with a length limit of
338+ // 256 characters.
339+ string location_id = 2 [(google.api.field_behavior ) = REQUIRED ];
340+
341+ // Required. The AlloyDB cluster to copy the data from with a length limit of
342+ // 256 characters.
343+ string cluster_id = 3 [(google.api.field_behavior ) = REQUIRED ];
344+
345+ // Required. The AlloyDB database to copy the data from with a length limit of
346+ // 256 characters.
347+ string database_id = 4 [(google.api.field_behavior ) = REQUIRED ];
348+
349+ // Required. The AlloyDB table to copy the data from with a length limit of
350+ // 256 characters.
351+ string table_id = 5 [(google.api.field_behavior ) = REQUIRED ];
352+
353+ // Intermediate Cloud Storage directory used for the import with a length
354+ // limit of 2,000 characters. Can be specified if one wants to have the
355+ // AlloyDB export to a specific Cloud Storage directory.
356+ //
357+ // Ensure that the AlloyDB service account has the necessary Cloud
358+ // Storage Admin permissions to access the specified Cloud Storage directory.
359+ string gcs_staging_dir = 6 ;
360+ }
361+
330362// Firestore source import data from.
331363message FirestoreSource {
332364 // The project ID that the Cloud SQL source is in with a length limit of 128
@@ -500,6 +532,9 @@ message ImportDocumentsRequest {
500532 // Firestore input source.
501533 FirestoreSource firestore_source = 13 ;
502534
535+ // AlloyDB input source.
536+ AlloyDbSource alloy_db_source = 14 ;
537+
503538 // Cloud Bigtable input source.
504539 BigtableSource bigtable_source = 15 ;
505540 }
@@ -665,6 +700,79 @@ message ImportSuggestionDenyListEntriesMetadata {
665700 google.protobuf.Timestamp update_time = 2 ;
666701}
667702
703+ // Request message for
704+ // [CompletionService.ImportCompletionSuggestions][google.cloud.discoveryengine.v1beta.CompletionService.ImportCompletionSuggestions]
705+ // method.
706+ message ImportCompletionSuggestionsRequest {
707+ // The inline source for CompletionSuggestions.
708+ message InlineSource {
709+ // Required. A list of all denylist entries to import. Max of 1000 items.
710+ repeated CompletionSuggestion suggestions = 1
711+ [(google.api.field_behavior ) = REQUIRED ];
712+ }
713+
714+ // The source of the autocomplete suggestions.
715+ oneof source {
716+ // The Inline source for suggestion entries.
717+ InlineSource inline_source = 2 ;
718+
719+ // Cloud Storage location for the input content.
720+ GcsSource gcs_source = 3 ;
721+
722+ // BigQuery input source.
723+ BigQuerySource bigquery_source = 4 ;
724+ }
725+
726+ // Required. The parent data store resource name for which to import customer
727+ // autocomplete suggestions.
728+ //
729+ // Follows pattern `projects/*/locations/*/collections/*/dataStores/*`
730+ string parent = 1 [
731+ (google.api.field_behavior ) = REQUIRED ,
732+ (google.api.resource_reference ) = {
733+ type : "discoveryengine.googleapis.com/DataStore"
734+ }
735+ ];
736+
737+ // The desired location of errors incurred during the Import.
738+ ImportErrorConfig error_config = 5 ;
739+ }
740+
741+ // Response of the
742+ // [CompletionService.ImportCompletionSuggestions][google.cloud.discoveryengine.v1beta.CompletionService.ImportCompletionSuggestions]
743+ // method. If the long running operation is done, this message is returned by
744+ // the google.longrunning.Operations.response field if the operation is
745+ // successful.
746+ message ImportCompletionSuggestionsResponse {
747+ // A sample of errors encountered while processing the request.
748+ repeated google.rpc.Status error_samples = 1 ;
749+
750+ // The desired location of errors incurred during the Import.
751+ ImportErrorConfig error_config = 2 ;
752+ }
753+
754+ // Metadata related to the progress of the ImportCompletionSuggestions
755+ // operation. This will be returned by the google.longrunning.Operation.metadata
756+ // field.
757+ message ImportCompletionSuggestionsMetadata {
758+ // Operation create time.
759+ google.protobuf.Timestamp create_time = 1 ;
760+
761+ // Operation last update time. If the operation is done, this is also the
762+ // finish time.
763+ google.protobuf.Timestamp update_time = 2 ;
764+
765+ // Count of
766+ // [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
767+ // successfully imported.
768+ int64 success_count = 3 ;
769+
770+ // Count of
771+ // [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
772+ // that failed to be imported.
773+ int64 failure_count = 4 ;
774+ }
775+
668776// Request message for
669777// [SampleQueryService.ImportSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ImportSampleQueries]
670778// method.
0 commit comments