google-apis-discoveryengine_v1alpha 0.68.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/discoveryengine_v1alpha/classes.rb +836 -55
- data/lib/google/apis/discoveryengine_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/discoveryengine_v1alpha/representations.rb +402 -0
- data/lib/google/apis/discoveryengine_v1alpha/service.rb +94 -6
- metadata +2 -2
@@ -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
|
@@ -5469,6 +5478,44 @@ module Google
|
|
5469
5478
|
end
|
5470
5479
|
end
|
5471
5480
|
|
5481
|
+
# Request message for the DataConnectorService.AcquireAccessToken method.
|
5482
|
+
class GoogleCloudDiscoveryengineV1alphaAcquireAccessTokenRequest
|
5483
|
+
include Google::Apis::Core::Hashable
|
5484
|
+
|
5485
|
+
def initialize(**args)
|
5486
|
+
update!(**args)
|
5487
|
+
end
|
5488
|
+
|
5489
|
+
# Update properties of this object
|
5490
|
+
def update!(**args)
|
5491
|
+
end
|
5492
|
+
end
|
5493
|
+
|
5494
|
+
# Response message for the DataConnectorService.AcquireAccessToken method.
|
5495
|
+
class GoogleCloudDiscoveryengineV1alphaAcquireAccessTokenResponse
|
5496
|
+
include Google::Apis::Core::Hashable
|
5497
|
+
|
5498
|
+
# The created access token.
|
5499
|
+
# Corresponds to the JSON property `accessToken`
|
5500
|
+
# @return [String]
|
5501
|
+
attr_accessor :access_token
|
5502
|
+
|
5503
|
+
# Describes a refresh token.
|
5504
|
+
# Corresponds to the JSON property `refreshTokenInfo`
|
5505
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRefreshTokenInfo]
|
5506
|
+
attr_accessor :refresh_token_info
|
5507
|
+
|
5508
|
+
def initialize(**args)
|
5509
|
+
update!(**args)
|
5510
|
+
end
|
5511
|
+
|
5512
|
+
# Update properties of this object
|
5513
|
+
def update!(**args)
|
5514
|
+
@access_token = args[:access_token] if args.key?(:access_token)
|
5515
|
+
@refresh_token_info = args[:refresh_token_info] if args.key?(:refresh_token_info)
|
5516
|
+
end
|
5517
|
+
end
|
5518
|
+
|
5472
5519
|
# Informations to support actions on the connector.
|
5473
5520
|
class GoogleCloudDiscoveryengineV1alphaActionConfig
|
5474
5521
|
include Google::Apis::Core::Hashable
|
@@ -7786,10 +7833,380 @@ module Google
|
|
7786
7833
|
# @return [String]
|
7787
7834
|
attr_accessor :snippet
|
7788
7835
|
|
7789
|
-
# Status of the snippet defined by the search team.
|
7790
|
-
# Corresponds to the JSON property `snippetStatus`
|
7836
|
+
# Status of the snippet defined by the search team.
|
7837
|
+
# Corresponds to the JSON property `snippetStatus`
|
7838
|
+
# @return [String]
|
7839
|
+
attr_accessor :snippet_status
|
7840
|
+
|
7841
|
+
def initialize(**args)
|
7842
|
+
update!(**args)
|
7843
|
+
end
|
7844
|
+
|
7845
|
+
# Update properties of this object
|
7846
|
+
def update!(**args)
|
7847
|
+
@snippet = args[:snippet] if args.key?(:snippet)
|
7848
|
+
@snippet_status = args[:snippet_status] if args.key?(:snippet_status)
|
7849
|
+
end
|
7850
|
+
end
|
7851
|
+
|
7852
|
+
# Search action.
|
7853
|
+
class GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction
|
7854
|
+
include Google::Apis::Core::Hashable
|
7855
|
+
|
7856
|
+
# The query to search.
|
7857
|
+
# Corresponds to the JSON property `query`
|
7858
|
+
# @return [String]
|
7859
|
+
attr_accessor :query
|
7860
|
+
|
7861
|
+
def initialize(**args)
|
7862
|
+
update!(**args)
|
7863
|
+
end
|
7864
|
+
|
7865
|
+
# Update properties of this object
|
7866
|
+
def update!(**args)
|
7867
|
+
@query = args[:query] if args.key?(:query)
|
7868
|
+
end
|
7869
|
+
end
|
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`
|
7791
8208
|
# @return [String]
|
7792
|
-
attr_accessor :
|
8209
|
+
attr_accessor :uri
|
7793
8210
|
|
7794
8211
|
def initialize(**args)
|
7795
8212
|
update!(**args)
|
@@ -7797,19 +8214,44 @@ module Google
|
|
7797
8214
|
|
7798
8215
|
# Update properties of this object
|
7799
8216
|
def update!(**args)
|
7800
|
-
@
|
7801
|
-
@
|
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)
|
7802
8222
|
end
|
7803
8223
|
end
|
7804
8224
|
|
7805
|
-
#
|
7806
|
-
class
|
8225
|
+
# Grounding information for a segment of the text.
|
8226
|
+
class GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataSegment
|
7807
8227
|
include Google::Apis::Core::Hashable
|
7808
8228
|
|
7809
|
-
#
|
7810
|
-
# Corresponds to the JSON property `
|
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`
|
7811
8253
|
# @return [String]
|
7812
|
-
attr_accessor :
|
8254
|
+
attr_accessor :text
|
7813
8255
|
|
7814
8256
|
def initialize(**args)
|
7815
8257
|
update!(**args)
|
@@ -7817,7 +8259,11 @@ module Google
|
|
7817
8259
|
|
7818
8260
|
# Update properties of this object
|
7819
8261
|
def update!(**args)
|
7820
|
-
@
|
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)
|
7821
8267
|
end
|
7822
8268
|
end
|
7823
8269
|
|
@@ -10753,6 +11199,11 @@ module Google
|
|
10753
11199
|
# @return [String]
|
10754
11200
|
attr_accessor :realtime_sync_secret
|
10755
11201
|
|
11202
|
+
# Streaming error details.
|
11203
|
+
# Corresponds to the JSON property `streamingError`
|
11204
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfigStreamingError]
|
11205
|
+
attr_accessor :streaming_error
|
11206
|
+
|
10756
11207
|
# Optional. Webhook url for the connector to specify additional params for
|
10757
11208
|
# realtime sync.
|
10758
11209
|
# Corresponds to the JSON property `webhookUri`
|
@@ -10766,10 +11217,41 @@ module Google
|
|
10766
11217
|
# Update properties of this object
|
10767
11218
|
def update!(**args)
|
10768
11219
|
@realtime_sync_secret = args[:realtime_sync_secret] if args.key?(:realtime_sync_secret)
|
11220
|
+
@streaming_error = args[:streaming_error] if args.key?(:streaming_error)
|
10769
11221
|
@webhook_uri = args[:webhook_uri] if args.key?(:webhook_uri)
|
10770
11222
|
end
|
10771
11223
|
end
|
10772
11224
|
|
11225
|
+
# Streaming error details.
|
11226
|
+
class GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfigStreamingError
|
11227
|
+
include Google::Apis::Core::Hashable
|
11228
|
+
|
11229
|
+
# The `Status` type defines a logical error model that is suitable for different
|
11230
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
11231
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
11232
|
+
# data: error code, error message, and error details. You can find out more
|
11233
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
11234
|
+
# //cloud.google.com/apis/design/errors).
|
11235
|
+
# Corresponds to the JSON property `error`
|
11236
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus]
|
11237
|
+
attr_accessor :error
|
11238
|
+
|
11239
|
+
# Optional. Streaming error.
|
11240
|
+
# Corresponds to the JSON property `streamingErrorReason`
|
11241
|
+
# @return [String]
|
11242
|
+
attr_accessor :streaming_error_reason
|
11243
|
+
|
11244
|
+
def initialize(**args)
|
11245
|
+
update!(**args)
|
11246
|
+
end
|
11247
|
+
|
11248
|
+
# Update properties of this object
|
11249
|
+
def update!(**args)
|
11250
|
+
@error = args[:error] if args.key?(:error)
|
11251
|
+
@streaming_error_reason = args[:streaming_error_reason] if args.key?(:streaming_error_reason)
|
11252
|
+
end
|
11253
|
+
end
|
11254
|
+
|
10773
11255
|
# Represents an entity in the data source. For example, the `Account` object in
|
10774
11256
|
# Salesforce.
|
10775
11257
|
class GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity
|
@@ -11899,6 +12381,13 @@ module Google
|
|
11899
12381
|
class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig
|
11900
12382
|
include Google::Apis::Core::Hashable
|
11901
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
|
+
|
11902
12391
|
# Optional. If true, the LLM based annotation is added to the image during
|
11903
12392
|
# parsing.
|
11904
12393
|
# Corresponds to the JSON property `enableImageAnnotation`
|
@@ -11940,6 +12429,7 @@ module Google
|
|
11940
12429
|
|
11941
12430
|
# Update properties of this object
|
11942
12431
|
def update!(**args)
|
12432
|
+
@enable_get_processed_document = args[:enable_get_processed_document] if args.key?(:enable_get_processed_document)
|
11943
12433
|
@enable_image_annotation = args[:enable_image_annotation] if args.key?(:enable_image_annotation)
|
11944
12434
|
@enable_table_annotation = args[:enable_table_annotation] if args.key?(:enable_table_annotation)
|
11945
12435
|
@exclude_html_classes = args[:exclude_html_classes] if args.key?(:exclude_html_classes)
|
@@ -12120,7 +12610,8 @@ module Google
|
|
12120
12610
|
# Supported keys: * `*`: all features, if it's present, all other feature state
|
12121
12611
|
# settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-
|
12122
12612
|
# gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-
|
12123
|
-
# 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.
|
12124
12615
|
# Corresponds to the JSON property `features`
|
12125
12616
|
# @return [Hash<String,String>]
|
12126
12617
|
attr_accessor :features
|
@@ -13893,7 +14384,7 @@ module Google
|
|
13893
14384
|
# GcsSource. GcsSource.data_schema must be `custom` or `csv`. Otherwise, an
|
13894
14385
|
# INVALID_ARGUMENT error is thrown. * BigQuerySource. BigQuerySource.data_schema
|
13895
14386
|
# must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. *
|
13896
|
-
# SpannerSource. * CloudSqlSource. *
|
14387
|
+
# SpannerSource. * CloudSqlSource. * BigtableSource.
|
13897
14388
|
# Corresponds to the JSON property `idField`
|
13898
14389
|
# @return [String]
|
13899
14390
|
attr_accessor :id_field
|
@@ -14993,7 +15484,8 @@ module Google
|
|
14993
15484
|
include Google::Apis::Core::Hashable
|
14994
15485
|
|
14995
15486
|
# A filter to apply on the list results. The supported features are:
|
14996
|
-
# user_pseudo_id, state.
|
15487
|
+
# user_pseudo_id, state, starred. Examples: "user_pseudo_id = some_id" "starred =
|
15488
|
+
# true"
|
14997
15489
|
# Corresponds to the JSON property `filter`
|
14998
15490
|
# @return [String]
|
14999
15491
|
attr_accessor :filter
|
@@ -16633,6 +17125,31 @@ module Google
|
|
16633
17125
|
end
|
16634
17126
|
end
|
16635
17127
|
|
17128
|
+
# Describes a refresh token.
|
17129
|
+
class GoogleCloudDiscoveryengineV1alphaRefreshTokenInfo
|
17130
|
+
include Google::Apis::Core::Hashable
|
17131
|
+
|
17132
|
+
# Required. The connection for which this token applies.
|
17133
|
+
# Corresponds to the JSON property `name`
|
17134
|
+
# @return [String]
|
17135
|
+
attr_accessor :name
|
17136
|
+
|
17137
|
+
# The list of scopes for this token.
|
17138
|
+
# Corresponds to the JSON property `scopes`
|
17139
|
+
# @return [Array<String>]
|
17140
|
+
attr_accessor :scopes
|
17141
|
+
|
17142
|
+
def initialize(**args)
|
17143
|
+
update!(**args)
|
17144
|
+
end
|
17145
|
+
|
17146
|
+
# Update properties of this object
|
17147
|
+
def update!(**args)
|
17148
|
+
@name = args[:name] if args.key?(:name)
|
17149
|
+
@scopes = args[:scopes] if args.key?(:scopes)
|
17150
|
+
end
|
17151
|
+
end
|
17152
|
+
|
16636
17153
|
# Metadata related to the progress of the CrawlRateManagementService.
|
16637
17154
|
# RemoveDedicatedCrawlRate operation. This will be returned by the google.
|
16638
17155
|
# longrunning.Operation.metadata field.
|
@@ -17658,10 +18175,11 @@ module Google
|
|
17658
18175
|
# relevance and attractiveness of a search result from a user's perspective. A
|
17659
18176
|
# higher pCTR suggests that the result is more likely to satisfy the user's
|
17660
18177
|
# query and intent, making it a valuable signal for ranking. * `freshness_rank`:
|
17661
|
-
# freshness adjustment as a rank * `
|
17662
|
-
#
|
17663
|
-
#
|
17664
|
-
#
|
18178
|
+
# freshness adjustment as a rank * `document_age`: The time in hours elapsed
|
18179
|
+
# since the document was last updated, a floating-point number (e.g., 0.25 means
|
18180
|
+
# 15 minutes). * `topicality_rank`: topicality adjustment as a rank. Uses
|
18181
|
+
# proprietary Google model to determine the keyword-based overlap between the
|
18182
|
+
# query and the document. * `base_rank`: the default rank of the result
|
17665
18183
|
# Corresponds to the JSON property `rankingExpression`
|
17666
18184
|
# @return [String]
|
17667
18185
|
attr_accessor :ranking_expression
|
@@ -17715,21 +18233,17 @@ module Google
|
|
17715
18233
|
|
17716
18234
|
# The session resource name. Optional. Session allows users to do multi-turn /
|
17717
18235
|
# search API calls or coordination between /search API calls and /answer API
|
17718
|
-
# calls. Example #1 (multi-turn /search API calls):
|
17719
|
-
#
|
17720
|
-
#
|
17721
|
-
# in
|
17722
|
-
#
|
17723
|
-
#
|
17724
|
-
#
|
17725
|
-
#
|
17726
|
-
#
|
17727
|
-
#
|
17728
|
-
#
|
17729
|
-
# created. Otherwise, users can use the create-session API to create a session
|
17730
|
-
# manually. Multi-turn Search feature is currently at private GA stage. Please
|
17731
|
-
# use v1alpha or v1beta version instead before we launch this feature to public
|
17732
|
-
# 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.
|
17733
18247
|
# Corresponds to the JSON property `session`
|
17734
18248
|
# @return [String]
|
17735
18249
|
attr_accessor :session
|
@@ -20594,6 +21108,266 @@ module Google
|
|
20594
21108
|
end
|
20595
21109
|
end
|
20596
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
|
+
|
20597
21371
|
# Suggestion deny list entry identifying the phrase to block from suggestions
|
20598
21372
|
# and the applied operation for the phrase.
|
20599
21373
|
class GoogleCloudDiscoveryengineV1alphaSuggestionDenyListEntry
|
@@ -22292,7 +23066,8 @@ module Google
|
|
22292
23066
|
# Output only. Feature config for the engine to opt in or opt out of features.
|
22293
23067
|
# Supported keys: * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery`
|
22294
23068
|
# * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-
|
22295
|
-
# chart` * `bi-directional-audio` * `feedback` * `session-sharing`
|
23069
|
+
# chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `
|
23070
|
+
# personalization-memory` - Enables personalization based on user preferences.
|
22296
23071
|
# Corresponds to the JSON property `features`
|
22297
23072
|
# @return [Hash<String,String>]
|
22298
23073
|
attr_accessor :features
|
@@ -23873,6 +24648,13 @@ module Google
|
|
23873
24648
|
class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayoutParsingConfig
|
23874
24649
|
include Google::Apis::Core::Hashable
|
23875
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
|
+
|
23876
24658
|
# Optional. If true, the LLM based annotation is added to the image during
|
23877
24659
|
# parsing.
|
23878
24660
|
# Corresponds to the JSON property `enableImageAnnotation`
|
@@ -23914,6 +24696,7 @@ module Google
|
|
23914
24696
|
|
23915
24697
|
# Update properties of this object
|
23916
24698
|
def update!(**args)
|
24699
|
+
@enable_get_processed_document = args[:enable_get_processed_document] if args.key?(:enable_get_processed_document)
|
23917
24700
|
@enable_image_annotation = args[:enable_image_annotation] if args.key?(:enable_image_annotation)
|
23918
24701
|
@enable_table_annotation = args[:enable_table_annotation] if args.key?(:enable_table_annotation)
|
23919
24702
|
@exclude_html_classes = args[:exclude_html_classes] if args.key?(:exclude_html_classes)
|
@@ -24043,7 +24826,8 @@ module Google
|
|
24043
24826
|
# Supported keys: * `*`: all features, if it's present, all other feature state
|
24044
24827
|
# settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-
|
24045
24828
|
# gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-
|
24046
|
-
# 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.
|
24047
24831
|
# Corresponds to the JSON property `features`
|
24048
24832
|
# @return [Hash<String,String>]
|
24049
24833
|
attr_accessor :features
|
@@ -25826,10 +26610,11 @@ module Google
|
|
25826
26610
|
# relevance and attractiveness of a search result from a user's perspective. A
|
25827
26611
|
# higher pCTR suggests that the result is more likely to satisfy the user's
|
25828
26612
|
# query and intent, making it a valuable signal for ranking. * `freshness_rank`:
|
25829
|
-
# freshness adjustment as a rank * `
|
25830
|
-
#
|
25831
|
-
#
|
25832
|
-
#
|
26613
|
+
# freshness adjustment as a rank * `document_age`: The time in hours elapsed
|
26614
|
+
# since the document was last updated, a floating-point number (e.g., 0.25 means
|
26615
|
+
# 15 minutes). * `topicality_rank`: topicality adjustment as a rank. Uses
|
26616
|
+
# proprietary Google model to determine the keyword-based overlap between the
|
26617
|
+
# query and the document. * `base_rank`: the default rank of the result
|
25833
26618
|
# Corresponds to the JSON property `rankingExpression`
|
25834
26619
|
# @return [String]
|
25835
26620
|
attr_accessor :ranking_expression
|
@@ -25883,21 +26668,17 @@ module Google
|
|
25883
26668
|
|
25884
26669
|
# The session resource name. Optional. Session allows users to do multi-turn /
|
25885
26670
|
# search API calls or coordination between /search API calls and /answer API
|
25886
|
-
# calls. Example #1 (multi-turn /search API calls):
|
25887
|
-
#
|
25888
|
-
#
|
25889
|
-
# in
|
25890
|
-
#
|
25891
|
-
#
|
25892
|
-
#
|
25893
|
-
#
|
25894
|
-
#
|
25895
|
-
#
|
25896
|
-
#
|
25897
|
-
# created. Otherwise, users can use the create-session API to create a session
|
25898
|
-
# manually. Multi-turn Search feature is currently at private GA stage. Please
|
25899
|
-
# use v1alpha or v1beta version instead before we launch this feature to public
|
25900
|
-
# 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.
|
25901
26682
|
# Corresponds to the JSON property `session`
|
25902
26683
|
# @return [String]
|
25903
26684
|
attr_accessor :session
|