google-apis-discoveryengine_v1alpha 0.69.0 → 0.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2147c6961cfc1689ed1d887cea14a0deb144de421bbd6cff5280d6a2ff378cbb
4
- data.tar.gz: df7630d9a9b961a8c341f4f303e3a84e52f4ddc3e6fffaac975b8aae31387770
3
+ metadata.gz: 8168552fe27ecd6eb12f21f3c00a17c0a1d4be13c83ad67158fa1e27db6f655e
4
+ data.tar.gz: '0802a901688e62c71572c21f14ed34c59ece31161b4f7b6f058499564d2d2bf2'
5
5
  SHA512:
6
- metadata.gz: 44945ceab2eb57fdc6030abae26f741a6b82f6f51f639eccc5e6494e4cf7b88c6ac9ff457785aea830ee3b207fda7e8b651d953cb5f9576e15ed3d43a44c21ef
7
- data.tar.gz: 99abc43fefe7cc45124cbd54714b8b1bc4c4d39f8bde0ab0ef6b537f6aeafc80f19fdade3d840d25506a79eb8e2f713a96718bdb0c11608b2b8c4534d1b1e58f
6
+ metadata.gz: 9a41a1c2083c9227425e2e7175a3061afd49f6c549a52c3a978069b96f7cf7f15cf977ef0a0900aa1f9faae2227eb9768d2e9bcfb2945b2121bb759948de506f
7
+ data.tar.gz: 918b1108083893a115fd185e707037d595e9838b024b13889cbc096e8022e30780dd657cac7cdcd57e89054a8aaea9d5a4ecf903248856069d23b3a421e59de1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-discoveryengine_v1alpha
2
2
 
3
+ ### v0.70.0 (2025-07-20)
4
+
5
+ * Regenerated from discovery document revision 20250716
6
+
3
7
  ### v0.69.0 (2025-07-13)
4
8
 
5
9
  * Regenerated from discovery document revision 20250706
@@ -3073,6 +3073,13 @@ module Google
3073
3073
  class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigLayoutParsingConfig
3074
3074
  include Google::Apis::Core::Hashable
3075
3075
 
3076
+ # Optional. If true, the processed document will be made available for the
3077
+ # GetProcessedDocument API.
3078
+ # Corresponds to the JSON property `enableGetProcessedDocument`
3079
+ # @return [Boolean]
3080
+ attr_accessor :enable_get_processed_document
3081
+ alias_method :enable_get_processed_document?, :enable_get_processed_document
3082
+
3076
3083
  # Optional. If true, the LLM based annotation is added to the image during
3077
3084
  # parsing.
3078
3085
  # Corresponds to the JSON property `enableImageAnnotation`
@@ -3114,6 +3121,7 @@ module Google
3114
3121
 
3115
3122
  # Update properties of this object
3116
3123
  def update!(**args)
3124
+ @enable_get_processed_document = args[:enable_get_processed_document] if args.key?(:enable_get_processed_document)
3117
3125
  @enable_image_annotation = args[:enable_image_annotation] if args.key?(:enable_image_annotation)
3118
3126
  @enable_table_annotation = args[:enable_table_annotation] if args.key?(:enable_table_annotation)
3119
3127
  @exclude_html_classes = args[:exclude_html_classes] if args.key?(:exclude_html_classes)
@@ -3243,7 +3251,8 @@ module Google
3243
3251
  # Supported keys: * `*`: all features, if it's present, all other feature state
3244
3252
  # settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-
3245
3253
  # gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-
3246
- # org-chart` * `bi-directional-audio` * `feedback` * `session-sharing`
3254
+ # org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `
3255
+ # personalization-memory` - Enables personalization based on user preferences.
3247
3256
  # Corresponds to the JSON property `features`
3248
3257
  # @return [Hash<String,String>]
3249
3258
  attr_accessor :features
@@ -7859,6 +7868,405 @@ module Google
7859
7868
  end
7860
7869
  end
7861
7870
 
7871
+ # AssistAnswer resource, main part of AssistResponse.
7872
+ class GoogleCloudDiscoveryengineV1alphaAssistAnswer
7873
+ include Google::Apis::Core::Hashable
7874
+
7875
+ # Reasons for not answering the assist call.
7876
+ # Corresponds to the JSON property `assistSkippedReasons`
7877
+ # @return [Array<String>]
7878
+ attr_accessor :assist_skipped_reasons
7879
+
7880
+ # Replies of the assistant.
7881
+ # Corresponds to the JSON property `replies`
7882
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistAnswerReply>]
7883
+ attr_accessor :replies
7884
+
7885
+ # State of the answer generation.
7886
+ # Corresponds to the JSON property `state`
7887
+ # @return [String]
7888
+ attr_accessor :state
7889
+
7890
+ def initialize(**args)
7891
+ update!(**args)
7892
+ end
7893
+
7894
+ # Update properties of this object
7895
+ def update!(**args)
7896
+ @assist_skipped_reasons = args[:assist_skipped_reasons] if args.key?(:assist_skipped_reasons)
7897
+ @replies = args[:replies] if args.key?(:replies)
7898
+ @state = args[:state] if args.key?(:state)
7899
+ end
7900
+ end
7901
+
7902
+ # One part of the multi-part response of the assist call.
7903
+ class GoogleCloudDiscoveryengineV1alphaAssistAnswerReply
7904
+ include Google::Apis::Core::Hashable
7905
+
7906
+ # A piece of content and possibly its grounding information. Not all content
7907
+ # needs grounding. Phrases like "Of course, I will gladly search it for you." do
7908
+ # not need grounding.
7909
+ # Corresponds to the JSON property `groundedContent`
7910
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContent]
7911
+ attr_accessor :grounded_content
7912
+
7913
+ def initialize(**args)
7914
+ update!(**args)
7915
+ end
7916
+
7917
+ # Update properties of this object
7918
+ def update!(**args)
7919
+ @grounded_content = args[:grounded_content] if args.key?(:grounded_content)
7920
+ end
7921
+ end
7922
+
7923
+ # User metadata of the request.
7924
+ class GoogleCloudDiscoveryengineV1alphaAssistUserMetadata
7925
+ include Google::Apis::Core::Hashable
7926
+
7927
+ # Optional. Preferred language to be used for answering if language detection
7928
+ # fails. Also used as the language of error messages created by actions,
7929
+ # regardless of language detection results.
7930
+ # Corresponds to the JSON property `preferredLanguageCode`
7931
+ # @return [String]
7932
+ attr_accessor :preferred_language_code
7933
+
7934
+ # Optional. IANA time zone, e.g. Europe/Budapest.
7935
+ # Corresponds to the JSON property `timeZone`
7936
+ # @return [String]
7937
+ attr_accessor :time_zone
7938
+
7939
+ def initialize(**args)
7940
+ update!(**args)
7941
+ end
7942
+
7943
+ # Update properties of this object
7944
+ def update!(**args)
7945
+ @preferred_language_code = args[:preferred_language_code] if args.key?(:preferred_language_code)
7946
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
7947
+ end
7948
+ end
7949
+
7950
+ # Multi-modal content.
7951
+ class GoogleCloudDiscoveryengineV1alphaAssistantContent
7952
+ include Google::Apis::Core::Hashable
7953
+
7954
+ # Result of executing ExecutableCode.
7955
+ # Corresponds to the JSON property `codeExecutionResult`
7956
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantContentCodeExecutionResult]
7957
+ attr_accessor :code_execution_result
7958
+
7959
+ # Code generated by the model that is meant to be executed by the model.
7960
+ # Corresponds to the JSON property `executableCode`
7961
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantContentExecutableCode]
7962
+ attr_accessor :executable_code
7963
+
7964
+ # A file, e.g., an audio summary.
7965
+ # Corresponds to the JSON property `file`
7966
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantContentFile]
7967
+ attr_accessor :file
7968
+
7969
+ # Inline blob.
7970
+ # Corresponds to the JSON property `inlineData`
7971
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantContentBlob]
7972
+ attr_accessor :inline_data
7973
+
7974
+ # The producer of the content. Can be "model" or "user".
7975
+ # Corresponds to the JSON property `role`
7976
+ # @return [String]
7977
+ attr_accessor :role
7978
+
7979
+ # Inline text.
7980
+ # Corresponds to the JSON property `text`
7981
+ # @return [String]
7982
+ attr_accessor :text
7983
+
7984
+ # Optional. Indicates if the part is thought from the model.
7985
+ # Corresponds to the JSON property `thought`
7986
+ # @return [Boolean]
7987
+ attr_accessor :thought
7988
+ alias_method :thought?, :thought
7989
+
7990
+ def initialize(**args)
7991
+ update!(**args)
7992
+ end
7993
+
7994
+ # Update properties of this object
7995
+ def update!(**args)
7996
+ @code_execution_result = args[:code_execution_result] if args.key?(:code_execution_result)
7997
+ @executable_code = args[:executable_code] if args.key?(:executable_code)
7998
+ @file = args[:file] if args.key?(:file)
7999
+ @inline_data = args[:inline_data] if args.key?(:inline_data)
8000
+ @role = args[:role] if args.key?(:role)
8001
+ @text = args[:text] if args.key?(:text)
8002
+ @thought = args[:thought] if args.key?(:thought)
8003
+ end
8004
+ end
8005
+
8006
+ # Inline blob.
8007
+ class GoogleCloudDiscoveryengineV1alphaAssistantContentBlob
8008
+ include Google::Apis::Core::Hashable
8009
+
8010
+ # Required. Raw bytes.
8011
+ # Corresponds to the JSON property `data`
8012
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
8013
+ # @return [String]
8014
+ attr_accessor :data
8015
+
8016
+ # Required. The media type (MIME type) of the generated data.
8017
+ # Corresponds to the JSON property `mimeType`
8018
+ # @return [String]
8019
+ attr_accessor :mime_type
8020
+
8021
+ def initialize(**args)
8022
+ update!(**args)
8023
+ end
8024
+
8025
+ # Update properties of this object
8026
+ def update!(**args)
8027
+ @data = args[:data] if args.key?(:data)
8028
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
8029
+ end
8030
+ end
8031
+
8032
+ # Result of executing ExecutableCode.
8033
+ class GoogleCloudDiscoveryengineV1alphaAssistantContentCodeExecutionResult
8034
+ include Google::Apis::Core::Hashable
8035
+
8036
+ # Required. Outcome of the code execution.
8037
+ # Corresponds to the JSON property `outcome`
8038
+ # @return [String]
8039
+ attr_accessor :outcome
8040
+
8041
+ # Optional. Contains stdout when code execution is successful, stderr or other
8042
+ # description otherwise.
8043
+ # Corresponds to the JSON property `output`
8044
+ # @return [String]
8045
+ attr_accessor :output
8046
+
8047
+ def initialize(**args)
8048
+ update!(**args)
8049
+ end
8050
+
8051
+ # Update properties of this object
8052
+ def update!(**args)
8053
+ @outcome = args[:outcome] if args.key?(:outcome)
8054
+ @output = args[:output] if args.key?(:output)
8055
+ end
8056
+ end
8057
+
8058
+ # Code generated by the model that is meant to be executed by the model.
8059
+ class GoogleCloudDiscoveryengineV1alphaAssistantContentExecutableCode
8060
+ include Google::Apis::Core::Hashable
8061
+
8062
+ # Required. The code content. Currently only supports Python.
8063
+ # Corresponds to the JSON property `code`
8064
+ # @return [String]
8065
+ attr_accessor :code
8066
+
8067
+ def initialize(**args)
8068
+ update!(**args)
8069
+ end
8070
+
8071
+ # Update properties of this object
8072
+ def update!(**args)
8073
+ @code = args[:code] if args.key?(:code)
8074
+ end
8075
+ end
8076
+
8077
+ # A file, e.g., an audio summary.
8078
+ class GoogleCloudDiscoveryengineV1alphaAssistantContentFile
8079
+ include Google::Apis::Core::Hashable
8080
+
8081
+ # Required. The file ID.
8082
+ # Corresponds to the JSON property `fileId`
8083
+ # @return [String]
8084
+ attr_accessor :file_id
8085
+
8086
+ # Required. The media type (MIME type) of the file.
8087
+ # Corresponds to the JSON property `mimeType`
8088
+ # @return [String]
8089
+ attr_accessor :mime_type
8090
+
8091
+ def initialize(**args)
8092
+ update!(**args)
8093
+ end
8094
+
8095
+ # Update properties of this object
8096
+ def update!(**args)
8097
+ @file_id = args[:file_id] if args.key?(:file_id)
8098
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
8099
+ end
8100
+ end
8101
+
8102
+ # A piece of content and possibly its grounding information. Not all content
8103
+ # needs grounding. Phrases like "Of course, I will gladly search it for you." do
8104
+ # not need grounding.
8105
+ class GoogleCloudDiscoveryengineV1alphaAssistantGroundedContent
8106
+ include Google::Apis::Core::Hashable
8107
+
8108
+ # Multi-modal content.
8109
+ # Corresponds to the JSON property `content`
8110
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantContent]
8111
+ attr_accessor :content
8112
+
8113
+ # Grounding details for text sources.
8114
+ # Corresponds to the JSON property `textGroundingMetadata`
8115
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadata]
8116
+ attr_accessor :text_grounding_metadata
8117
+
8118
+ def initialize(**args)
8119
+ update!(**args)
8120
+ end
8121
+
8122
+ # Update properties of this object
8123
+ def update!(**args)
8124
+ @content = args[:content] if args.key?(:content)
8125
+ @text_grounding_metadata = args[:text_grounding_metadata] if args.key?(:text_grounding_metadata)
8126
+ end
8127
+ end
8128
+
8129
+ # Grounding details for text sources.
8130
+ class GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadata
8131
+ include Google::Apis::Core::Hashable
8132
+
8133
+ # References for the grounded text.
8134
+ # Corresponds to the JSON property `references`
8135
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReference>]
8136
+ attr_accessor :references
8137
+
8138
+ # Grounding information for parts of the text.
8139
+ # Corresponds to the JSON property `segments`
8140
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataSegment>]
8141
+ attr_accessor :segments
8142
+
8143
+ def initialize(**args)
8144
+ update!(**args)
8145
+ end
8146
+
8147
+ # Update properties of this object
8148
+ def update!(**args)
8149
+ @references = args[:references] if args.key?(:references)
8150
+ @segments = args[:segments] if args.key?(:segments)
8151
+ end
8152
+ end
8153
+
8154
+ # Referenced content and related document metadata.
8155
+ class GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReference
8156
+ include Google::Apis::Core::Hashable
8157
+
8158
+ # Referenced text content.
8159
+ # Corresponds to the JSON property `content`
8160
+ # @return [String]
8161
+ attr_accessor :content
8162
+
8163
+ # Document metadata.
8164
+ # Corresponds to the JSON property `documentMetadata`
8165
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReferenceDocumentMetadata]
8166
+ attr_accessor :document_metadata
8167
+
8168
+ def initialize(**args)
8169
+ update!(**args)
8170
+ end
8171
+
8172
+ # Update properties of this object
8173
+ def update!(**args)
8174
+ @content = args[:content] if args.key?(:content)
8175
+ @document_metadata = args[:document_metadata] if args.key?(:document_metadata)
8176
+ end
8177
+ end
8178
+
8179
+ # Document metadata.
8180
+ class GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReferenceDocumentMetadata
8181
+ include Google::Apis::Core::Hashable
8182
+
8183
+ # Document resource name.
8184
+ # Corresponds to the JSON property `document`
8185
+ # @return [String]
8186
+ attr_accessor :document
8187
+
8188
+ # Domain name from the document URI. Note that the `uri` field may contain a URL
8189
+ # that redirects to the actual website, in which case this will contain the
8190
+ # domain name of the target site.
8191
+ # Corresponds to the JSON property `domain`
8192
+ # @return [String]
8193
+ attr_accessor :domain
8194
+
8195
+ # Page identifier.
8196
+ # Corresponds to the JSON property `pageIdentifier`
8197
+ # @return [String]
8198
+ attr_accessor :page_identifier
8199
+
8200
+ # Title.
8201
+ # Corresponds to the JSON property `title`
8202
+ # @return [String]
8203
+ attr_accessor :title
8204
+
8205
+ # URI for the document. It may contain a URL that redirects to the actual
8206
+ # website.
8207
+ # Corresponds to the JSON property `uri`
8208
+ # @return [String]
8209
+ attr_accessor :uri
8210
+
8211
+ def initialize(**args)
8212
+ update!(**args)
8213
+ end
8214
+
8215
+ # Update properties of this object
8216
+ def update!(**args)
8217
+ @document = args[:document] if args.key?(:document)
8218
+ @domain = args[:domain] if args.key?(:domain)
8219
+ @page_identifier = args[:page_identifier] if args.key?(:page_identifier)
8220
+ @title = args[:title] if args.key?(:title)
8221
+ @uri = args[:uri] if args.key?(:uri)
8222
+ end
8223
+ end
8224
+
8225
+ # Grounding information for a segment of the text.
8226
+ class GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataSegment
8227
+ include Google::Apis::Core::Hashable
8228
+
8229
+ # End of the segment, exclusive.
8230
+ # Corresponds to the JSON property `endIndex`
8231
+ # @return [Fixnum]
8232
+ attr_accessor :end_index
8233
+
8234
+ # Score for the segment.
8235
+ # Corresponds to the JSON property `groundingScore`
8236
+ # @return [Float]
8237
+ attr_accessor :grounding_score
8238
+
8239
+ # References for the segment.
8240
+ # Corresponds to the JSON property `referenceIndices`
8241
+ # @return [Array<Fixnum>]
8242
+ attr_accessor :reference_indices
8243
+
8244
+ # Zero-based index indicating the start of the segment, measured in bytes of a
8245
+ # UTF-8 string (i.e. characters encoded on multiple bytes have a length of more
8246
+ # than one).
8247
+ # Corresponds to the JSON property `startIndex`
8248
+ # @return [Fixnum]
8249
+ attr_accessor :start_index
8250
+
8251
+ # The text segment itself.
8252
+ # Corresponds to the JSON property `text`
8253
+ # @return [String]
8254
+ attr_accessor :text
8255
+
8256
+ def initialize(**args)
8257
+ update!(**args)
8258
+ end
8259
+
8260
+ # Update properties of this object
8261
+ def update!(**args)
8262
+ @end_index = args[:end_index] if args.key?(:end_index)
8263
+ @grounding_score = args[:grounding_score] if args.key?(:grounding_score)
8264
+ @reference_indices = args[:reference_indices] if args.key?(:reference_indices)
8265
+ @start_index = args[:start_index] if args.key?(:start_index)
8266
+ @text = args[:text] if args.key?(:text)
8267
+ end
8268
+ end
8269
+
7862
8270
  # The configuration for the BAP connector.
7863
8271
  class GoogleCloudDiscoveryengineV1alphaBapConfig
7864
8272
  include Google::Apis::Core::Hashable
@@ -11973,6 +12381,13 @@ module Google
11973
12381
  class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig
11974
12382
  include Google::Apis::Core::Hashable
11975
12383
 
12384
+ # Optional. If true, the processed document will be made available for the
12385
+ # GetProcessedDocument API.
12386
+ # Corresponds to the JSON property `enableGetProcessedDocument`
12387
+ # @return [Boolean]
12388
+ attr_accessor :enable_get_processed_document
12389
+ alias_method :enable_get_processed_document?, :enable_get_processed_document
12390
+
11976
12391
  # Optional. If true, the LLM based annotation is added to the image during
11977
12392
  # parsing.
11978
12393
  # Corresponds to the JSON property `enableImageAnnotation`
@@ -12014,6 +12429,7 @@ module Google
12014
12429
 
12015
12430
  # Update properties of this object
12016
12431
  def update!(**args)
12432
+ @enable_get_processed_document = args[:enable_get_processed_document] if args.key?(:enable_get_processed_document)
12017
12433
  @enable_image_annotation = args[:enable_image_annotation] if args.key?(:enable_image_annotation)
12018
12434
  @enable_table_annotation = args[:enable_table_annotation] if args.key?(:enable_table_annotation)
12019
12435
  @exclude_html_classes = args[:exclude_html_classes] if args.key?(:exclude_html_classes)
@@ -12194,7 +12610,8 @@ module Google
12194
12610
  # Supported keys: * `*`: all features, if it's present, all other feature state
12195
12611
  # settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-
12196
12612
  # gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-
12197
- # org-chart` * `bi-directional-audio` * `feedback` * `session-sharing`
12613
+ # org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `
12614
+ # personalization-memory` - Enables personalization based on user preferences.
12198
12615
  # Corresponds to the JSON property `features`
12199
12616
  # @return [Hash<String,String>]
12200
12617
  attr_accessor :features
@@ -13967,7 +14384,7 @@ module Google
13967
14384
  # GcsSource. GcsSource.data_schema must be `custom` or `csv`. Otherwise, an
13968
14385
  # INVALID_ARGUMENT error is thrown. * BigQuerySource. BigQuerySource.data_schema
13969
14386
  # must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. *
13970
- # SpannerSource. * CloudSqlSource. * FirestoreSource. * BigtableSource.
14387
+ # SpannerSource. * CloudSqlSource. * BigtableSource.
13971
14388
  # Corresponds to the JSON property `idField`
13972
14389
  # @return [String]
13973
14390
  attr_accessor :id_field
@@ -17816,21 +18233,17 @@ module Google
17816
18233
 
17817
18234
  # The session resource name. Optional. Session allows users to do multi-turn /
17818
18235
  # search API calls or coordination between /search API calls and /answer API
17819
- # calls. Example #1 (multi-turn /search API calls): 1. Call /search API with the
17820
- # auto-session mode (see below). 2. Call /search API with the session ID
17821
- # generated in the first call. Here, the previous search query gets considered
17822
- # in query standing. I.e., if the first query is "How did Alphabet do in 2022?"
17823
- # and the current query is "How about 2023?", the current query will be
17824
- # interpreted as "How did Alphabet do in 2023?". Example #2 (coordination
17825
- # between /search API calls and /answer API calls): 1. Call /search API with the
17826
- # auto-session mode (see below). 2. Call /answer API with the session ID
17827
- # generated in the first call. Here, the answer generation happens in the
17828
- # context of the search results from the first search call. Auto-session mode:
17829
- # when `projects/.../sessions/-` is used, a new session gets automatically
17830
- # created. Otherwise, users can use the create-session API to create a session
17831
- # manually. Multi-turn Search feature is currently at private GA stage. Please
17832
- # use v1alpha or v1beta version instead before we launch this feature to public
17833
- # GA. Or ask for allowlisting through Google Support team.
18236
+ # calls. Example #1 (multi-turn /search API calls): Call /search API with the
18237
+ # session ID generated in the first call. Here, the previous search query gets
18238
+ # considered in query standing. I.e., if the first query is "How did Alphabet do
18239
+ # in 2022?" and the current query is "How about 2023?", the current query will
18240
+ # be interpreted as "How did Alphabet do in 2023?". Example #2 (coordination
18241
+ # between /search API calls and /answer API calls): Call /answer API with the
18242
+ # session ID generated in the first call. Here, the answer generation happens in
18243
+ # the context of the search results from the first search call. Multi-turn
18244
+ # Search feature is currently at private GA stage. Please use v1alpha or v1beta
18245
+ # version instead before we launch this feature to public GA. Or ask for
18246
+ # allowlisting through Google Support team.
17834
18247
  # Corresponds to the JSON property `session`
17835
18248
  # @return [String]
17836
18249
  attr_accessor :session
@@ -20695,6 +21108,266 @@ module Google
20695
21108
  end
20696
21109
  end
20697
21110
 
21111
+ # Request for the AssistantService.StreamAssist method.
21112
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequest
21113
+ include Google::Apis::Core::Hashable
21114
+
21115
+ # Assistant generation specification for the request. This allows to override
21116
+ # the default generation configuration at the engine level.
21117
+ # Corresponds to the JSON property `generationSpec`
21118
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequestGenerationSpec]
21119
+ attr_accessor :generation_spec
21120
+
21121
+ # Defines a user inputed query.
21122
+ # Corresponds to the JSON property `query`
21123
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaQuery]
21124
+ attr_accessor :query
21125
+
21126
+ # Optional. The session to use for the request. If specified, the assistant has
21127
+ # access to the session history, and the query and the answer are stored there.
21128
+ # If `-` is specified as the session ID, or it is left empty, then a new session
21129
+ # is created with an automatically generated ID. Format: `projects/`project`/
21130
+ # locations/`location`/collections/`collection`/engines/`engine`/sessions/`
21131
+ # session``
21132
+ # Corresponds to the JSON property `session`
21133
+ # @return [String]
21134
+ attr_accessor :session
21135
+
21136
+ # Specification of tools that are used to serve the request.
21137
+ # Corresponds to the JSON property `toolsSpec`
21138
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpec]
21139
+ attr_accessor :tools_spec
21140
+
21141
+ # User metadata of the request.
21142
+ # Corresponds to the JSON property `userMetadata`
21143
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistUserMetadata]
21144
+ attr_accessor :user_metadata
21145
+
21146
+ def initialize(**args)
21147
+ update!(**args)
21148
+ end
21149
+
21150
+ # Update properties of this object
21151
+ def update!(**args)
21152
+ @generation_spec = args[:generation_spec] if args.key?(:generation_spec)
21153
+ @query = args[:query] if args.key?(:query)
21154
+ @session = args[:session] if args.key?(:session)
21155
+ @tools_spec = args[:tools_spec] if args.key?(:tools_spec)
21156
+ @user_metadata = args[:user_metadata] if args.key?(:user_metadata)
21157
+ end
21158
+ end
21159
+
21160
+ # Assistant generation specification for the request. This allows to override
21161
+ # the default generation configuration at the engine level.
21162
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestGenerationSpec
21163
+ include Google::Apis::Core::Hashable
21164
+
21165
+ # Optional. The Vertex AI model_id used for the generative model. If not set,
21166
+ # the default Assistant model will be used.
21167
+ # Corresponds to the JSON property `modelId`
21168
+ # @return [String]
21169
+ attr_accessor :model_id
21170
+
21171
+ def initialize(**args)
21172
+ update!(**args)
21173
+ end
21174
+
21175
+ # Update properties of this object
21176
+ def update!(**args)
21177
+ @model_id = args[:model_id] if args.key?(:model_id)
21178
+ end
21179
+ end
21180
+
21181
+ # Specification of tools that are used to serve the request.
21182
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpec
21183
+ include Google::Apis::Core::Hashable
21184
+
21185
+ # Specification of the image generation tool.
21186
+ # Corresponds to the JSON property `imageGenerationSpec`
21187
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecImageGenerationSpec]
21188
+ attr_accessor :image_generation_spec
21189
+
21190
+ # Optional. The name of the tool registry to use. Format: `projects/`project`/
21191
+ # locations/`location`/toolRegistries/`tool_registry``
21192
+ # Corresponds to the JSON property `toolRegistry`
21193
+ # @return [String]
21194
+ attr_accessor :tool_registry
21195
+
21196
+ # Specification of the Vertex AI Search tool.
21197
+ # Corresponds to the JSON property `vertexAiSearchSpec`
21198
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecVertexAiSearchSpec]
21199
+ attr_accessor :vertex_ai_search_spec
21200
+
21201
+ # Specification of the video generation tool.
21202
+ # Corresponds to the JSON property `videoGenerationSpec`
21203
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecVideoGenerationSpec]
21204
+ attr_accessor :video_generation_spec
21205
+
21206
+ # Specification of the web grounding tool.
21207
+ # Corresponds to the JSON property `webGroundingSpec`
21208
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecWebGroundingSpec]
21209
+ attr_accessor :web_grounding_spec
21210
+
21211
+ def initialize(**args)
21212
+ update!(**args)
21213
+ end
21214
+
21215
+ # Update properties of this object
21216
+ def update!(**args)
21217
+ @image_generation_spec = args[:image_generation_spec] if args.key?(:image_generation_spec)
21218
+ @tool_registry = args[:tool_registry] if args.key?(:tool_registry)
21219
+ @vertex_ai_search_spec = args[:vertex_ai_search_spec] if args.key?(:vertex_ai_search_spec)
21220
+ @video_generation_spec = args[:video_generation_spec] if args.key?(:video_generation_spec)
21221
+ @web_grounding_spec = args[:web_grounding_spec] if args.key?(:web_grounding_spec)
21222
+ end
21223
+ end
21224
+
21225
+ # Specification of the image generation tool.
21226
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecImageGenerationSpec
21227
+ include Google::Apis::Core::Hashable
21228
+
21229
+ def initialize(**args)
21230
+ update!(**args)
21231
+ end
21232
+
21233
+ # Update properties of this object
21234
+ def update!(**args)
21235
+ end
21236
+ end
21237
+
21238
+ # Specification of the Vertex AI Search tool.
21239
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecVertexAiSearchSpec
21240
+ include Google::Apis::Core::Hashable
21241
+
21242
+ # Optional. Specs defining DataStores to filter on in a search call and
21243
+ # configurations for those data stores. This is only considered for Engines with
21244
+ # multiple data stores.
21245
+ # Corresponds to the JSON property `dataStoreSpecs`
21246
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec>]
21247
+ attr_accessor :data_store_specs
21248
+
21249
+ # Optional. Deprecated. Please refrain from using this field. Whether the Vertex
21250
+ # AI Search tool is disabled. Default value is false, the tool is enabled by
21251
+ # default.
21252
+ # Corresponds to the JSON property `disabled`
21253
+ # @return [Boolean]
21254
+ attr_accessor :disabled
21255
+ alias_method :disabled?, :disabled
21256
+
21257
+ # Optional. The filter syntax consists of an expression language for
21258
+ # constructing a predicate from one or more fields of the documents being
21259
+ # filtered. Filter expression is case-sensitive. If this field is unrecognizable,
21260
+ # an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI Search is done by
21261
+ # mapping the LHS filter key to a key property defined in the Vertex AI Search
21262
+ # backend -- this mapping is defined by the customer in their schema. For
21263
+ # example a media customer might have a field 'name' in their schema. In this
21264
+ # case the filter would look like this: filter --> name:'ANY("king kong")' For
21265
+ # more information about filtering including syntax and filter operators, see [
21266
+ # Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-
21267
+ # metadata)
21268
+ # Corresponds to the JSON property `filter`
21269
+ # @return [String]
21270
+ attr_accessor :filter
21271
+
21272
+ def initialize(**args)
21273
+ update!(**args)
21274
+ end
21275
+
21276
+ # Update properties of this object
21277
+ def update!(**args)
21278
+ @data_store_specs = args[:data_store_specs] if args.key?(:data_store_specs)
21279
+ @disabled = args[:disabled] if args.key?(:disabled)
21280
+ @filter = args[:filter] if args.key?(:filter)
21281
+ end
21282
+ end
21283
+
21284
+ # Specification of the video generation tool.
21285
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecVideoGenerationSpec
21286
+ include Google::Apis::Core::Hashable
21287
+
21288
+ def initialize(**args)
21289
+ update!(**args)
21290
+ end
21291
+
21292
+ # Update properties of this object
21293
+ def update!(**args)
21294
+ end
21295
+ end
21296
+
21297
+ # Specification of the web grounding tool.
21298
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecWebGroundingSpec
21299
+ include Google::Apis::Core::Hashable
21300
+
21301
+ # Optional. Deprecated. Please refrain from using this field. Whether the web
21302
+ # grounding tool is enabled.
21303
+ # Corresponds to the JSON property `enabled`
21304
+ # @return [Boolean]
21305
+ attr_accessor :enabled
21306
+ alias_method :enabled?, :enabled
21307
+
21308
+ def initialize(**args)
21309
+ update!(**args)
21310
+ end
21311
+
21312
+ # Update properties of this object
21313
+ def update!(**args)
21314
+ @enabled = args[:enabled] if args.key?(:enabled)
21315
+ end
21316
+ end
21317
+
21318
+ # Response for the AssistantService.StreamAssist method.
21319
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistResponse
21320
+ include Google::Apis::Core::Hashable
21321
+
21322
+ # AssistAnswer resource, main part of AssistResponse.
21323
+ # Corresponds to the JSON property `answer`
21324
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistAnswer]
21325
+ attr_accessor :answer
21326
+
21327
+ # A global unique ID that identifies the current pair of request and stream of
21328
+ # responses. Used for feedback and support.
21329
+ # Corresponds to the JSON property `assistToken`
21330
+ # @return [String]
21331
+ attr_accessor :assist_token
21332
+
21333
+ # Information about the session.
21334
+ # Corresponds to the JSON property `sessionInfo`
21335
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistResponseSessionInfo]
21336
+ attr_accessor :session_info
21337
+
21338
+ def initialize(**args)
21339
+ update!(**args)
21340
+ end
21341
+
21342
+ # Update properties of this object
21343
+ def update!(**args)
21344
+ @answer = args[:answer] if args.key?(:answer)
21345
+ @assist_token = args[:assist_token] if args.key?(:assist_token)
21346
+ @session_info = args[:session_info] if args.key?(:session_info)
21347
+ end
21348
+ end
21349
+
21350
+ # Information about the session.
21351
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistResponseSessionInfo
21352
+ include Google::Apis::Core::Hashable
21353
+
21354
+ # Name of the newly generated or continued session. Format: `projects/`project`/
21355
+ # locations/`location`/collections/`collection`/engines/`engine`/sessions/`
21356
+ # session``.
21357
+ # Corresponds to the JSON property `session`
21358
+ # @return [String]
21359
+ attr_accessor :session
21360
+
21361
+ def initialize(**args)
21362
+ update!(**args)
21363
+ end
21364
+
21365
+ # Update properties of this object
21366
+ def update!(**args)
21367
+ @session = args[:session] if args.key?(:session)
21368
+ end
21369
+ end
21370
+
20698
21371
  # Suggestion deny list entry identifying the phrase to block from suggestions
20699
21372
  # and the applied operation for the phrase.
20700
21373
  class GoogleCloudDiscoveryengineV1alphaSuggestionDenyListEntry
@@ -22393,7 +23066,8 @@ module Google
22393
23066
  # Output only. Feature config for the engine to opt in or opt out of features.
22394
23067
  # Supported keys: * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery`
22395
23068
  # * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-
22396
- # chart` * `bi-directional-audio` * `feedback` * `session-sharing`
23069
+ # chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `
23070
+ # personalization-memory` - Enables personalization based on user preferences.
22397
23071
  # Corresponds to the JSON property `features`
22398
23072
  # @return [Hash<String,String>]
22399
23073
  attr_accessor :features
@@ -23974,6 +24648,13 @@ module Google
23974
24648
  class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayoutParsingConfig
23975
24649
  include Google::Apis::Core::Hashable
23976
24650
 
24651
+ # Optional. If true, the processed document will be made available for the
24652
+ # GetProcessedDocument API.
24653
+ # Corresponds to the JSON property `enableGetProcessedDocument`
24654
+ # @return [Boolean]
24655
+ attr_accessor :enable_get_processed_document
24656
+ alias_method :enable_get_processed_document?, :enable_get_processed_document
24657
+
23977
24658
  # Optional. If true, the LLM based annotation is added to the image during
23978
24659
  # parsing.
23979
24660
  # Corresponds to the JSON property `enableImageAnnotation`
@@ -24015,6 +24696,7 @@ module Google
24015
24696
 
24016
24697
  # Update properties of this object
24017
24698
  def update!(**args)
24699
+ @enable_get_processed_document = args[:enable_get_processed_document] if args.key?(:enable_get_processed_document)
24018
24700
  @enable_image_annotation = args[:enable_image_annotation] if args.key?(:enable_image_annotation)
24019
24701
  @enable_table_annotation = args[:enable_table_annotation] if args.key?(:enable_table_annotation)
24020
24702
  @exclude_html_classes = args[:exclude_html_classes] if args.key?(:exclude_html_classes)
@@ -24144,7 +24826,8 @@ module Google
24144
24826
  # Supported keys: * `*`: all features, if it's present, all other feature state
24145
24827
  # settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-
24146
24828
  # gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-
24147
- # org-chart` * `bi-directional-audio` * `feedback` * `session-sharing`
24829
+ # org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `
24830
+ # personalization-memory` - Enables personalization based on user preferences.
24148
24831
  # Corresponds to the JSON property `features`
24149
24832
  # @return [Hash<String,String>]
24150
24833
  attr_accessor :features
@@ -25985,21 +26668,17 @@ module Google
25985
26668
 
25986
26669
  # The session resource name. Optional. Session allows users to do multi-turn /
25987
26670
  # search API calls or coordination between /search API calls and /answer API
25988
- # calls. Example #1 (multi-turn /search API calls): 1. Call /search API with the
25989
- # auto-session mode (see below). 2. Call /search API with the session ID
25990
- # generated in the first call. Here, the previous search query gets considered
25991
- # in query standing. I.e., if the first query is "How did Alphabet do in 2022?"
25992
- # and the current query is "How about 2023?", the current query will be
25993
- # interpreted as "How did Alphabet do in 2023?". Example #2 (coordination
25994
- # between /search API calls and /answer API calls): 1. Call /search API with the
25995
- # auto-session mode (see below). 2. Call /answer API with the session ID
25996
- # generated in the first call. Here, the answer generation happens in the
25997
- # context of the search results from the first search call. Auto-session mode:
25998
- # when `projects/.../sessions/-` is used, a new session gets automatically
25999
- # created. Otherwise, users can use the create-session API to create a session
26000
- # manually. Multi-turn Search feature is currently at private GA stage. Please
26001
- # use v1alpha or v1beta version instead before we launch this feature to public
26002
- # GA. Or ask for allowlisting through Google Support team.
26671
+ # calls. Example #1 (multi-turn /search API calls): Call /search API with the
26672
+ # session ID generated in the first call. Here, the previous search query gets
26673
+ # considered in query standing. I.e., if the first query is "How did Alphabet do
26674
+ # in 2022?" and the current query is "How about 2023?", the current query will
26675
+ # be interpreted as "How did Alphabet do in 2023?". Example #2 (coordination
26676
+ # between /search API calls and /answer API calls): Call /answer API with the
26677
+ # session ID generated in the first call. Here, the answer generation happens in
26678
+ # the context of the search results from the first search call. Multi-turn
26679
+ # Search feature is currently at private GA stage. Please use v1alpha or v1beta
26680
+ # version instead before we launch this feature to public GA. Or ask for
26681
+ # allowlisting through Google Support team.
26003
26682
  # Corresponds to the JSON property `session`
26004
26683
  # @return [String]
26005
26684
  attr_accessor :session
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DiscoveryengineV1alpha
18
18
  # Version of the google-apis-discoveryengine_v1alpha gem
19
- GEM_VERSION = "0.69.0"
19
+ GEM_VERSION = "0.70.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250706"
25
+ REVISION = "20250716"
26
26
  end
27
27
  end
28
28
  end
@@ -1228,6 +1228,84 @@ module Google
1228
1228
  include Google::Apis::Core::JsonObjectSupport
1229
1229
  end
1230
1230
 
1231
+ class GoogleCloudDiscoveryengineV1alphaAssistAnswer
1232
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1233
+
1234
+ include Google::Apis::Core::JsonObjectSupport
1235
+ end
1236
+
1237
+ class GoogleCloudDiscoveryengineV1alphaAssistAnswerReply
1238
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1239
+
1240
+ include Google::Apis::Core::JsonObjectSupport
1241
+ end
1242
+
1243
+ class GoogleCloudDiscoveryengineV1alphaAssistUserMetadata
1244
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1245
+
1246
+ include Google::Apis::Core::JsonObjectSupport
1247
+ end
1248
+
1249
+ class GoogleCloudDiscoveryengineV1alphaAssistantContent
1250
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1251
+
1252
+ include Google::Apis::Core::JsonObjectSupport
1253
+ end
1254
+
1255
+ class GoogleCloudDiscoveryengineV1alphaAssistantContentBlob
1256
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1257
+
1258
+ include Google::Apis::Core::JsonObjectSupport
1259
+ end
1260
+
1261
+ class GoogleCloudDiscoveryengineV1alphaAssistantContentCodeExecutionResult
1262
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1263
+
1264
+ include Google::Apis::Core::JsonObjectSupport
1265
+ end
1266
+
1267
+ class GoogleCloudDiscoveryengineV1alphaAssistantContentExecutableCode
1268
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1269
+
1270
+ include Google::Apis::Core::JsonObjectSupport
1271
+ end
1272
+
1273
+ class GoogleCloudDiscoveryengineV1alphaAssistantContentFile
1274
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1275
+
1276
+ include Google::Apis::Core::JsonObjectSupport
1277
+ end
1278
+
1279
+ class GoogleCloudDiscoveryengineV1alphaAssistantGroundedContent
1280
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1281
+
1282
+ include Google::Apis::Core::JsonObjectSupport
1283
+ end
1284
+
1285
+ class GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadata
1286
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1287
+
1288
+ include Google::Apis::Core::JsonObjectSupport
1289
+ end
1290
+
1291
+ class GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReference
1292
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1293
+
1294
+ include Google::Apis::Core::JsonObjectSupport
1295
+ end
1296
+
1297
+ class GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReferenceDocumentMetadata
1298
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1299
+
1300
+ include Google::Apis::Core::JsonObjectSupport
1301
+ end
1302
+
1303
+ class GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataSegment
1304
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1305
+
1306
+ include Google::Apis::Core::JsonObjectSupport
1307
+ end
1308
+
1231
1309
  class GoogleCloudDiscoveryengineV1alphaBapConfig
1232
1310
  class Representation < Google::Apis::Core::JsonRepresentation; end
1233
1311
 
@@ -3274,6 +3352,60 @@ module Google
3274
3352
  include Google::Apis::Core::JsonObjectSupport
3275
3353
  end
3276
3354
 
3355
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequest
3356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3357
+
3358
+ include Google::Apis::Core::JsonObjectSupport
3359
+ end
3360
+
3361
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestGenerationSpec
3362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3363
+
3364
+ include Google::Apis::Core::JsonObjectSupport
3365
+ end
3366
+
3367
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpec
3368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3369
+
3370
+ include Google::Apis::Core::JsonObjectSupport
3371
+ end
3372
+
3373
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecImageGenerationSpec
3374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3375
+
3376
+ include Google::Apis::Core::JsonObjectSupport
3377
+ end
3378
+
3379
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecVertexAiSearchSpec
3380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3381
+
3382
+ include Google::Apis::Core::JsonObjectSupport
3383
+ end
3384
+
3385
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecVideoGenerationSpec
3386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3387
+
3388
+ include Google::Apis::Core::JsonObjectSupport
3389
+ end
3390
+
3391
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecWebGroundingSpec
3392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3393
+
3394
+ include Google::Apis::Core::JsonObjectSupport
3395
+ end
3396
+
3397
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistResponse
3398
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3399
+
3400
+ include Google::Apis::Core::JsonObjectSupport
3401
+ end
3402
+
3403
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistResponseSessionInfo
3404
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3405
+
3406
+ include Google::Apis::Core::JsonObjectSupport
3407
+ end
3408
+
3277
3409
  class GoogleCloudDiscoveryengineV1alphaSuggestionDenyListEntry
3278
3410
  class Representation < Google::Apis::Core::JsonRepresentation; end
3279
3411
 
@@ -5177,6 +5309,7 @@ module Google
5177
5309
  class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigLayoutParsingConfig
5178
5310
  # @private
5179
5311
  class Representation < Google::Apis::Core::JsonRepresentation
5312
+ property :enable_get_processed_document, as: 'enableGetProcessedDocument'
5180
5313
  property :enable_image_annotation, as: 'enableImageAnnotation'
5181
5314
  property :enable_table_annotation, as: 'enableTableAnnotation'
5182
5315
  collection :exclude_html_classes, as: 'excludeHtmlClasses'
@@ -6481,6 +6614,131 @@ module Google
6481
6614
  end
6482
6615
  end
6483
6616
 
6617
+ class GoogleCloudDiscoveryengineV1alphaAssistAnswer
6618
+ # @private
6619
+ class Representation < Google::Apis::Core::JsonRepresentation
6620
+ collection :assist_skipped_reasons, as: 'assistSkippedReasons'
6621
+ collection :replies, as: 'replies', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistAnswerReply, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistAnswerReply::Representation
6622
+
6623
+ property :state, as: 'state'
6624
+ end
6625
+ end
6626
+
6627
+ class GoogleCloudDiscoveryengineV1alphaAssistAnswerReply
6628
+ # @private
6629
+ class Representation < Google::Apis::Core::JsonRepresentation
6630
+ property :grounded_content, as: 'groundedContent', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContent, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContent::Representation
6631
+
6632
+ end
6633
+ end
6634
+
6635
+ class GoogleCloudDiscoveryengineV1alphaAssistUserMetadata
6636
+ # @private
6637
+ class Representation < Google::Apis::Core::JsonRepresentation
6638
+ property :preferred_language_code, as: 'preferredLanguageCode'
6639
+ property :time_zone, as: 'timeZone'
6640
+ end
6641
+ end
6642
+
6643
+ class GoogleCloudDiscoveryengineV1alphaAssistantContent
6644
+ # @private
6645
+ class Representation < Google::Apis::Core::JsonRepresentation
6646
+ property :code_execution_result, as: 'codeExecutionResult', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantContentCodeExecutionResult, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantContentCodeExecutionResult::Representation
6647
+
6648
+ property :executable_code, as: 'executableCode', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantContentExecutableCode, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantContentExecutableCode::Representation
6649
+
6650
+ property :file, as: 'file', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantContentFile, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantContentFile::Representation
6651
+
6652
+ property :inline_data, as: 'inlineData', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantContentBlob, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantContentBlob::Representation
6653
+
6654
+ property :role, as: 'role'
6655
+ property :text, as: 'text'
6656
+ property :thought, as: 'thought'
6657
+ end
6658
+ end
6659
+
6660
+ class GoogleCloudDiscoveryengineV1alphaAssistantContentBlob
6661
+ # @private
6662
+ class Representation < Google::Apis::Core::JsonRepresentation
6663
+ property :data, :base64 => true, as: 'data'
6664
+ property :mime_type, as: 'mimeType'
6665
+ end
6666
+ end
6667
+
6668
+ class GoogleCloudDiscoveryengineV1alphaAssistantContentCodeExecutionResult
6669
+ # @private
6670
+ class Representation < Google::Apis::Core::JsonRepresentation
6671
+ property :outcome, as: 'outcome'
6672
+ property :output, as: 'output'
6673
+ end
6674
+ end
6675
+
6676
+ class GoogleCloudDiscoveryengineV1alphaAssistantContentExecutableCode
6677
+ # @private
6678
+ class Representation < Google::Apis::Core::JsonRepresentation
6679
+ property :code, as: 'code'
6680
+ end
6681
+ end
6682
+
6683
+ class GoogleCloudDiscoveryengineV1alphaAssistantContentFile
6684
+ # @private
6685
+ class Representation < Google::Apis::Core::JsonRepresentation
6686
+ property :file_id, as: 'fileId'
6687
+ property :mime_type, as: 'mimeType'
6688
+ end
6689
+ end
6690
+
6691
+ class GoogleCloudDiscoveryengineV1alphaAssistantGroundedContent
6692
+ # @private
6693
+ class Representation < Google::Apis::Core::JsonRepresentation
6694
+ property :content, as: 'content', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantContent, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantContent::Representation
6695
+
6696
+ property :text_grounding_metadata, as: 'textGroundingMetadata', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadata, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadata::Representation
6697
+
6698
+ end
6699
+ end
6700
+
6701
+ class GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadata
6702
+ # @private
6703
+ class Representation < Google::Apis::Core::JsonRepresentation
6704
+ collection :references, as: 'references', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReference, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReference::Representation
6705
+
6706
+ collection :segments, as: 'segments', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataSegment, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataSegment::Representation
6707
+
6708
+ end
6709
+ end
6710
+
6711
+ class GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReference
6712
+ # @private
6713
+ class Representation < Google::Apis::Core::JsonRepresentation
6714
+ property :content, as: 'content'
6715
+ property :document_metadata, as: 'documentMetadata', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReferenceDocumentMetadata, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReferenceDocumentMetadata::Representation
6716
+
6717
+ end
6718
+ end
6719
+
6720
+ class GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReferenceDocumentMetadata
6721
+ # @private
6722
+ class Representation < Google::Apis::Core::JsonRepresentation
6723
+ property :document, as: 'document'
6724
+ property :domain, as: 'domain'
6725
+ property :page_identifier, as: 'pageIdentifier'
6726
+ property :title, as: 'title'
6727
+ property :uri, as: 'uri'
6728
+ end
6729
+ end
6730
+
6731
+ class GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataSegment
6732
+ # @private
6733
+ class Representation < Google::Apis::Core::JsonRepresentation
6734
+ property :end_index, :numeric_string => true, as: 'endIndex'
6735
+ property :grounding_score, as: 'groundingScore'
6736
+ collection :reference_indices, as: 'referenceIndices'
6737
+ property :start_index, :numeric_string => true, as: 'startIndex'
6738
+ property :text, as: 'text'
6739
+ end
6740
+ end
6741
+
6484
6742
  class GoogleCloudDiscoveryengineV1alphaBapConfig
6485
6743
  # @private
6486
6744
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -7573,6 +7831,7 @@ module Google
7573
7831
  class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig
7574
7832
  # @private
7575
7833
  class Representation < Google::Apis::Core::JsonRepresentation
7834
+ property :enable_get_processed_document, as: 'enableGetProcessedDocument'
7576
7835
  property :enable_image_annotation, as: 'enableImageAnnotation'
7577
7836
  property :enable_table_annotation, as: 'enableTableAnnotation'
7578
7837
  collection :exclude_html_classes, as: 'excludeHtmlClasses'
@@ -9950,6 +10209,90 @@ module Google
9950
10209
  end
9951
10210
  end
9952
10211
 
10212
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequest
10213
+ # @private
10214
+ class Representation < Google::Apis::Core::JsonRepresentation
10215
+ property :generation_spec, as: 'generationSpec', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequestGenerationSpec, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequestGenerationSpec::Representation
10216
+
10217
+ property :query, as: 'query', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaQuery, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaQuery::Representation
10218
+
10219
+ property :session, as: 'session'
10220
+ property :tools_spec, as: 'toolsSpec', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpec, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpec::Representation
10221
+
10222
+ property :user_metadata, as: 'userMetadata', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistUserMetadata, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistUserMetadata::Representation
10223
+
10224
+ end
10225
+ end
10226
+
10227
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestGenerationSpec
10228
+ # @private
10229
+ class Representation < Google::Apis::Core::JsonRepresentation
10230
+ property :model_id, as: 'modelId'
10231
+ end
10232
+ end
10233
+
10234
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpec
10235
+ # @private
10236
+ class Representation < Google::Apis::Core::JsonRepresentation
10237
+ property :image_generation_spec, as: 'imageGenerationSpec', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecImageGenerationSpec, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecImageGenerationSpec::Representation
10238
+
10239
+ property :tool_registry, as: 'toolRegistry'
10240
+ property :vertex_ai_search_spec, as: 'vertexAiSearchSpec', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecVertexAiSearchSpec, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecVertexAiSearchSpec::Representation
10241
+
10242
+ property :video_generation_spec, as: 'videoGenerationSpec', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecVideoGenerationSpec, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecVideoGenerationSpec::Representation
10243
+
10244
+ property :web_grounding_spec, as: 'webGroundingSpec', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecWebGroundingSpec, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecWebGroundingSpec::Representation
10245
+
10246
+ end
10247
+ end
10248
+
10249
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecImageGenerationSpec
10250
+ # @private
10251
+ class Representation < Google::Apis::Core::JsonRepresentation
10252
+ end
10253
+ end
10254
+
10255
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecVertexAiSearchSpec
10256
+ # @private
10257
+ class Representation < Google::Apis::Core::JsonRepresentation
10258
+ collection :data_store_specs, as: 'dataStoreSpecs', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec::Representation
10259
+
10260
+ property :disabled, as: 'disabled'
10261
+ property :filter, as: 'filter'
10262
+ end
10263
+ end
10264
+
10265
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecVideoGenerationSpec
10266
+ # @private
10267
+ class Representation < Google::Apis::Core::JsonRepresentation
10268
+ end
10269
+ end
10270
+
10271
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecWebGroundingSpec
10272
+ # @private
10273
+ class Representation < Google::Apis::Core::JsonRepresentation
10274
+ property :enabled, as: 'enabled'
10275
+ end
10276
+ end
10277
+
10278
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistResponse
10279
+ # @private
10280
+ class Representation < Google::Apis::Core::JsonRepresentation
10281
+ property :answer, as: 'answer', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistAnswer, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistAnswer::Representation
10282
+
10283
+ property :assist_token, as: 'assistToken'
10284
+ property :session_info, as: 'sessionInfo', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistResponseSessionInfo, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistResponseSessionInfo::Representation
10285
+
10286
+ end
10287
+ end
10288
+
10289
+ class GoogleCloudDiscoveryengineV1alphaStreamAssistResponseSessionInfo
10290
+ # @private
10291
+ class Representation < Google::Apis::Core::JsonRepresentation
10292
+ property :session, as: 'session'
10293
+ end
10294
+ end
10295
+
9953
10296
  class GoogleCloudDiscoveryengineV1alphaSuggestionDenyListEntry
9954
10297
  # @private
9955
10298
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -10805,6 +11148,7 @@ module Google
10805
11148
  class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayoutParsingConfig
10806
11149
  # @private
10807
11150
  class Representation < Google::Apis::Core::JsonRepresentation
11151
+ property :enable_get_processed_document, as: 'enableGetProcessedDocument'
10808
11152
  property :enable_image_annotation, as: 'enableImageAnnotation'
10809
11153
  property :enable_table_annotation, as: 'enableTableAnnotation'
10810
11154
  collection :exclude_html_classes, as: 'excludeHtmlClasses'
@@ -4879,6 +4879,41 @@ module Google
4879
4879
  execute_or_queue_command(command, &block)
4880
4880
  end
4881
4881
 
4882
+ # Assists the user with a query in a streaming fashion.
4883
+ # @param [String] name
4884
+ # Required. The resource name of the Assistant. Format: `projects/`project`/
4885
+ # locations/`location`/collections/`collection`/engines/`engine`/assistants/`
4886
+ # assistant``
4887
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequest] google_cloud_discoveryengine_v1alpha_stream_assist_request_object
4888
+ # @param [String] fields
4889
+ # Selector specifying which fields to include in a partial response.
4890
+ # @param [String] quota_user
4891
+ # Available to use for quota purposes for server-side applications. Can be any
4892
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4893
+ # @param [Google::Apis::RequestOptions] options
4894
+ # Request-specific options
4895
+ #
4896
+ # @yield [result, err] Result & error if block supplied
4897
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistResponse] parsed result object
4898
+ # @yieldparam err [StandardError] error object if request failed
4899
+ #
4900
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistResponse]
4901
+ #
4902
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4903
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4904
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4905
+ def stream_project_location_collection_engine_assistant_assist(name, google_cloud_discoveryengine_v1alpha_stream_assist_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4906
+ command = make_simple_command(:post, 'v1alpha/{+name}:streamAssist', options)
4907
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistRequest::Representation
4908
+ command.request_object = google_cloud_discoveryengine_v1alpha_stream_assist_request_object
4909
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistResponse::Representation
4910
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaStreamAssistResponse
4911
+ command.params['name'] = name unless name.nil?
4912
+ command.query['fields'] = fields unless fields.nil?
4913
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4914
+ execute_or_queue_command(command, &block)
4915
+ end
4916
+
4882
4917
  # Completes the user input with advanced keyword suggestions.
4883
4918
  # @param [String] completion_config
4884
4919
  # Required. The completion_config of the parent dataStore or engine resource
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-discoveryengine_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.69.0
4
+ version: 0.70.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1alpha/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.69.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.70.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1alpha
62
62
  rdoc_options: []
63
63
  require_paths: