google-cloud-retail-v2 0.1.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,7 +60,7 @@ 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
@@ -68,9 +68,9 @@ module Google
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
70
  initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14, 4]
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14, 4]
74
74
  }
75
75
 
76
76
  default_config
@@ -134,7 +134,13 @@ module Google
134
134
 
135
135
  # Create credentials
136
136
  credentials = @config.credentials
137
- credentials ||= Credentials.default scope: @config.scope
137
+ # Use self-signed JWT if the scope and endpoint are unchanged from default,
138
+ # but only if the default endpoint does not have a region prefix.
139
+ enable_self_signed_jwt = @config.scope == Client.configure.scope &&
140
+ @config.endpoint == Client.configure.endpoint &&
141
+ !@config.endpoint.split(".").first.include?("-")
142
+ credentials ||= Credentials.default scope: @config.scope,
143
+ enable_self_signed_jwt: enable_self_signed_jwt
138
144
  if credentials.is_a?(String) || credentials.is_a?(Hash)
139
145
  credentials = Credentials.new credentials, scope: @config.scope
140
146
  end
@@ -416,7 +422,7 @@ module Google
416
422
  config_attr :scope, nil, ::String, ::Array, nil
417
423
  config_attr :lib_name, nil, ::String, nil
418
424
  config_attr :lib_version, nil, ::String, nil
419
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
425
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
420
426
  config_attr :interceptors, nil, ::Array, nil
421
427
  config_attr :timeout, nil, ::Numeric, nil
422
428
  config_attr :metadata, nil, ::Hash, nil
@@ -437,7 +443,7 @@ module Google
437
443
  def rpcs
438
444
  @rpcs ||= begin
439
445
  parent_rpcs = nil
440
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
446
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
441
447
  Rpcs.new parent_rpcs
442
448
  end
443
449
  end
@@ -449,7 +455,7 @@ module Google
449
455
  # Each configuration object is of type `Gapic::Config::Method` and includes
450
456
  # the following configuration fields:
451
457
  #
452
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
458
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
453
459
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
454
460
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
455
461
  # include the following keys:
@@ -473,9 +479,9 @@ module Google
473
479
 
474
480
  # @private
475
481
  def initialize parent_rpcs = nil
476
- list_catalogs_config = parent_rpcs&.list_catalogs if parent_rpcs&.respond_to? :list_catalogs
482
+ list_catalogs_config = parent_rpcs.list_catalogs if parent_rpcs.respond_to? :list_catalogs
477
483
  @list_catalogs = ::Gapic::Config::Method.new list_catalogs_config
478
- update_catalog_config = parent_rpcs&.update_catalog if parent_rpcs&.respond_to? :update_catalog
484
+ update_catalog_config = parent_rpcs.update_catalog if parent_rpcs.respond_to? :update_catalog
479
485
  @update_catalog = ::Gapic::Config::Method.new update_catalog_config
480
486
 
481
487
  yield self if block_given?
@@ -27,7 +27,7 @@ module Google
27
27
  # Service for managing catalog configuration.
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
@@ -60,7 +60,7 @@ 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
@@ -68,9 +68,9 @@ module Google
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
70
  initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14, 4]
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14, 4]
74
74
  }
75
75
 
76
76
  default_config
@@ -134,7 +134,13 @@ module Google
134
134
 
135
135
  # Create credentials
136
136
  credentials = @config.credentials
137
- credentials ||= Credentials.default scope: @config.scope
137
+ # Use self-signed JWT if the scope and endpoint are unchanged from default,
138
+ # but only if the default endpoint does not have a region prefix.
139
+ enable_self_signed_jwt = @config.scope == Client.configure.scope &&
140
+ @config.endpoint == Client.configure.endpoint &&
141
+ !@config.endpoint.split(".").first.include?("-")
142
+ credentials ||= Credentials.default scope: @config.scope,
143
+ enable_self_signed_jwt: enable_self_signed_jwt
138
144
  if credentials.is_a?(String) || credentials.is_a?(Hash)
139
145
  credentials = Credentials.new credentials, scope: @config.scope
140
146
  end
@@ -405,7 +411,7 @@ module Google
405
411
  config_attr :scope, nil, ::String, ::Array, nil
406
412
  config_attr :lib_name, nil, ::String, nil
407
413
  config_attr :lib_version, nil, ::String, nil
408
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
414
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
409
415
  config_attr :interceptors, nil, ::Array, nil
410
416
  config_attr :timeout, nil, ::Numeric, nil
411
417
  config_attr :metadata, nil, ::Hash, nil
@@ -426,7 +432,7 @@ module Google
426
432
  def rpcs
427
433
  @rpcs ||= begin
428
434
  parent_rpcs = nil
429
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
435
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
430
436
  Rpcs.new parent_rpcs
431
437
  end
432
438
  end
@@ -438,7 +444,7 @@ module Google
438
444
  # Each configuration object is of type `Gapic::Config::Method` and includes
439
445
  # the following configuration fields:
440
446
  #
441
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
447
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
442
448
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
443
449
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
444
450
  # include the following keys:
@@ -457,7 +463,7 @@ module Google
457
463
 
458
464
  # @private
459
465
  def initialize parent_rpcs = nil
460
- predict_config = parent_rpcs&.predict if parent_rpcs&.respond_to? :predict
466
+ predict_config = parent_rpcs.predict if parent_rpcs.respond_to? :predict
461
467
  @predict = ::Gapic::Config::Method.new predict_config
462
468
 
463
469
  yield self if block_given?
@@ -27,7 +27,7 @@ module Google
27
27
  # Service for making recommendation prediction.
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
@@ -61,7 +61,7 @@ module Google
61
61
  parent_config = while namespace.any?
62
62
  parent_name = namespace.join "::"
63
63
  parent_const = const_get parent_name
64
- break parent_const.configure if parent_const&.respond_to? :configure
64
+ break parent_const.configure if parent_const.respond_to? :configure
65
65
  namespace.pop
66
66
  end
67
67
  default_config = Client::Configuration.new parent_config
@@ -69,9 +69,9 @@ module Google
69
69
  default_config.timeout = 60.0
70
70
  default_config.retry_policy = {
71
71
  initial_delay: 0.1,
72
- max_delay: 60.0,
73
- multiplier: 1.3,
74
- retry_codes: [14, 4]
72
+ max_delay: 60.0,
73
+ multiplier: 1.3,
74
+ retry_codes: [14, 4]
75
75
  }
76
76
 
77
77
  default_config
@@ -135,7 +135,13 @@ module Google
135
135
 
136
136
  # Create credentials
137
137
  credentials = @config.credentials
138
- credentials ||= Credentials.default scope: @config.scope
138
+ # Use self-signed JWT if the scope and endpoint are unchanged from default,
139
+ # but only if the default endpoint does not have a region prefix.
140
+ enable_self_signed_jwt = @config.scope == Client.configure.scope &&
141
+ @config.endpoint == Client.configure.endpoint &&
142
+ !@config.endpoint.split(".").first.include?("-")
143
+ credentials ||= Credentials.default scope: @config.scope,
144
+ enable_self_signed_jwt: enable_self_signed_jwt
139
145
  if credentials.is_a?(String) || credentials.is_a?(Hash)
140
146
  credentials = Credentials.new credentials, scope: @config.scope
141
147
  end
@@ -185,7 +191,7 @@ module Google
185
191
  #
186
192
  # @param parent [::String]
187
193
  # Required. The parent catalog resource name, such as
188
- # "projects/*/locations/global/catalogs/default_catalog/branches/default_branch".
194
+ # `projects/*/locations/global/catalogs/default_catalog/branches/default_branch`.
189
195
  # @param product [::Google::Cloud::Retail::V2::Product, ::Hash]
190
196
  # Required. The {::Google::Cloud::Retail::V2::Product Product} to create.
191
197
  # @param product_id [::String]
@@ -271,7 +277,7 @@ module Google
271
277
  # @param name [::String]
272
278
  # Required. Full resource name of {::Google::Cloud::Retail::V2::Product Product},
273
279
  # such as
274
- # "projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id".
280
+ # `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`.
275
281
  #
276
282
  # If the caller does not have permission to access the
277
283
  # {::Google::Cloud::Retail::V2::Product Product}, regardless of whether or not it
@@ -427,7 +433,7 @@ module Google
427
433
  # @param name [::String]
428
434
  # Required. Full resource name of {::Google::Cloud::Retail::V2::Product Product},
429
435
  # such as
430
- # "projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id".
436
+ # `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`.
431
437
  #
432
438
  # If the caller does not have permission to delete the
433
439
  # {::Google::Cloud::Retail::V2::Product Product}, regardless of whether or not it
@@ -507,7 +513,7 @@ module Google
507
513
  #
508
514
  # @param parent [::String]
509
515
  # Required.
510
- # "projects/1234/locations/global/catalogs/default_catalog/branches/default_branch"
516
+ # `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch`
511
517
  #
512
518
  # If no updateMask is specified, requires products.create permission.
513
519
  # If updateMask is specified, requires products.update permission.
@@ -657,7 +663,7 @@ module Google
657
663
  config_attr :scope, nil, ::String, ::Array, nil
658
664
  config_attr :lib_name, nil, ::String, nil
659
665
  config_attr :lib_version, nil, ::String, nil
660
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
666
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
661
667
  config_attr :interceptors, nil, ::Array, nil
662
668
  config_attr :timeout, nil, ::Numeric, nil
663
669
  config_attr :metadata, nil, ::Hash, nil
@@ -678,7 +684,7 @@ module Google
678
684
  def rpcs
679
685
  @rpcs ||= begin
680
686
  parent_rpcs = nil
681
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
687
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
682
688
  Rpcs.new parent_rpcs
683
689
  end
684
690
  end
@@ -690,7 +696,7 @@ module Google
690
696
  # Each configuration object is of type `Gapic::Config::Method` and includes
691
697
  # the following configuration fields:
692
698
  #
693
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
699
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
694
700
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
695
701
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
696
702
  # include the following keys:
@@ -729,15 +735,15 @@ module Google
729
735
 
730
736
  # @private
731
737
  def initialize parent_rpcs = nil
732
- create_product_config = parent_rpcs&.create_product if parent_rpcs&.respond_to? :create_product
738
+ create_product_config = parent_rpcs.create_product if parent_rpcs.respond_to? :create_product
733
739
  @create_product = ::Gapic::Config::Method.new create_product_config
734
- get_product_config = parent_rpcs&.get_product if parent_rpcs&.respond_to? :get_product
740
+ get_product_config = parent_rpcs.get_product if parent_rpcs.respond_to? :get_product
735
741
  @get_product = ::Gapic::Config::Method.new get_product_config
736
- update_product_config = parent_rpcs&.update_product if parent_rpcs&.respond_to? :update_product
742
+ update_product_config = parent_rpcs.update_product if parent_rpcs.respond_to? :update_product
737
743
  @update_product = ::Gapic::Config::Method.new update_product_config
738
- delete_product_config = parent_rpcs&.delete_product if parent_rpcs&.respond_to? :delete_product
744
+ delete_product_config = parent_rpcs.delete_product if parent_rpcs.respond_to? :delete_product
739
745
  @delete_product = ::Gapic::Config::Method.new delete_product_config
740
- import_products_config = parent_rpcs&.import_products if parent_rpcs&.respond_to? :import_products
746
+ import_products_config = parent_rpcs.import_products if parent_rpcs.respond_to? :import_products
741
747
  @import_products = ::Gapic::Config::Method.new import_products_config
742
748
 
743
749
  yield self if block_given?
@@ -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 for the specified long-running operation until it is done or reaches
400
+ # at most a specified timeout, returning the latest state. If the operation
401
+ # is 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::Retail::V2::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
@@ -515,7 +593,7 @@ module Google
515
593
  # Each configuration object is of type `Gapic::Config::Method` and includes
516
594
  # the following configuration fields:
517
595
  #
518
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
596
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
519
597
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
520
598
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
521
599
  # include the following keys:
@@ -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
@@ -28,7 +28,7 @@ module Google
28
28
  # of the customer's website.
29
29
  class Service
30
30
 
31
- include GRPC::GenericService
31
+ include ::GRPC::GenericService
32
32
 
33
33
  self.marshal_class_method = :encode
34
34
  self.unmarshal_class_method = :decode