google-cloud-discovery_engine-v1beta 0.1.0 → 0.2.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.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +53 -1
  3. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +53 -1
  4. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +14 -0
  5. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +14 -0
  6. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +1 -3
  7. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +1 -3
  8. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +14 -0
  9. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  10. data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +24 -19
  11. data/lib/google/cloud/discoveryengine/v1beta/completion_service_pb.rb +24 -13
  12. data/lib/google/cloud/discoveryengine/v1beta/document_pb.rb +25 -20
  13. data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +25 -25
  14. data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +29 -72
  15. data/lib/google/cloud/discoveryengine/v1beta/purge_config_pb.rb +25 -16
  16. data/lib/google/cloud/discoveryengine/v1beta/recommendation_service_pb.rb +27 -21
  17. data/lib/google/cloud/discoveryengine/v1beta/schema_pb.rb +25 -8
  18. data/lib/google/cloud/discoveryengine/v1beta/schema_service_pb.rb +26 -37
  19. data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +27 -107
  20. data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +27 -62
  21. data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +25 -11
  22. data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +54 -0
  23. data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +1 -3
  24. data/proto_docs/google/protobuf/any.rb +7 -4
  25. data/proto_docs/google/protobuf/struct.rb +1 -1
  26. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  27. metadata +4 -4
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/discoveryengine/v1beta/user_event.proto
3
4
 
@@ -9,70 +10,34 @@ require 'google/cloud/discoveryengine/v1beta/common_pb'
9
10
  require 'google/protobuf/duration_pb'
10
11
  require 'google/protobuf/timestamp_pb'
11
12
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("google/cloud/discoveryengine/v1beta/user_event.proto", :syntax => :proto3) do
14
- add_message "google.cloud.discoveryengine.v1beta.UserEvent" do
15
- optional :event_type, :string, 1
16
- optional :user_pseudo_id, :string, 2
17
- optional :event_time, :message, 3, "google.protobuf.Timestamp"
18
- optional :user_info, :message, 4, "google.cloud.discoveryengine.v1beta.UserInfo"
19
- optional :direct_user_request, :bool, 5
20
- optional :session_id, :string, 6
21
- optional :page_info, :message, 7, "google.cloud.discoveryengine.v1beta.PageInfo"
22
- optional :attribution_token, :string, 8
23
- optional :filter, :string, 9
24
- repeated :documents, :message, 10, "google.cloud.discoveryengine.v1beta.DocumentInfo"
25
- optional :panel, :message, 11, "google.cloud.discoveryengine.v1beta.PanelInfo"
26
- optional :search_info, :message, 12, "google.cloud.discoveryengine.v1beta.SearchInfo"
27
- optional :completion_info, :message, 13, "google.cloud.discoveryengine.v1beta.CompletionInfo"
28
- optional :transaction_info, :message, 14, "google.cloud.discoveryengine.v1beta.TransactionInfo"
29
- repeated :tag_ids, :string, 15
30
- repeated :promotion_ids, :string, 16
31
- map :attributes, :string, :message, 17, "google.cloud.discoveryengine.v1beta.CustomAttribute"
32
- optional :media_info, :message, 18, "google.cloud.discoveryengine.v1beta.MediaInfo"
33
- end
34
- add_message "google.cloud.discoveryengine.v1beta.PageInfo" do
35
- optional :pageview_id, :string, 1
36
- optional :page_category, :string, 2
37
- optional :uri, :string, 3
38
- optional :referrer_uri, :string, 4
39
- end
40
- add_message "google.cloud.discoveryengine.v1beta.SearchInfo" do
41
- optional :search_query, :string, 1
42
- optional :order_by, :string, 2
43
- proto3_optional :offset, :int32, 3
44
- end
45
- add_message "google.cloud.discoveryengine.v1beta.CompletionInfo" do
46
- optional :selected_suggestion, :string, 1
47
- optional :selected_position, :int32, 2
48
- end
49
- add_message "google.cloud.discoveryengine.v1beta.TransactionInfo" do
50
- proto3_optional :value, :float, 1
51
- optional :currency, :string, 2
52
- optional :transaction_id, :string, 3
53
- proto3_optional :tax, :float, 4
54
- proto3_optional :cost, :float, 5
55
- proto3_optional :discount_value, :float, 6
56
- end
57
- add_message "google.cloud.discoveryengine.v1beta.DocumentInfo" do
58
- proto3_optional :quantity, :int32, 3
59
- repeated :promotion_ids, :string, 4
60
- oneof :document_descriptor do
61
- optional :id, :string, 1
62
- optional :name, :string, 2
63
- end
64
- end
65
- add_message "google.cloud.discoveryengine.v1beta.PanelInfo" do
66
- optional :panel_id, :string, 2
67
- optional :display_name, :string, 3
68
- proto3_optional :panel_position, :int32, 4
69
- proto3_optional :total_panels, :int32, 5
70
- end
71
- add_message "google.cloud.discoveryengine.v1beta.MediaInfo" do
72
- optional :media_progress_duration, :message, 1, "google.protobuf.Duration"
73
- proto3_optional :media_progress_percentage, :float, 2
13
+
14
+ descriptor_data = "\n4google/cloud/discoveryengine/v1beta/user_event.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/discoveryengine/v1beta/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe3\x07\n\tUserEvent\x12\x17\n\nevent_type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0euser_pseudo_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12.\n\nevent_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\tuser_info\x18\x04 \x01(\x0b\x32-.google.cloud.discoveryengine.v1beta.UserInfo\x12\x1b\n\x13\x64irect_user_request\x18\x05 \x01(\x08\x12\x12\n\nsession_id\x18\x06 \x01(\t\x12@\n\tpage_info\x18\x07 \x01(\x0b\x32-.google.cloud.discoveryengine.v1beta.PageInfo\x12\x19\n\x11\x61ttribution_token\x18\x08 \x01(\t\x12\x0e\n\x06\x66ilter\x18\t \x01(\t\x12\x44\n\tdocuments\x18\n \x03(\x0b\x32\x31.google.cloud.discoveryengine.v1beta.DocumentInfo\x12=\n\x05panel\x18\x0b \x01(\x0b\x32..google.cloud.discoveryengine.v1beta.PanelInfo\x12\x44\n\x0bsearch_info\x18\x0c \x01(\x0b\x32/.google.cloud.discoveryengine.v1beta.SearchInfo\x12L\n\x0f\x63ompletion_info\x18\r \x01(\x0b\x32\x33.google.cloud.discoveryengine.v1beta.CompletionInfo\x12N\n\x10transaction_info\x18\x0e \x01(\x0b\x32\x34.google.cloud.discoveryengine.v1beta.TransactionInfo\x12\x0f\n\x07tag_ids\x18\x0f \x03(\t\x12\x15\n\rpromotion_ids\x18\x10 \x03(\t\x12R\n\nattributes\x18\x11 \x03(\x0b\x32>.google.cloud.discoveryengine.v1beta.UserEvent.AttributesEntry\x12\x42\n\nmedia_info\x18\x12 \x01(\x0b\x32..google.cloud.discoveryengine.v1beta.MediaInfo\x1ag\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x43\n\x05value\x18\x02 \x01(\x0b\x32\x34.google.cloud.discoveryengine.v1beta.CustomAttribute:\x02\x38\x01\"Y\n\x08PageInfo\x12\x13\n\x0bpageview_id\x18\x01 \x01(\t\x12\x15\n\rpage_category\x18\x02 \x01(\t\x12\x0b\n\x03uri\x18\x03 \x01(\t\x12\x14\n\x0creferrer_uri\x18\x04 \x01(\t\"T\n\nSearchInfo\x12\x14\n\x0csearch_query\x18\x01 \x01(\t\x12\x10\n\x08order_by\x18\x02 \x01(\t\x12\x13\n\x06offset\x18\x03 \x01(\x05H\x00\x88\x01\x01\x42\t\n\x07_offset\"H\n\x0e\x43ompletionInfo\x12\x1b\n\x13selected_suggestion\x18\x01 \x01(\t\x12\x19\n\x11selected_position\x18\x02 \x01(\x05\"\xc9\x01\n\x0fTransactionInfo\x12\x17\n\x05value\x18\x01 \x01(\x02\x42\x03\xe0\x41\x02H\x00\x88\x01\x01\x12\x15\n\x08\x63urrency\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\x0etransaction_id\x18\x03 \x01(\t\x12\x10\n\x03tax\x18\x04 \x01(\x02H\x01\x88\x01\x01\x12\x11\n\x04\x63ost\x18\x05 \x01(\x02H\x02\x88\x01\x01\x12\x1b\n\x0e\x64iscount_value\x18\x06 \x01(\x02H\x03\x88\x01\x01\x42\x08\n\x06_valueB\x06\n\x04_taxB\x07\n\x05_costB\x11\n\x0f_discount_value\"\xb4\x01\n\x0c\x44ocumentInfo\x12\x11\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x02H\x00\x12?\n\x04name\x18\x02 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'discoveryengine.googleapis.com/DocumentH\x00\x12\x15\n\x08quantity\x18\x03 \x01(\x05H\x01\x88\x01\x01\x12\x15\n\rpromotion_ids\x18\x04 \x03(\tB\x15\n\x13\x64ocument_descriptorB\x0b\n\t_quantity\"\x94\x01\n\tPanelInfo\x12\x15\n\x08panel_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x1b\n\x0epanel_position\x18\x04 \x01(\x05H\x00\x88\x01\x01\x12\x19\n\x0ctotal_panels\x18\x05 \x01(\x05H\x01\x88\x01\x01\x42\x11\n\x0f_panel_positionB\x0f\n\r_total_panels\"\x8d\x01\n\tMediaInfo\x12:\n\x17media_progress_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x19media_progress_percentage\x18\x02 \x01(\x02H\x00\x88\x01\x01\x42\x1c\n\x1a_media_progress_percentageB\x95\x02\n\'com.google.cloud.discoveryengine.v1betaB\x0eUserEventProtoP\x01ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02#Google.Cloud.DiscoveryEngine.V1Beta\xca\x02#Google\\Cloud\\DiscoveryEngine\\V1beta\xea\x02&Google::Cloud::DiscoveryEngine::V1betab\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
30
+ ["google.cloud.discoveryengine.v1beta.UserInfo", "google/cloud/discoveryengine/v1beta/common.proto"],
31
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
32
+ ]
33
+ imports.each do |type_name, expected_filename|
34
+ import_file = pool.lookup(type_name).file_descriptor
35
+ if import_file.name != expected_filename
36
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
74
37
  end
75
38
  end
39
+ warn "Each proto file must use a consistent fully-qualified name."
40
+ warn "This will become an error in the next major version."
76
41
  end
77
42
 
78
43
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/discoveryengine/v1beta/user_event_service.proto
3
4
 
@@ -12,19 +13,32 @@ require 'google/cloud/discoveryengine/v1beta/import_config_pb'
12
13
  require 'google/cloud/discoveryengine/v1beta/user_event_pb'
13
14
  require 'google/longrunning/operations_pb'
14
15
 
15
- Google::Protobuf::DescriptorPool.generated_pool.build do
16
- add_file("google/cloud/discoveryengine/v1beta/user_event_service.proto", :syntax => :proto3) do
17
- add_message "google.cloud.discoveryengine.v1beta.WriteUserEventRequest" do
18
- optional :parent, :string, 1
19
- proto3_optional :user_event, :message, 2, "google.cloud.discoveryengine.v1beta.UserEvent"
20
- end
21
- add_message "google.cloud.discoveryengine.v1beta.CollectUserEventRequest" do
22
- optional :parent, :string, 1
23
- optional :user_event, :string, 2
24
- proto3_optional :uri, :string, 3
25
- proto3_optional :ets, :int64, 4
16
+
17
+ descriptor_data = "\n<google/cloud/discoveryengine/v1beta/user_event_service.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/httpbody.proto\x1a\x19google/api/resource.proto\x1a\x37google/cloud/discoveryengine/v1beta/import_config.proto\x1a\x34google/cloud/discoveryengine/v1beta/user_event.proto\x1a#google/longrunning/operations.proto\"\xb6\x01\n\x15WriteUserEventRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12L\n\nuser_event\x18\x02 \x01(\x0b\x32..google.cloud.discoveryengine.v1beta.UserEventB\x03\xe0\x41\x02H\x00\x88\x01\x01\x42\r\n\x0b_user_event\"\xa8\x01\n\x17\x43ollectUserEventRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12\x17\n\nuser_event\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x03uri\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x10\n\x03\x65ts\x18\x04 \x01(\x03H\x01\x88\x01\x01\x42\x06\n\x04_uriB\x06\n\x04_ets2\xdb\x08\n\x10UserEventService\x12\xbc\x02\n\x0eWriteUserEvent\x12:.google.cloud.discoveryengine.v1beta.WriteUserEventRequest\x1a..google.cloud.discoveryengine.v1beta.UserEvent\"\xbd\x01\x82\xd3\xe4\x93\x02\xb6\x01\"E/v1beta/{parent=projects/*/locations/*/dataStores/*}/userEvents:write:\nuser_eventZa\"S/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:write:\nuser_event\x12\x92\x02\n\x10\x43ollectUserEvent\x12<.google.cloud.discoveryengine.v1beta.CollectUserEventRequest\x1a\x14.google.api.HttpBody\"\xa9\x01\x82\xd3\xe4\x93\x02\xa2\x01\x12G/v1beta/{parent=projects/*/locations/*/dataStores/*}/userEvents:collectZW\x12U/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:collect\x12\x9e\x03\n\x10ImportUserEvents\x12<.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest\x1a\x1d.google.longrunning.Operation\"\xac\x02\x82\xd3\xe4\x93\x02\xa6\x01\"F/v1beta/{parent=projects/*/locations/*/dataStores/*}/userEvents:import:\x01*ZY\"T/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:import:\x01*\xca\x41|\n<google.cloud.discoveryengine.v1beta.ImportUserEventsResponse\x12<google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata\x1aR\xca\x41\x1e\x64iscoveryengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x9c\x02\n\'com.google.cloud.discoveryengine.v1betaB\x15UserEventServiceProtoP\x01ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02#Google.Cloud.DiscoveryEngine.V1Beta\xca\x02#Google\\Cloud\\DiscoveryEngine\\V1beta\xea\x02&Google::Cloud::DiscoveryEngine::V1betab\x06proto3"
18
+
19
+ pool = Google::Protobuf::DescriptorPool.generated_pool
20
+
21
+ begin
22
+ pool.add_serialized_file(descriptor_data)
23
+ rescue TypeError => e
24
+ # Compatibility code: will be removed in the next major version.
25
+ require 'google/protobuf/descriptor_pb'
26
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
27
+ parsed.clear_dependency
28
+ serialized = parsed.class.encode(parsed)
29
+ file = pool.add_serialized_file(serialized)
30
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
31
+ imports = [
32
+ ["google.cloud.discoveryengine.v1beta.UserEvent", "google/cloud/discoveryengine/v1beta/user_event.proto"],
33
+ ]
34
+ imports.each do |type_name, expected_filename|
35
+ import_file = pool.lookup(type_name).file_descriptor
36
+ if import_file.name != expected_filename
37
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
26
38
  end
27
39
  end
40
+ warn "Each proto file must use a consistent fully-qualified name."
41
+ warn "This will become an error in the next major version."
28
42
  end
29
43
 
30
44
  module Google
@@ -236,6 +236,60 @@ module Google
236
236
  # The mode of reconciliation between existing documents and the documents to
237
237
  # be imported. Defaults to
238
238
  # {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest::ReconciliationMode::INCREMENTAL ReconciliationMode.INCREMENTAL}.
239
+ # @!attribute [rw] auto_generate_ids
240
+ # @return [::Boolean]
241
+ # Whether to automatically generate IDs for the documents if absent.
242
+ #
243
+ # If set to `true`,
244
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Document#id Document.id}s are
245
+ # automatically generated based on the hash of the payload, where IDs may not
246
+ # be consistent during multiple imports. In which case
247
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest::ReconciliationMode::FULL ReconciliationMode.FULL}
248
+ # is highly recommended to avoid duplicate contents. If unset or set to
249
+ # `false`, {::Google::Cloud::DiscoveryEngine::V1beta::Document#id Document.id}s
250
+ # have to be specified using
251
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest#id_field id_field},
252
+ # otherwises, documents without IDs will fail to be imported.
253
+ #
254
+ # Only set this field when using
255
+ # {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource} or
256
+ # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource BigQuerySource}, and
257
+ # when
258
+ # {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource#data_schema GcsSource.data_schema}
259
+ # or
260
+ # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource#data_schema BigQuerySource.data_schema}
261
+ # is `custom`. Otherwise, an INVALID_ARGUMENT error is thrown.
262
+ # @!attribute [rw] id_field
263
+ # @return [::String]
264
+ # The field in the Cloud Storage and BigQuery sources that indicates the
265
+ # unique IDs of the documents.
266
+ #
267
+ # For {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource} it is the
268
+ # key of the JSON field. For instance, `my_id` for JSON `{"my_id":
269
+ # "some_uuid"}`. For
270
+ # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource BigQuerySource} it is
271
+ # the column name of the BigQuery table where the unique ids are stored.
272
+ #
273
+ # The values of the JSON field or the BigQuery column will be used as the
274
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Document#id Document.id}s. The JSON
275
+ # field or the BigQuery column must be of string type, and the values must be
276
+ # set as valid strings conform to
277
+ # [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
278
+ # Otherwise, documents without valid IDs will fail to be imported.
279
+ #
280
+ # Only set this field when using
281
+ # {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource} or
282
+ # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource BigQuerySource}, and
283
+ # when
284
+ # {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource#data_schema GcsSource.data_schema}
285
+ # or
286
+ # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource#data_schema BigQuerySource.data_schema}
287
+ # is `custom`. And only set this field when
288
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest#auto_generate_ids auto_generate_ids}
289
+ # is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
290
+ #
291
+ # If it is unset, a default value `_id` is used when importing from the
292
+ # allowed data sources.
239
293
  class ImportDocumentsRequest
240
294
  include ::Google::Protobuf::MessageExts
241
295
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -100,9 +100,7 @@ module Google
100
100
  # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
101
101
  # Additional search parameters.
102
102
  #
103
- # For
104
- # [IndustryVertical.SITE_SEARCH][google.cloud.discoveryengine.v1beta.IndustryVertical.SITE_SEARCH]
105
- # vertical, supported values are:
103
+ # For public website search only, supported values are:
106
104
  #
107
105
  # * `user_country_code`: string. Default empty. If set to non-empty, results
108
106
  # are restricted or boosted based on the location provided.
@@ -43,8 +43,12 @@ module Google
43
43
  # if (any.is(Foo.class)) {
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
46
50
  #
47
- # Example 3: Pack and unpack a message in Python.
51
+ # Example 3: Pack and unpack a message in Python.
48
52
  #
49
53
  # foo = Foo(...)
50
54
  # any = Any()
@@ -54,7 +58,7 @@ module Google
54
58
  # any.Unpack(foo)
55
59
  # ...
56
60
  #
57
- # Example 4: Pack and unpack a message in Go
61
+ # Example 4: Pack and unpack a message in Go
58
62
  #
59
63
  # foo := &pb.Foo{...}
60
64
  # any, err := anypb.New(foo)
@@ -73,9 +77,8 @@ module Google
73
77
  # in the type URL, for example "foo.bar.com/x/y.z" will yield type
74
78
  # name "y.z".
75
79
  #
76
- #
77
80
  # JSON
78
- #
81
+ # ====
79
82
  # The JSON representation of an `Any` value uses the regular
80
83
  # representation of the deserialized, embedded message, with an
81
84
  # additional field `@type` which contains the type URL. Example:
@@ -87,7 +87,7 @@ module Google
87
87
  # `NullValue` is a singleton enumeration to represent the null value for the
88
88
  # `Value` type union.
89
89
  #
90
- # The JSON representation for `NullValue` is JSON `null`.
90
+ # The JSON representation for `NullValue` is JSON `null`.
91
91
  module NullValue
92
92
  # Null value.
93
93
  NULL_VALUE = 0
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-discovery_engine-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-24 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.19.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.19.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a