@@ -3831,6 +3831,11 @@ class GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequest
38313831 # @return [String]
38323832 attr_accessor :query_model
38333833
3834+ # Optional. Specification of each suggestion type.
3835+ # Corresponds to the JSON property `suggestionTypeSpecs`
3836+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestSuggestionTypeSpec>]
3837+ attr_accessor :suggestion_type_specs
3838+
38343839 # Optional. Suggestion types to return. If empty or unspecified, query
38353840 # suggestions are returned. Only one suggestion type is supported at the moment.
38363841 # Corresponds to the JSON property `suggestionTypes`
@@ -3863,6 +3868,7 @@ def update!(**args)
38633868 @include_tail_suggestions = args[:include_tail_suggestions] if args.key?(:include_tail_suggestions)
38643869 @query = args[:query] if args.key?(:query)
38653870 @query_model = args[:query_model] if args.key?(:query_model)
3871+ @suggestion_type_specs = args[:suggestion_type_specs] if args.key?(:suggestion_type_specs)
38663872 @suggestion_types = args[:suggestion_types] if args.key?(:suggestion_types)
38673873 @user_info = args[:user_info] if args.key?(:user_info)
38683874 @user_pseudo_id = args[:user_pseudo_id] if args.key?(:user_pseudo_id)
@@ -3925,6 +3931,31 @@ def update!(**args)
39253931 end
39263932 end
39273933
3934+ # Specification of each suggestion type.
3935+ class GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestSuggestionTypeSpec
3936+ include Google::Apis::Core::Hashable
3937+
3938+ # Optional. Maximum number of suggestions to return for each suggestion type.
3939+ # Corresponds to the JSON property `maxSuggestions`
3940+ # @return [Fixnum]
3941+ attr_accessor :max_suggestions
3942+
3943+ # Optional. Suggestion type.
3944+ # Corresponds to the JSON property `suggestionType`
3945+ # @return [String]
3946+ attr_accessor :suggestion_type
3947+
3948+ def initialize(**args)
3949+ update!(**args)
3950+ end
3951+
3952+ # Update properties of this object
3953+ def update!(**args)
3954+ @max_suggestions = args[:max_suggestions] if args.key?(:max_suggestions)
3955+ @suggestion_type = args[:suggestion_type] if args.key?(:suggestion_type)
3956+ end
3957+ end
3958+
39283959 # Response message for CompletionService.AdvancedCompleteQuery method.
39293960 class GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponse
39303961 include Google::Apis::Core::Hashable
@@ -4414,6 +4445,11 @@ class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest
44144445 attr_accessor :asynchronous_mode
44154446 alias_method :asynchronous_mode?, :asynchronous_mode
44164447
4448+ # End user specification.
4449+ # Corresponds to the JSON property `endUserSpec`
4450+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestEndUserSpec]
4451+ attr_accessor :end_user_spec
4452+
44174453 # Grounding specification.
44184454 # Corresponds to the JSON property `groundingSpec`
44194455 # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestGroundingSpec]
@@ -4489,6 +4525,7 @@ def initialize(**args)
44894525 def update!(**args)
44904526 @answer_generation_spec = args[:answer_generation_spec] if args.key?(:answer_generation_spec)
44914527 @asynchronous_mode = args[:asynchronous_mode] if args.key?(:asynchronous_mode)
4528+ @end_user_spec = args[:end_user_spec] if args.key?(:end_user_spec)
44924529 @grounding_spec = args[:grounding_spec] if args.key?(:grounding_spec)
44934530 @query = args[:query] if args.key?(:query)
44944531 @query_understanding_spec = args[:query_understanding_spec] if args.key?(:query_understanding_spec)
@@ -4629,6 +4666,90 @@ def update!(**args)
46294666 end
46304667 end
46314668
4669+ # End user specification.
4670+ class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestEndUserSpec
4671+ include Google::Apis::Core::Hashable
4672+
4673+ # Optional. End user metadata.
4674+ # Corresponds to the JSON property `endUserMetadata`
4675+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestEndUserSpecEndUserMetaData>]
4676+ attr_accessor :end_user_metadata
4677+
4678+ def initialize(**args)
4679+ update!(**args)
4680+ end
4681+
4682+ # Update properties of this object
4683+ def update!(**args)
4684+ @end_user_metadata = args[:end_user_metadata] if args.key?(:end_user_metadata)
4685+ end
4686+ end
4687+
4688+ # End user metadata.
4689+ class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestEndUserSpecEndUserMetaData
4690+ include Google::Apis::Core::Hashable
4691+
4692+ # Chunk information.
4693+ # Corresponds to the JSON property `chunkInfo`
4694+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestEndUserSpecEndUserMetaDataChunkInfo]
4695+ attr_accessor :chunk_info
4696+
4697+ def initialize(**args)
4698+ update!(**args)
4699+ end
4700+
4701+ # Update properties of this object
4702+ def update!(**args)
4703+ @chunk_info = args[:chunk_info] if args.key?(:chunk_info)
4704+ end
4705+ end
4706+
4707+ # Chunk information.
4708+ class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestEndUserSpecEndUserMetaDataChunkInfo
4709+ include Google::Apis::Core::Hashable
4710+
4711+ # Chunk textual content. It is limited to 8000 characters.
4712+ # Corresponds to the JSON property `content`
4713+ # @return [String]
4714+ attr_accessor :content
4715+
4716+ # Document metadata contains the information of the document of the current
4717+ # chunk.
4718+ # Corresponds to the JSON property `documentMetadata`
4719+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestEndUserSpecEndUserMetaDataChunkInfoDocumentMetadata]
4720+ attr_accessor :document_metadata
4721+
4722+ def initialize(**args)
4723+ update!(**args)
4724+ end
4725+
4726+ # Update properties of this object
4727+ def update!(**args)
4728+ @content = args[:content] if args.key?(:content)
4729+ @document_metadata = args[:document_metadata] if args.key?(:document_metadata)
4730+ end
4731+ end
4732+
4733+ # Document metadata contains the information of the document of the current
4734+ # chunk.
4735+ class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestEndUserSpecEndUserMetaDataChunkInfoDocumentMetadata
4736+ include Google::Apis::Core::Hashable
4737+
4738+ # Title of the document.
4739+ # Corresponds to the JSON property `title`
4740+ # @return [String]
4741+ attr_accessor :title
4742+
4743+ def initialize(**args)
4744+ update!(**args)
4745+ end
4746+
4747+ # Update properties of this object
4748+ def update!(**args)
4749+ @title = args[:title] if args.key?(:title)
4750+ end
4751+ end
4752+
46324753 # Grounding specification.
46334754 class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestGroundingSpec
46344755 include Google::Apis::Core::Hashable
0 commit comments