google-cloud-recommendation_engine-v1beta1 0.1.1 → 0.3.3

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 (24) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +8 -8
  3. data/LICENSE.md +188 -190
  4. data/README.md +67 -3
  5. data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/client.rb +28 -40
  6. data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/operations.rb +95 -10
  7. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/client.rb +20 -23
  8. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/client.rb +14 -11
  9. data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/client.rb +26 -35
  10. data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/operations.rb +95 -10
  11. data/lib/google/cloud/recommendation_engine/v1beta1/version.rb +1 -1
  12. data/proto_docs/google/api/field_behavior.rb +12 -0
  13. data/proto_docs/google/api/httpbody.rb +4 -3
  14. data/proto_docs/google/cloud/recommendationengine/v1beta1/catalog_service.rb +4 -4
  15. data/proto_docs/google/cloud/recommendationengine/v1beta1/import.rb +4 -4
  16. data/proto_docs/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.rb +3 -3
  17. data/proto_docs/google/cloud/recommendationengine/v1beta1/prediction_service.rb +1 -1
  18. data/proto_docs/google/cloud/recommendationengine/v1beta1/user_event_service.rb +4 -4
  19. data/proto_docs/google/longrunning/operations.rb +17 -3
  20. data/proto_docs/google/protobuf/any.rb +5 -2
  21. data/proto_docs/google/protobuf/duration.rb +98 -0
  22. data/proto_docs/google/protobuf/timestamp.rb +10 -1
  23. data/proto_docs/google/type/date.rb +14 -11
  24. metadata +21 -11
@@ -60,49 +60,34 @@ module Google
60
60
  parent_config = while namespace.any?
61
61
  parent_name = namespace.join "::"
62
62
  parent_const = const_get parent_name
63
- break parent_const.configure if parent_const&.respond_to? :configure
63
+ break parent_const.configure if parent_const.respond_to? :configure
64
64
  namespace.pop
65
65
  end
66
66
  default_config = Client::Configuration.new parent_config
67
67
 
68
68
  default_config.rpcs.write_user_event.timeout = 600.0
69
69
  default_config.rpcs.write_user_event.retry_policy = {
70
- initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14, 4]
70
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
74
71
  }
75
72
 
76
73
  default_config.rpcs.collect_user_event.timeout = 600.0
77
74
  default_config.rpcs.collect_user_event.retry_policy = {
78
- initial_delay: 0.1,
79
- max_delay: 60.0,
80
- multiplier: 1.3,
81
- retry_codes: [14, 4]
75
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
82
76
  }
83
77
 
84
78
  default_config.rpcs.list_user_events.timeout = 600.0
85
79
  default_config.rpcs.list_user_events.retry_policy = {
86
- initial_delay: 0.1,
87
- max_delay: 60.0,
88
- multiplier: 1.3,
89
- retry_codes: [14, 4]
80
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
90
81
  }
91
82
 
92
83
  default_config.rpcs.purge_user_events.timeout = 600.0
93
84
  default_config.rpcs.purge_user_events.retry_policy = {
94
- initial_delay: 0.1,
95
- max_delay: 60.0,
96
- multiplier: 1.3,
97
- retry_codes: [14, 4]
85
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
98
86
  }
99
87
 
100
88
  default_config.rpcs.import_user_events.timeout = 600.0
101
89
  default_config.rpcs.import_user_events.retry_policy = {
102
- initial_delay: 0.1,
103
- max_delay: 60.0,
104
- multiplier: 1.3,
105
- retry_codes: [14, 4]
90
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
106
91
  }
107
92
 
108
93
  default_config
@@ -166,8 +151,14 @@ module Google
166
151
 
167
152
  # Create credentials
168
153
  credentials = @config.credentials
169
- credentials ||= Credentials.default scope: @config.scope
170
- if credentials.is_a?(String) || credentials.is_a?(Hash)
154
+ # Use self-signed JWT if the scope and endpoint are unchanged from default,
155
+ # but only if the default endpoint does not have a region prefix.
156
+ enable_self_signed_jwt = @config.scope == Client.configure.scope &&
157
+ @config.endpoint == Client.configure.endpoint &&
158
+ !@config.endpoint.split(".").first.include?("-")
159
+ credentials ||= Credentials.default scope: @config.scope,
160
+ enable_self_signed_jwt: enable_self_signed_jwt
161
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
171
162
  credentials = Credentials.new credentials, scope: @config.scope
172
163
  end
173
164
  @quota_project_id = @config.quota_project
@@ -216,7 +207,7 @@ module Google
216
207
  #
217
208
  # @param parent [::String]
218
209
  # Required. The parent eventStore resource name, such as
219
- # "projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store".
210
+ # `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
220
211
  # @param user_event [::Google::Cloud::RecommendationEngine::V1beta1::UserEvent, ::Hash]
221
212
  # Required. User event to write.
222
213
  #
@@ -289,7 +280,7 @@ module Google
289
280
  #
290
281
  # @param parent [::String]
291
282
  # Required. The parent eventStore name, such as
292
- # "projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store".
283
+ # `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
293
284
  # @param user_event [::String]
294
285
  # Required. URL encoded UserEvent proto.
295
286
  # @param uri [::String]
@@ -367,7 +358,7 @@ module Google
367
358
  #
368
359
  # @param parent [::String]
369
360
  # Required. The parent eventStore resource name, such as
370
- # "projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store".
361
+ # `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
371
362
  # @param page_size [::Integer]
372
363
  # Optional. Maximum number of results to return per page. If zero, the
373
364
  # service will choose a reasonable default.
@@ -477,7 +468,7 @@ module Google
477
468
  # @param parent [::String]
478
469
  # Required. The resource name of the event_store under which the events are
479
470
  # created. The format is
480
- # "projects/$\\{projectId}/locations/global/catalogs/$\\{catalogId}/eventStores/$\\{eventStoreId}"
471
+ # `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
481
472
  # @param filter [::String]
482
473
  # Required. The filter string to specify the events to be deleted. Empty
483
474
  # string filter is not allowed. This filter can also be used with
@@ -574,7 +565,7 @@ module Google
574
565
  #
575
566
  # @param parent [::String]
576
567
  # Required.
577
- # "projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store"
568
+ # `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
578
569
  # @param request_id [::String]
579
570
  # Optional. Unique identifier provided by client, within the ancestor
580
571
  # dataset scope. Ensures idempotency for expensive long running operations.
@@ -725,7 +716,7 @@ module Google
725
716
  config_attr :scope, nil, ::String, ::Array, nil
726
717
  config_attr :lib_name, nil, ::String, nil
727
718
  config_attr :lib_version, nil, ::String, nil
728
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
719
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
729
720
  config_attr :interceptors, nil, ::Array, nil
730
721
  config_attr :timeout, nil, ::Numeric, nil
731
722
  config_attr :metadata, nil, ::Hash, nil
@@ -746,7 +737,7 @@ module Google
746
737
  def rpcs
747
738
  @rpcs ||= begin
748
739
  parent_rpcs = nil
749
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
740
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
750
741
  Rpcs.new parent_rpcs
751
742
  end
752
743
  end
@@ -797,15 +788,15 @@ module Google
797
788
 
798
789
  # @private
799
790
  def initialize parent_rpcs = nil
800
- write_user_event_config = parent_rpcs&.write_user_event if parent_rpcs&.respond_to? :write_user_event
791
+ write_user_event_config = parent_rpcs.write_user_event if parent_rpcs.respond_to? :write_user_event
801
792
  @write_user_event = ::Gapic::Config::Method.new write_user_event_config
802
- collect_user_event_config = parent_rpcs&.collect_user_event if parent_rpcs&.respond_to? :collect_user_event
793
+ collect_user_event_config = parent_rpcs.collect_user_event if parent_rpcs.respond_to? :collect_user_event
803
794
  @collect_user_event = ::Gapic::Config::Method.new collect_user_event_config
804
- list_user_events_config = parent_rpcs&.list_user_events if parent_rpcs&.respond_to? :list_user_events
795
+ list_user_events_config = parent_rpcs.list_user_events if parent_rpcs.respond_to? :list_user_events
805
796
  @list_user_events = ::Gapic::Config::Method.new list_user_events_config
806
- purge_user_events_config = parent_rpcs&.purge_user_events if parent_rpcs&.respond_to? :purge_user_events
797
+ purge_user_events_config = parent_rpcs.purge_user_events if parent_rpcs.respond_to? :purge_user_events
807
798
  @purge_user_events = ::Gapic::Config::Method.new purge_user_events_config
808
- import_user_events_config = parent_rpcs&.import_user_events if parent_rpcs&.respond_to? :import_user_events
799
+ import_user_events_config = parent_rpcs.import_user_events if parent_rpcs.respond_to? :import_user_events
809
800
  @import_user_events = ::Gapic::Config::Method.new import_user_events_config
810
801
 
811
802
  yield self if block_given?
@@ -82,7 +82,7 @@ module Google
82
82
  # Create credentials
83
83
  credentials = @config.credentials
84
84
  credentials ||= Credentials.default scope: @config.scope
85
- if credentials.is_a?(String) || credentials.is_a?(Hash)
85
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
88
  @quota_project_id = @config.quota_project
@@ -103,8 +103,13 @@ module Google
103
103
  # Lists operations that match the specified filter in the request. If the
104
104
  # server doesn't support this method, it returns `UNIMPLEMENTED`.
105
105
  #
106
- # NOTE: the `name` binding below allows API services to override the binding
107
- # to use different resource name schemes, such as `users/*/operations`.
106
+ # NOTE: the `name` binding allows API services to override the binding
107
+ # to use different resource name schemes, such as `users/*/operations`. To
108
+ # override the binding, API services can add a binding such as
109
+ # `"/v1/{name=users/*}/operations"` to their service configuration.
110
+ # For backwards compatibility, the default name includes the operations
111
+ # collection id, however overriding users must ensure the name binding
112
+ # is the parent resource, without the operations collection id.
108
113
  #
109
114
  # @overload list_operations(request, options = nil)
110
115
  # Pass arguments to `list_operations` via a request object, either of type
@@ -122,7 +127,7 @@ module Google
122
127
  # the default parameter values, pass an empty Hash as a request object (see above).
123
128
  #
124
129
  # @param name [::String]
125
- # The name of the operation collection.
130
+ # The name of the operation's parent resource.
126
131
  # @param filter [::String]
127
132
  # The standard list filter.
128
133
  # @param page_size [::Integer]
@@ -390,6 +395,79 @@ module Google
390
395
  raise ::Google::Cloud::Error.from_error(e)
391
396
  end
392
397
 
398
+ ##
399
+ # Waits until the specified long-running operation is done or reaches at most
400
+ # a specified timeout, returning the latest state. If the operation is
401
+ # already done, the latest state is immediately returned. If the timeout
402
+ # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
403
+ # timeout is used. If the server does not support this method, it returns
404
+ # `google.rpc.Code.UNIMPLEMENTED`.
405
+ # Note that this method is on a best-effort basis. It may return the latest
406
+ # state before the specified timeout (including immediately), meaning even an
407
+ # immediate response is no guarantee that the operation is done.
408
+ #
409
+ # @overload wait_operation(request, options = nil)
410
+ # Pass arguments to `wait_operation` via a request object, either of type
411
+ # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash.
412
+ #
413
+ # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash]
414
+ # A request object representing the call parameters. Required. To specify no
415
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
416
+ # @param options [::Gapic::CallOptions, ::Hash]
417
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
418
+ #
419
+ # @overload wait_operation(name: nil, timeout: nil)
420
+ # Pass arguments to `wait_operation` via keyword arguments. Note that at
421
+ # least one keyword argument is required. To specify no parameters, or to keep all
422
+ # the default parameter values, pass an empty Hash as a request object (see above).
423
+ #
424
+ # @param name [::String]
425
+ # The name of the operation resource to wait on.
426
+ # @param timeout [::Google::Protobuf::Duration, ::Hash]
427
+ # The maximum duration to wait before timing out. If left blank, the wait
428
+ # will be at most the time permitted by the underlying HTTP/RPC protocol.
429
+ # If RPC context deadline is also specified, the shorter one will be used.
430
+ #
431
+ # @yield [response, operation] Access the result along with the RPC operation
432
+ # @yieldparam response [::Gapic::Operation]
433
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
434
+ #
435
+ # @return [::Gapic::Operation]
436
+ #
437
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
438
+ #
439
+ def wait_operation request, options = nil
440
+ raise ::ArgumentError, "request must be provided" if request.nil?
441
+
442
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest
443
+
444
+ # Converts hash and nil to an options object
445
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
446
+
447
+ # Customize the options with defaults
448
+ metadata = @config.rpcs.wait_operation.metadata.to_h
449
+
450
+ # Set x-goog-api-client and x-goog-user-project headers
451
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
452
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
453
+ gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
454
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
455
+
456
+ options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
+ metadata: metadata,
458
+ retry_policy: @config.rpcs.wait_operation.retry_policy
459
+ options.apply_defaults metadata: @config.metadata,
460
+ retry_policy: @config.retry_policy
461
+
462
+ @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
463
+ response = ::Gapic::Operation.new response, @operations_client, options: options
464
+ yield response, operation if block_given?
465
+ return response
466
+ end
467
+ rescue ::GRPC::BadStatus => e
468
+ raise ::Google::Cloud::Error.from_error(e)
469
+ end
470
+
393
471
  ##
394
472
  # Configuration class for the Operations API.
395
473
  #
@@ -482,7 +560,7 @@ module Google
482
560
  config_attr :scope, nil, ::String, ::Array, nil
483
561
  config_attr :lib_name, nil, ::String, nil
484
562
  config_attr :lib_version, nil, ::String, nil
485
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
563
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
486
564
  config_attr :interceptors, nil, ::Array, nil
487
565
  config_attr :timeout, nil, ::Numeric, nil
488
566
  config_attr :metadata, nil, ::Hash, nil
@@ -503,7 +581,7 @@ module Google
503
581
  def rpcs
504
582
  @rpcs ||= begin
505
583
  parent_rpcs = nil
506
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
584
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
507
585
  Rpcs.new parent_rpcs
508
586
  end
509
587
  end
@@ -546,17 +624,24 @@ module Google
546
624
  # @return [::Gapic::Config::Method]
547
625
  #
548
626
  attr_reader :cancel_operation
627
+ ##
628
+ # RPC-specific configuration for `wait_operation`
629
+ # @return [::Gapic::Config::Method]
630
+ #
631
+ attr_reader :wait_operation
549
632
 
550
633
  # @private
551
634
  def initialize parent_rpcs = nil
552
- list_operations_config = parent_rpcs&.list_operations if parent_rpcs&.respond_to? :list_operations
635
+ list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
553
636
  @list_operations = ::Gapic::Config::Method.new list_operations_config
554
- get_operation_config = parent_rpcs&.get_operation if parent_rpcs&.respond_to? :get_operation
637
+ get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
555
638
  @get_operation = ::Gapic::Config::Method.new get_operation_config
556
- delete_operation_config = parent_rpcs&.delete_operation if parent_rpcs&.respond_to? :delete_operation
639
+ delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation
557
640
  @delete_operation = ::Gapic::Config::Method.new delete_operation_config
558
- cancel_operation_config = parent_rpcs&.cancel_operation if parent_rpcs&.respond_to? :cancel_operation
641
+ cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
559
642
  @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
643
+ wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation
644
+ @wait_operation = ::Gapic::Config::Method.new wait_operation_config
560
645
 
561
646
  yield self if block_given?
562
647
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module RecommendationEngine
23
23
  module V1beta1
24
- VERSION = "0.1.1"
24
+ VERSION = "0.3.3"
25
25
  end
26
26
  end
27
27
  end
@@ -54,6 +54,18 @@ module Google
54
54
  # This indicates that the field may be set once in a request to create a
55
55
  # resource, but may not be changed thereafter.
56
56
  IMMUTABLE = 5
57
+
58
+ # Denotes that a (repeated) field is an unordered list.
59
+ # This indicates that the service may provide the elements of the list
60
+ # in any arbitrary order, rather than the order the user originally
61
+ # provided. Additionally, the list's order may or may not be stable.
62
+ UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
57
69
  end
58
70
  end
59
71
  end
@@ -43,7 +43,8 @@ module Google
43
43
  #
44
44
  # service ResourceService {
45
45
  # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
46
- # rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
46
+ # rpc UpdateResource(google.api.HttpBody) returns
47
+ # (google.protobuf.Empty);
47
48
  # }
48
49
  #
49
50
  # Example with streaming methods:
@@ -59,10 +60,10 @@ module Google
59
60
  # handled, all other features will continue to work unchanged.
60
61
  # @!attribute [rw] content_type
61
62
  # @return [::String]
62
- # The HTTP Content-Type string representing the content type of the body.
63
+ # The HTTP Content-Type header value specifying the content type of the body.
63
64
  # @!attribute [rw] data
64
65
  # @return [::String]
65
- # HTTP body binary data.
66
+ # The HTTP request/response body as raw binary.
66
67
  # @!attribute [rw] extensions
67
68
  # @return [::Array<::Google::Protobuf::Any>]
68
69
  # Application specific response metadata. Must be set in the first response
@@ -25,7 +25,7 @@ module Google
25
25
  # @!attribute [rw] parent
26
26
  # @return [::String]
27
27
  # Required. The parent catalog resource name, such as
28
- # "projects/*/locations/global/catalogs/default_catalog".
28
+ # `projects/*/locations/global/catalogs/default_catalog`.
29
29
  # @!attribute [rw] catalog_item
30
30
  # @return [::Google::Cloud::RecommendationEngine::V1beta1::CatalogItem]
31
31
  # Required. The catalog item to create.
@@ -38,7 +38,7 @@ module Google
38
38
  # @!attribute [rw] name
39
39
  # @return [::String]
40
40
  # Required. Full resource name of catalog item, such as
41
- # "projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id".
41
+ # `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
42
42
  class GetCatalogItemRequest
43
43
  include ::Google::Protobuf::MessageExts
44
44
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -48,7 +48,7 @@ module Google
48
48
  # @!attribute [rw] parent
49
49
  # @return [::String]
50
50
  # Required. The parent catalog resource name, such as
51
- # "projects/*/locations/global/catalogs/default_catalog".
51
+ # `projects/*/locations/global/catalogs/default_catalog`.
52
52
  # @!attribute [rw] page_size
53
53
  # @return [::Integer]
54
54
  # Optional. Maximum number of results to return per page. If zero, the
@@ -99,7 +99,7 @@ module Google
99
99
  # @!attribute [rw] name
100
100
  # @return [::String]
101
101
  # Required. Full resource name of catalog item, such as
102
- # "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
102
+ # `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
103
103
  class DeleteCatalogItemRequest
104
104
  include ::Google::Protobuf::MessageExts
105
105
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -27,8 +27,8 @@ module Google
27
27
  # @return [::Array<::String>]
28
28
  # Required. Google Cloud Storage URIs to input files. URI can be up to
29
29
  # 2000 characters long. URIs can match the full object path (for example,
30
- # gs://bucket/directory/object.json) or a pattern matching one or more
31
- # files, such as gs://bucket/directory/*.json. A request can
30
+ # `gs://bucket/directory/object.json`) or a pattern matching one or more
31
+ # files, such as `gs://bucket/directory/*.json`. A request can
32
32
  # contain at most 100 files, and each file can be up to 2 GB. See
33
33
  # [Importing catalog information](/recommendations-ai/docs/upload-catalog)
34
34
  # for the expected file format and setup instructions.
@@ -71,7 +71,7 @@ module Google
71
71
  # Request message for Import methods.
72
72
  # @!attribute [rw] parent
73
73
  # @return [::String]
74
- # Required. "projects/1234/locations/global/catalogs/default_catalog"
74
+ # Required. `projects/1234/locations/global/catalogs/default_catalog`
75
75
  # @!attribute [rw] request_id
76
76
  # @return [::String]
77
77
  # Optional. Unique identifier provided by client, within the ancestor
@@ -93,7 +93,7 @@ module Google
93
93
  # @!attribute [rw] parent
94
94
  # @return [::String]
95
95
  # Required.
96
- # "projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store"
96
+ # `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
97
97
  # @!attribute [rw] request_id
98
98
  # @return [::String]
99
99
  # Optional. Unique identifier provided by client, within the ancestor
@@ -34,7 +34,7 @@ module Google
34
34
  # @!attribute [rw] parent
35
35
  # @return [::String]
36
36
  # Required. The parent resource path.
37
- # "projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store".
37
+ # `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
38
38
  # @!attribute [rw] prediction_api_key_registration
39
39
  # @return [::Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistration]
40
40
  # Required. The prediction API key registration.
@@ -47,7 +47,7 @@ module Google
47
47
  # @!attribute [rw] parent
48
48
  # @return [::String]
49
49
  # Required. The parent placement resource name such as
50
- # "projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store"
50
+ # `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
51
51
  # @!attribute [rw] page_size
52
52
  # @return [::Integer]
53
53
  # Optional. Maximum number of results to return per page. If unset, the
@@ -77,7 +77,7 @@ module Google
77
77
  # @!attribute [rw] name
78
78
  # @return [::String]
79
79
  # Required. The API key to unregister including full resource path.
80
- # "projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>"
80
+ # `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
81
81
  class DeletePredictionApiKeyRegistrationRequest
82
82
  include ::Google::Protobuf::MessageExts
83
83
  extend ::Google::Protobuf::MessageExts::ClassMethods