google-cloud-discovery_engine-v1beta 0.11.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +9 -3
  3. data/lib/google/cloud/discovery_engine/v1beta/completion_service/operations.rb +13 -5
  4. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +9 -3
  5. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/operations.rb +35 -6
  6. data/lib/google/cloud/discovery_engine/v1beta/control_service/client.rb +875 -0
  7. data/lib/google/cloud/discovery_engine/v1beta/control_service/credentials.rb +47 -0
  8. data/lib/google/cloud/discovery_engine/v1beta/control_service/paths.rb +167 -0
  9. data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/client.rb +814 -0
  10. data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/service_stub.rb +440 -0
  11. data/lib/google/cloud/discovery_engine/v1beta/control_service/rest.rb +55 -0
  12. data/lib/google/cloud/discovery_engine/v1beta/control_service.rb +58 -0
  13. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +31 -15
  14. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +31 -15
  15. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/client.rb +15 -7
  16. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/operations.rb +13 -5
  17. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/client.rb +15 -7
  18. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/operations.rb +35 -6
  19. data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +24 -15
  20. data/lib/google/cloud/discovery_engine/v1beta/document_service/operations.rb +13 -5
  21. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +24 -15
  22. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +35 -6
  23. data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +19 -8
  24. data/lib/google/cloud/discovery_engine/v1beta/engine_service/operations.rb +13 -5
  25. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +19 -8
  26. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/operations.rb +35 -6
  27. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/client.rb +824 -0
  28. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/credentials.rb +47 -0
  29. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/operations.rb +809 -0
  30. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/paths.rb +250 -0
  31. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/client.rb +770 -0
  32. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/operations.rb +1106 -0
  33. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/service_stub.rb +306 -0
  34. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest.rb +54 -0
  35. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service.rb +57 -0
  36. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +25 -3
  37. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/client.rb +25 -3
  38. data/lib/google/cloud/discovery_engine/v1beta/project_service/client.rb +485 -0
  39. data/lib/google/cloud/discovery_engine/v1beta/project_service/credentials.rb +47 -0
  40. data/lib/google/cloud/discovery_engine/v1beta/project_service/operations.rb +809 -0
  41. data/lib/google/cloud/discovery_engine/v1beta/project_service/paths.rb +47 -0
  42. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/client.rb +452 -0
  43. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/operations.rb +1106 -0
  44. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/service_stub.rb +129 -0
  45. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest.rb +54 -0
  46. data/lib/google/cloud/discovery_engine/v1beta/project_service.rb +57 -0
  47. data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +24 -2
  48. data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +24 -2
  49. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +24 -19
  50. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/paths.rb +66 -0
  51. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +24 -19
  52. data/lib/google/cloud/discovery_engine/v1beta/rest.rb +5 -0
  53. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/client.rb +1035 -0
  54. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/credentials.rb +47 -0
  55. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/operations.rb +809 -0
  56. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/paths.rb +73 -0
  57. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/client.rb +967 -0
  58. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/operations.rb +1106 -0
  59. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/service_stub.rb +426 -0
  60. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest.rb +54 -0
  61. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service.rb +57 -0
  62. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/client.rb +911 -0
  63. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/credentials.rb +47 -0
  64. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/paths.rb +69 -0
  65. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest/client.rb +850 -0
  66. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest/service_stub.rb +366 -0
  67. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest.rb +53 -0
  68. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service.rb +56 -0
  69. data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +18 -10
  70. data/lib/google/cloud/discovery_engine/v1beta/schema_service/operations.rb +13 -5
  71. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/client.rb +18 -10
  72. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +35 -6
  73. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +25 -12
  74. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +25 -12
  75. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/client.rb +104 -2
  76. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/operations.rb +13 -5
  77. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/client.rb +97 -2
  78. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/operations.rb +35 -6
  79. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/service_stub.rb +59 -0
  80. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +9 -3
  81. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +9 -3
  82. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +27 -12
  83. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/operations.rb +13 -5
  84. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/client.rb +27 -12
  85. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/operations.rb +35 -6
  86. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +23 -6
  87. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/operations.rb +13 -5
  88. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/paths.rb +21 -0
  89. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +23 -6
  90. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +35 -6
  91. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.rb +8 -0
  92. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  93. data/lib/google/cloud/discovery_engine/v1beta.rb +5 -0
  94. data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +3 -1
  95. data/lib/google/cloud/discoveryengine/v1beta/chunk_pb.rb +50 -0
  96. data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +2 -1
  97. data/lib/google/cloud/discoveryengine/v1beta/control_pb.rb +55 -0
  98. data/lib/google/cloud/discoveryengine/v1beta/control_service_pb.rb +57 -0
  99. data/lib/google/cloud/discoveryengine/v1beta/control_service_services_pb.rb +69 -0
  100. data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +1 -1
  101. data/lib/google/cloud/discoveryengine/v1beta/custom_tuning_model_pb.rb +48 -0
  102. data/lib/google/cloud/discoveryengine/v1beta/document_processing_config_pb.rb +4 -1
  103. data/lib/google/cloud/discoveryengine/v1beta/document_service_services_pb.rb +1 -1
  104. data/lib/google/cloud/discoveryengine/v1beta/engine_pb.rb +1 -1
  105. data/lib/google/cloud/discoveryengine/v1beta/evaluation_pb.rb +56 -0
  106. data/lib/google/cloud/discoveryengine/v1beta/evaluation_service_pb.rb +59 -0
  107. data/lib/google/cloud/discoveryengine/v1beta/evaluation_service_services_pb.rb +57 -0
  108. data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +1 -1
  109. data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +1 -1
  110. data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +7 -1
  111. data/lib/google/cloud/discoveryengine/v1beta/project_pb.rb +49 -0
  112. data/lib/google/cloud/discoveryengine/v1beta/project_service_pb.rb +50 -0
  113. data/lib/google/cloud/discoveryengine/v1beta/project_service_services_pb.rb +51 -0
  114. data/lib/google/cloud/discoveryengine/v1beta/rank_service_pb.rb +1 -1
  115. data/lib/google/cloud/discoveryengine/v1beta/sample_query_pb.rb +49 -0
  116. data/lib/google/cloud/discoveryengine/v1beta/sample_query_service_pb.rb +59 -0
  117. data/lib/google/cloud/discoveryengine/v1beta/sample_query_service_services_pb.rb +63 -0
  118. data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_pb.rb +47 -0
  119. data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_service_pb.rb +57 -0
  120. data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_service_services_pb.rb +59 -0
  121. data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +5 -1
  122. data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_pb.rb +5 -1
  123. data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_services_pb.rb +2 -0
  124. data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_pb.rb +1 -1
  125. data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +1 -1
  126. data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +1 -1
  127. data/lib/google/cloud/discoveryengine/v1beta/user_event_service_services_pb.rb +1 -1
  128. data/proto_docs/google/api/client.rb +14 -10
  129. data/proto_docs/google/api/resource.rb +7 -2
  130. data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +9 -1
  131. data/proto_docs/google/cloud/discoveryengine/v1beta/chunk.rb +119 -0
  132. data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +16 -0
  133. data/proto_docs/google/cloud/discoveryengine/v1beta/control.rb +209 -0
  134. data/proto_docs/google/cloud/discoveryengine/v1beta/control_service.rb +126 -0
  135. data/proto_docs/google/cloud/discoveryengine/v1beta/conversation.rb +2 -2
  136. data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +29 -5
  137. data/proto_docs/google/cloud/discoveryengine/v1beta/custom_tuning_model.rb +75 -0
  138. data/proto_docs/google/cloud/discoveryengine/v1beta/data_store_service.rb +2 -2
  139. data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +1 -1
  140. data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +44 -2
  141. data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +6 -7
  142. data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +3 -3
  143. data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation.rb +223 -0
  144. data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation_service.rb +194 -0
  145. data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +39 -1
  146. data/proto_docs/google/cloud/discoveryengine/v1beta/grounding.rb +3 -0
  147. data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +89 -4
  148. data/proto_docs/google/cloud/discoveryengine/v1beta/project.rb +106 -0
  149. data/proto_docs/google/cloud/discoveryengine/v1beta/project_service.rb +57 -0
  150. data/proto_docs/google/cloud/discoveryengine/v1beta/rank_service.rb +28 -0
  151. data/proto_docs/google/cloud/discoveryengine/v1beta/recommendation_service.rb +20 -19
  152. data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query.rb +82 -0
  153. data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query_service.rb +179 -0
  154. data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query_set.rb +57 -0
  155. data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query_set_service.rb +186 -0
  156. data/proto_docs/google/cloud/discoveryengine/v1beta/schema_service.rb +5 -5
  157. data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +95 -28
  158. data/proto_docs/google/cloud/discoveryengine/v1beta/search_tuning_service.rb +31 -0
  159. data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config.rb +11 -5
  160. data/proto_docs/google/cloud/discoveryengine/v1beta/session.rb +4 -1
  161. data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine.rb +3 -0
  162. data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +24 -3
  163. data/proto_docs/google/cloud/discoveryengine/v1beta/user_event_service.rb +13 -1
  164. metadata +72 -2
@@ -0,0 +1,186 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module DiscoveryEngine
23
+ module V1beta
24
+ # Request message for
25
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySetService::Client#get_sample_query_set SampleQuerySetService.GetSampleQuerySet}
26
+ # method.
27
+ # @!attribute [rw] name
28
+ # @return [::String]
29
+ # Required. Full resource name of
30
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet SampleQuerySet}, such
31
+ # as
32
+ # `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
33
+ #
34
+ # If the caller does not have permission to access the
35
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet SampleQuerySet},
36
+ # regardless of whether or not it exists, a PERMISSION_DENIED error is
37
+ # returned.
38
+ #
39
+ # If the requested
40
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet SampleQuerySet} does
41
+ # not exist, a NOT_FOUND error is returned.
42
+ class GetSampleQuerySetRequest
43
+ include ::Google::Protobuf::MessageExts
44
+ extend ::Google::Protobuf::MessageExts::ClassMethods
45
+ end
46
+
47
+ # Request message for
48
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySetService::Client#list_sample_query_sets SampleQuerySetService.ListSampleQuerySets}
49
+ # method.
50
+ # @!attribute [rw] parent
51
+ # @return [::String]
52
+ # Required. The parent location resource name, such as
53
+ # `projects/{project}/locations/{location}`.
54
+ #
55
+ # If the caller does not have permission to list
56
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet SampleQuerySet}s under
57
+ # this location, regardless of whether or not this location exists, a
58
+ # `PERMISSION_DENIED` error is returned.
59
+ # @!attribute [rw] page_size
60
+ # @return [::Integer]
61
+ # Maximum number of
62
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet SampleQuerySet}s to
63
+ # return. If unspecified, defaults to 100. The maximum allowed value is 1000.
64
+ # Values above 1000 will be coerced to 1000.
65
+ #
66
+ # If this field is negative, an `INVALID_ARGUMENT` error is returned.
67
+ # @!attribute [rw] page_token
68
+ # @return [::String]
69
+ # A page token
70
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ListSampleQuerySetsResponse#next_page_token ListSampleQuerySetsResponse.next_page_token},
71
+ # received from a previous
72
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySetService::Client#list_sample_query_sets SampleQuerySetService.ListSampleQuerySets}
73
+ # call. Provide this to retrieve the subsequent page.
74
+ #
75
+ # When paginating, all other parameters provided to
76
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySetService::Client#list_sample_query_sets SampleQuerySetService.ListSampleQuerySets}
77
+ # must match the call that provided the page token. Otherwise, an
78
+ # `INVALID_ARGUMENT` error is returned.
79
+ class ListSampleQuerySetsRequest
80
+ include ::Google::Protobuf::MessageExts
81
+ extend ::Google::Protobuf::MessageExts::ClassMethods
82
+ end
83
+
84
+ # Response message for
85
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySetService::Client#list_sample_query_sets SampleQuerySetService.ListSampleQuerySets}
86
+ # method.
87
+ # @!attribute [rw] sample_query_sets
88
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet>]
89
+ # The {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet SampleQuerySet}s.
90
+ # @!attribute [rw] next_page_token
91
+ # @return [::String]
92
+ # A token that can be sent as
93
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ListSampleQuerySetsRequest#page_token ListSampleQuerySetsRequest.page_token}
94
+ # to retrieve the next page. If this field is omitted, there are no
95
+ # subsequent pages.
96
+ class ListSampleQuerySetsResponse
97
+ include ::Google::Protobuf::MessageExts
98
+ extend ::Google::Protobuf::MessageExts::ClassMethods
99
+ end
100
+
101
+ # Request message for
102
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySetService::Client#create_sample_query_set SampleQuerySetService.CreateSampleQuerySet}
103
+ # method.
104
+ # @!attribute [rw] parent
105
+ # @return [::String]
106
+ # Required. The parent resource name, such as
107
+ # `projects/{project}/locations/{location}`.
108
+ # @!attribute [rw] sample_query_set
109
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet]
110
+ # Required. The
111
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet SampleQuerySet} to
112
+ # create.
113
+ # @!attribute [rw] sample_query_set_id
114
+ # @return [::String]
115
+ # Required. The ID to use for the
116
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet SampleQuerySet}, which
117
+ # will become the final component of the
118
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet#name SampleQuerySet.name}.
119
+ #
120
+ # If the caller does not have permission to create the
121
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet SampleQuerySet},
122
+ # regardless of whether or not it exists, a `PERMISSION_DENIED` error is
123
+ # returned.
124
+ #
125
+ # This field must be unique among all
126
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet SampleQuerySet}s with
127
+ # the same
128
+ # {::Google::Cloud::DiscoveryEngine::V1beta::CreateSampleQuerySetRequest#parent parent}.
129
+ # Otherwise, an `ALREADY_EXISTS` error is returned.
130
+ #
131
+ # This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
132
+ # standard with a length limit of 63 characters. Otherwise, an
133
+ # `INVALID_ARGUMENT` error is returned.
134
+ class CreateSampleQuerySetRequest
135
+ include ::Google::Protobuf::MessageExts
136
+ extend ::Google::Protobuf::MessageExts::ClassMethods
137
+ end
138
+
139
+ # Request message for
140
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySetService::Client#update_sample_query_set SampleQuerySetService.UpdateSampleQuerySet}
141
+ # method.
142
+ # @!attribute [rw] sample_query_set
143
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet]
144
+ # Required. The sample query set to update.
145
+ #
146
+ # If the caller does not have permission to update the
147
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet SampleQuerySet},
148
+ # regardless of whether or not it exists, a `PERMISSION_DENIED` error is
149
+ # returned.
150
+ #
151
+ # If the {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet SampleQuerySet}
152
+ # to update does not exist a `NOT_FOUND` error is returned.
153
+ # @!attribute [rw] update_mask
154
+ # @return [::Google::Protobuf::FieldMask]
155
+ # Indicates which fields in the provided imported 'sample query set' to
156
+ # update. If not set, will by default update all fields.
157
+ class UpdateSampleQuerySetRequest
158
+ include ::Google::Protobuf::MessageExts
159
+ extend ::Google::Protobuf::MessageExts::ClassMethods
160
+ end
161
+
162
+ # Request message for
163
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySetService::Client#delete_sample_query_set SampleQuerySetService.DeleteSampleQuerySet}
164
+ # method.
165
+ # @!attribute [rw] name
166
+ # @return [::String]
167
+ # Required. Full resource name of
168
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet SampleQuerySet}, such
169
+ # as
170
+ # `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
171
+ #
172
+ # If the caller does not have permission to delete the
173
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet SampleQuerySet},
174
+ # regardless of whether or not it exists, a `PERMISSION_DENIED` error is
175
+ # returned.
176
+ #
177
+ # If the {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet SampleQuerySet}
178
+ # to delete does not exist, a `NOT_FOUND` error is returned.
179
+ class DeleteSampleQuerySetRequest
180
+ include ::Google::Protobuf::MessageExts
181
+ extend ::Google::Protobuf::MessageExts::ClassMethods
182
+ end
183
+ end
184
+ end
185
+ end
186
+ end
@@ -46,9 +46,9 @@ module Google
46
46
  # to return. The service may return fewer than this value.
47
47
  #
48
48
  # If unspecified, at most 100
49
- # {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}s will be returned.
49
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}s are returned.
50
50
  #
51
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
51
+ # The maximum value is 1000; values above 1000 are set to 1000.
52
52
  # @!attribute [rw] page_token
53
53
  # @return [::String]
54
54
  # A page token, received from a previous
@@ -94,7 +94,7 @@ module Google
94
94
  # @!attribute [rw] schema_id
95
95
  # @return [::String]
96
96
  # Required. The ID to use for the
97
- # {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}, which will become the
97
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}, which becomes the
98
98
  # final component of the
99
99
  # {::Google::Cloud::DiscoveryEngine::V1beta::Schema#name Schema.name}.
100
100
  #
@@ -117,8 +117,8 @@ module Google
117
117
  # @return [::Boolean]
118
118
  # If set to true, and the
119
119
  # {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} is not found, a new
120
- # {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} will be created. In
121
- # this situation, `update_mask` is ignored.
120
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} is created. In this
121
+ # situation, `update_mask` is ignored.
122
122
  class UpdateSchemaRequest
123
123
  include ::Google::Protobuf::MessageExts
124
124
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -78,7 +78,10 @@ module Google
78
78
  # If this field is negative, an `INVALID_ARGUMENT` is returned.
79
79
  # @!attribute [rw] data_store_specs
80
80
  # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::DataStoreSpec>]
81
- # A list of data store specs to apply on a search call.
81
+ # Specs defining dataStores to filter on in a search call and configurations
82
+ # for those dataStores. This is only considered for engines with multiple
83
+ # dataStores use case. For single dataStore within an engine, they should
84
+ # use the specs at the top level.
82
85
  # @!attribute [rw] filter
83
86
  # @return [::String]
84
87
  # The filter syntax consists of an expression language for constructing a
@@ -115,7 +118,9 @@ module Google
115
118
  # The order in which documents are returned. Documents can be ordered by
116
119
  # a field in an {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}
117
120
  # object. Leave it unset if ordered by relevance. `order_by` expression is
118
- # case-sensitive. For more information on ordering, see
121
+ # case-sensitive.
122
+ #
123
+ # For more information on ordering for retail search, see
119
124
  # [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
120
125
  #
121
126
  # If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
@@ -135,7 +140,7 @@ module Google
135
140
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::BoostSpec]
136
141
  # Boost specification to boost certain documents.
137
142
  # For more information on boosting, see
138
- # [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
143
+ # [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
139
144
  # @!attribute [rw] params
140
145
  # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
141
146
  # Additional search parameters.
@@ -144,8 +149,7 @@ module Google
144
149
  #
145
150
  # * `user_country_code`: string. Default empty. If set to non-empty, results
146
151
  # are restricted or boosted based on the location provided.
147
- # Example:
148
- # user_country_code: "au"
152
+ # For example, `user_country_code: "au"`
149
153
  #
150
154
  # For available codes see [Country
151
155
  # Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
@@ -153,8 +157,7 @@ module Google
153
157
  # * `search_type`: double. Default empty. Enables non-webpage searching
154
158
  # depending on the value. The only valid non-default value is 1,
155
159
  # which enables image searching.
156
- # Example:
157
- # search_type: 1
160
+ # For example, `search_type: 1`
158
161
  # @!attribute [rw] query_expansion_spec
159
162
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::QueryExpansionSpec]
160
163
  # The query expansion specification that specifies the conditions under which
@@ -200,20 +203,26 @@ module Google
200
203
  # documents. This overrides
201
204
  # {::Google::Cloud::DiscoveryEngine::V1beta::ServingConfig#ranking_expression ServingConfig.ranking_expression}.
202
205
  # The ranking expression is a single function or multiple functions that are
203
- # joint by "+".
206
+ # joined by "+".
207
+ #
204
208
  # * ranking_expression = function, { " + ", function };
209
+ #
205
210
  # Supported functions:
211
+ #
206
212
  # * double * relevance_score
207
213
  # * double * dotProduct(embedding_field_path)
214
+ #
208
215
  # Function variables:
209
- # `relevance_score`: pre-defined keywords, used for measure relevance
216
+ #
217
+ # * `relevance_score`: pre-defined keywords, used for measure relevance
210
218
  # between query and document.
211
- # `embedding_field_path`: the document embedding field
219
+ # * `embedding_field_path`: the document embedding field
212
220
  # used with query embedding vector.
213
- # `dotProduct`: embedding function between embedding_field_path and query
221
+ # * `dotProduct`: embedding function between embedding_field_path and query
214
222
  # embedding vector.
215
223
  #
216
224
  # Example ranking expression:
225
+ #
217
226
  # If document has an embedding field doc_embedding, the ranking expression
218
227
  # could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
219
228
  # @!attribute [rw] safe_search
@@ -253,7 +262,9 @@ module Google
253
262
  extend ::Google::Protobuf::MessageExts::ClassMethods
254
263
  end
255
264
 
256
- # A struct to define data stores to filter on in a search call.
265
+ # A struct to define data stores to filter on in a search call and
266
+ # configurations for those data stores. Otherwise, an `INVALID_ARGUMENT`
267
+ # error is returned.
257
268
  # @!attribute [rw] data_store
258
269
  # @return [::String]
259
270
  # Required. Full resource name of
@@ -270,9 +281,12 @@ module Google
270
281
  # Required. The facet key specification.
271
282
  # @!attribute [rw] limit
272
283
  # @return [::Integer]
273
- # Maximum of facet values that should be returned for this facet. If
284
+ # Maximum facet values that are returned for this facet. If
274
285
  # unspecified, defaults to 20. The maximum allowed value is 300. Values
275
286
  # above 300 are coerced to 300.
287
+ # For aggregation in healthcare search, when the [FacetKey.key] is
288
+ # "healthcare_aggregation_key", the limit will be overridden to
289
+ # 10,000 internally, regardless of the value set here.
276
290
  #
277
291
  # If this field is negative, an `INVALID_ARGUMENT` is returned.
278
292
  # @!attribute [rw] excluded_filter_keys
@@ -367,7 +381,7 @@ module Google
367
381
  # Only supported on textual fields. Maximum is 10.
368
382
  # @!attribute [rw] contains
369
383
  # @return [::Array<::String>]
370
- # Only get facet values that contains the given strings. For example,
384
+ # Only get facet values that contain the given strings. For example,
371
385
  # suppose "category" has three values "Action > 2022",
372
386
  # "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
373
387
  # "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
@@ -518,7 +532,7 @@ module Google
518
532
  # specified. The value must be formatted as an XSD `dayTimeDuration`
519
533
  # value (a restricted subset of an ISO 8601 duration value). The
520
534
  # pattern for this is: `[nD][T[nH][nM][nS]]`.
521
- # E.g. `5D`, `3DT12H30M`, `T24H`.
535
+ # For example, `5D`, `3DT12H30M`, `T24H`.
522
536
  FRESHNESS = 2
523
537
  end
524
538
 
@@ -571,8 +585,8 @@ module Google
571
585
  # The specification for query spell correction.
572
586
  # @!attribute [rw] mode
573
587
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::SpellCorrectionSpec::Mode]
574
- # The mode under which spell correction should take effect to
575
- # replace the original search query. Default to
588
+ # The mode under which spell correction
589
+ # replaces the original search query. Defaults to
576
590
  # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::SpellCorrectionSpec::Mode::AUTO Mode.AUTO}.
577
591
  class SpellCorrectionSpec
578
592
  include ::Google::Protobuf::MessageExts
@@ -585,10 +599,10 @@ module Google
585
599
  # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::SpellCorrectionSpec::Mode::AUTO Mode.AUTO}.
586
600
  MODE_UNSPECIFIED = 0
587
601
 
588
- # Search API will try to find a spell suggestion if there
589
- # is any and put in the
602
+ # Search API tries to find a spelling suggestion. If a suggestion is
603
+ # found, it is put in the
590
604
  # {::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse#corrected_query SearchResponse.corrected_query}.
591
- # The spell suggestion will not be used as the search query.
605
+ # The spelling suggestion won't be used as the search query.
592
606
  SUGGESTION_ONLY = 1
593
607
 
594
608
  # Automatic spell correction built by the Search API. Search will
@@ -610,6 +624,17 @@ module Google
610
624
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::ExtractiveContentSpec]
611
625
  # If there is no extractive_content_spec provided, there will be no
612
626
  # extractive answer in the search response.
627
+ # @!attribute [rw] search_result_mode
628
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SearchResultMode]
629
+ # Specifies the search result mode. If unspecified, the
630
+ # search result mode defaults to `DOCUMENTS`.
631
+ # @!attribute [rw] chunk_spec
632
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::ChunkSpec]
633
+ # Specifies the chunk spec to be returned from the search response.
634
+ # Only available if the
635
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec#search_result_mode SearchRequest.ContentSearchSpec.search_result_mode}
636
+ # is set to
637
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SearchResultMode::CHUNKS CHUNKS}
613
638
  class ContentSearchSpec
614
639
  include ::Google::Protobuf::MessageExts
615
640
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -644,7 +669,11 @@ module Google
644
669
  # of results returned is less than `summaryResultCount`, the summary is
645
670
  # generated from all of the results.
646
671
  #
647
- # At most 10 results can be used to generate a summary.
672
+ # At most 10 results for documents mode, or 50 for chunks mode, can be
673
+ # used to generate a summary. The chunks mode is used when
674
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec#search_result_mode SearchRequest.ContentSearchSpec.search_result_mode}
675
+ # is set to
676
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SearchResultMode::CHUNKS CHUNKS}.
648
677
  # @!attribute [rw] include_citations
649
678
  # @return [::Boolean]
650
679
  # Specifies whether to include citations in the summary. The default
@@ -801,6 +830,40 @@ module Google
801
830
  include ::Google::Protobuf::MessageExts
802
831
  extend ::Google::Protobuf::MessageExts::ClassMethods
803
832
  end
833
+
834
+ # Specifies the chunk spec to be returned from the search response.
835
+ # Only available if the
836
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec#search_result_mode SearchRequest.ContentSearchSpec.search_result_mode}
837
+ # is set to
838
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SearchResultMode::CHUNKS CHUNKS}
839
+ # @!attribute [rw] num_previous_chunks
840
+ # @return [::Integer]
841
+ # The number of previous chunks to be returned of the current chunk. The
842
+ # maximum allowed value is 3.
843
+ # If not specified, no previous chunks will be returned.
844
+ # @!attribute [rw] num_next_chunks
845
+ # @return [::Integer]
846
+ # The number of next chunks to be returned of the current chunk. The
847
+ # maximum allowed value is 3.
848
+ # If not specified, no next chunks will be returned.
849
+ class ChunkSpec
850
+ include ::Google::Protobuf::MessageExts
851
+ extend ::Google::Protobuf::MessageExts::ClassMethods
852
+ end
853
+
854
+ # Specifies the search result mode. If unspecified, the
855
+ # search result mode defaults to `DOCUMENTS`.
856
+ module SearchResultMode
857
+ # Default value.
858
+ SEARCH_RESULT_MODE_UNSPECIFIED = 0
859
+
860
+ # Returns documents in the search result.
861
+ DOCUMENTS = 1
862
+
863
+ # Returns chunks in the search result. Only available if the
864
+ # [DataStore.DocumentProcessingConfig.chunking_config][] is specified.
865
+ CHUNKS = 2
866
+ end
804
867
  end
805
868
 
806
869
  # The specification that uses customized query embedding vector to do
@@ -900,8 +963,6 @@ module Google
900
963
  # Controls applied as part of the Control service.
901
964
  # @!attribute [rw] geo_search_debug_info
902
965
  # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::GeoSearchDebugInfo>]
903
- # Debug information specifically related to forward geocoding issues arising
904
- # from Geolocation Search.
905
966
  # @!attribute [rw] query_expansion_info
906
967
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::QueryExpansionInfo]
907
968
  # Query expansion information for the returned results.
@@ -917,7 +978,13 @@ module Google
917
978
  # @!attribute [rw] document
918
979
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::Document]
919
980
  # The document data snippet in the search response. Only fields that are
920
- # marked as retrievable are populated.
981
+ # marked as `retrievable` are populated.
982
+ # @!attribute [rw] chunk
983
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::Chunk]
984
+ # The chunk data in the search response if the
985
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec#search_result_mode SearchRequest.ContentSearchSpec.search_result_mode}
986
+ # is set to
987
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SearchResultMode::CHUNKS CHUNKS}.
921
988
  # @!attribute [rw] model_scores
922
989
  # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::DiscoveryEngine::V1beta::DoubleList}]
923
990
  # Google provided available scores.
@@ -938,7 +1005,7 @@ module Google
938
1005
  # A facet result.
939
1006
  # @!attribute [rw] key
940
1007
  # @return [::String]
941
- # The key for this facet. E.g., "colors" or "price". It matches
1008
+ # The key for this facet. For example, `"colors"` or `"price"`. It matches
942
1009
  # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::FacetSpec::FacetKey#key SearchRequest.FacetSpec.FacetKey.key}.
943
1010
  # @!attribute [rw] values
944
1011
  # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::Facet::FacetValue>]
@@ -983,17 +1050,17 @@ module Google
983
1050
  # Useful attribute for search result refinements.
984
1051
  # @!attribute [rw] attribute_key
985
1052
  # @return [::String]
986
- # Attribute key used to refine the results e.g. 'movie_type'.
1053
+ # Attribute key used to refine the results. For example, `"movie_type"`.
987
1054
  # @!attribute [rw] attribute_value
988
1055
  # @return [::String]
989
- # Attribute value used to refine the results e.g. 'drama'.
1056
+ # Attribute value used to refine the results. For example, `"drama"`.
990
1057
  class RefinementAttribute
991
1058
  include ::Google::Protobuf::MessageExts
992
1059
  extend ::Google::Protobuf::MessageExts::ClassMethods
993
1060
  end
994
1061
  end
995
1062
 
996
- # Summary of the top N search result specified by the summary spec.
1063
+ # Summary of the top N search results specified by the summary spec.
997
1064
  # @!attribute [rw] summary_text
998
1065
  # @return [::String]
999
1066
  # The summary content.
@@ -21,6 +21,31 @@ module Google
21
21
  module Cloud
22
22
  module DiscoveryEngine
23
23
  module V1beta
24
+ # Request message for
25
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SearchTuningService::Client#list_custom_models SearchTuningService.ListCustomModels}
26
+ # method.
27
+ # @!attribute [rw] data_store
28
+ # @return [::String]
29
+ # Required. The resource name of the parent Data Store, such as
30
+ # `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
31
+ # This field is used to identify the data store where to fetch the models
32
+ # from.
33
+ class ListCustomModelsRequest
34
+ include ::Google::Protobuf::MessageExts
35
+ extend ::Google::Protobuf::MessageExts::ClassMethods
36
+ end
37
+
38
+ # Response message for
39
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SearchTuningService::Client#list_custom_models SearchTuningService.ListCustomModels}
40
+ # method.
41
+ # @!attribute [rw] models
42
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::CustomTuningModel>]
43
+ # List of custom tuning models.
44
+ class ListCustomModelsResponse
45
+ include ::Google::Protobuf::MessageExts
46
+ extend ::Google::Protobuf::MessageExts::ClassMethods
47
+ end
48
+
24
49
  # Request message for
25
50
  # {::Google::Cloud::DiscoveryEngine::V1beta::SearchTuningService::Client#train_custom_model SearchTuningService.TrainCustomModel}
26
51
  # method.
@@ -41,6 +66,9 @@ module Google
41
66
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::ImportErrorConfig]
42
67
  # The desired location of errors incurred during the data ingestion and
43
68
  # training.
69
+ # @!attribute [rw] model_id
70
+ # @return [::String]
71
+ # If not provided, a UUID will be generated.
44
72
  class TrainCustomModelRequest
45
73
  include ::Google::Protobuf::MessageExts
46
74
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -108,6 +136,9 @@ module Google
108
136
  # @!attribute [rw] metrics
109
137
  # @return [::Google::Protobuf::Map{::String => ::Float}]
110
138
  # The metrics of the trained model.
139
+ # @!attribute [rw] model_name
140
+ # @return [::String]
141
+ # Fully qualified name of the CustomTuningModel.
111
142
  class TrainCustomModelResponse
112
143
  include ::Google::Protobuf::MessageExts
113
144
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -93,21 +93,27 @@ module Google
93
93
  #
94
94
  # The ranking expression is a single function or multiple functions that are
95
95
  # joined by "+".
96
+ #
96
97
  # * ranking_expression = function, { " + ", function };
98
+ #
97
99
  # Supported functions:
100
+ #
98
101
  # * double * relevance_score
99
102
  # * double * dotProduct(embedding_field_path)
103
+ #
100
104
  # Function variables:
101
- # relevance_score: pre-defined keywords, used for measure relevance between
102
- # query and document.
103
- # embedding_field_path: the document embedding field
105
+ #
106
+ # * `relevance_score`: pre-defined keywords, used for measure relevance
107
+ # between query and document.
108
+ # * `embedding_field_path`: the document embedding field
104
109
  # used with query embedding vector.
105
- # dotProduct: embedding function between embedding_field_path and query
110
+ # * `dotProduct`: embedding function between embedding_field_path and query
106
111
  # embedding vector.
107
112
  #
108
113
  # Example ranking expression:
114
+ #
109
115
  # If document has an embedding field doc_embedding, the ranking expression
110
- # could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding).
116
+ # could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
111
117
  # @!attribute [r] create_time
112
118
  # @return [::Google::Protobuf::Timestamp]
113
119
  # Output only. ServingConfig created timestamp.
@@ -25,7 +25,7 @@ module Google
25
25
  # @!attribute [rw] name
26
26
  # @return [::String]
27
27
  # Immutable. Fully qualified name
28
- # `project/*/locations/global/collections/{collection}/engines/{engine}/sessions/*`
28
+ # `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*`
29
29
  # @!attribute [rw] state
30
30
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::Session::State]
31
31
  # The state of the session.
@@ -53,6 +53,9 @@ module Google
53
53
  # @!attribute [rw] answer
54
54
  # @return [::String]
55
55
  # The resource name of the answer to the user query.
56
+ #
57
+ # Only set if the answer generation (/answer API call) happened in this
58
+ # turn.
56
59
  class Turn
57
60
  include ::Google::Protobuf::MessageExts
58
61
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -57,6 +57,9 @@ module Google
57
57
  # @!attribute [r] generated_uri_pattern
58
58
  # @return [::String]
59
59
  # Output only. This is system-generated based on the provided_uri_pattern.
60
+ # @!attribute [r] root_domain_uri
61
+ # @return [::String]
62
+ # Output only. Root domain of the provided_uri_pattern.
60
63
  # @!attribute [r] site_verification_info
61
64
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::SiteVerificationInfo]
62
65
  # Output only. Site ownership and validity verification status.
@@ -22,7 +22,7 @@ module Google
22
22
  module DiscoveryEngine
23
23
  module V1beta
24
24
  # UserEvent captures all metadata information Discovery Engine API needs to
25
- # know about how end users interact with customers' website.
25
+ # know about how end users interact with your website.
26
26
  # @!attribute [rw] event_type
27
27
  # @return [::String]
28
28
  # Required. User event type. Allowed values are:
@@ -63,6 +63,27 @@ module Google
63
63
  # Analytics [Client
64
64
  # ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId)
65
65
  # for this field.
66
+ # @!attribute [rw] engine
67
+ # @return [::String]
68
+ # The {::Google::Cloud::DiscoveryEngine::V1beta::Engine Engine} resource name, in
69
+ # the form of
70
+ # `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
71
+ #
72
+ # Optional. Only required for
73
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Engine Engine} produced user events.
74
+ # For example, user events from blended search.
75
+ # @!attribute [rw] data_store
76
+ # @return [::String]
77
+ # The {::Google::Cloud::DiscoveryEngine::V1beta::DataStore DataStore} resource
78
+ # full name, of the form
79
+ # `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
80
+ #
81
+ # Optional. Only required for user events whose data store can't by
82
+ # determined by
83
+ # {::Google::Cloud::DiscoveryEngine::V1beta::UserEvent#engine UserEvent.engine} or
84
+ # {::Google::Cloud::DiscoveryEngine::V1beta::UserEvent#documents UserEvent.documents}.
85
+ # If data store is set in the parent of write/import/collect user event
86
+ # requests, this field can be omitted.
66
87
  # @!attribute [rw] event_time
67
88
  # @return [::Google::Protobuf::Timestamp]
68
89
  # Only required for
@@ -187,7 +208,7 @@ module Google
187
208
  # @return [::Array<::String>]
188
209
  # A list of identifiers for the independent experiment groups this user event
189
210
  # belongs to. This is used to distinguish between user events associated with
190
- # different experiment setups on the customer end.
211
+ # different experiment setups.
191
212
  # @!attribute [rw] promotion_ids
192
213
  # @return [::Array<::String>]
193
214
  # The promotion IDs if this is an event associated with promotions.
@@ -418,7 +439,7 @@ module Google
418
439
  # @return [::Integer]
419
440
  # Quantity of the Document associated with the user event. Defaults to 1.
420
441
  #
421
- # For example, this field will be 2 if two quantities of the same Document
442
+ # For example, this field is 2 if two quantities of the same Document
422
443
  # are involved in a `add-to-cart` event.
423
444
  #
424
445
  # Required for events of the following event types: