google-cloud-discovery_engine-v1beta 0.1.0 → 0.2.1

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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +4 -2
  4. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +4 -2
  5. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/service_stub.rb +1 -1
  6. data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +57 -3
  7. data/lib/google/cloud/discovery_engine/v1beta/document_service/operations.rb +3 -1
  8. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +57 -3
  9. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +21 -5
  10. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/service_stub.rb +7 -7
  11. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +4 -2
  12. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +4 -2
  13. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/service_stub.rb +1 -1
  14. data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +4 -2
  15. data/lib/google/cloud/discovery_engine/v1beta/schema_service/operations.rb +3 -1
  16. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/client.rb +4 -2
  17. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +21 -5
  18. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/service_stub.rb +5 -5
  19. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +5 -5
  20. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +5 -5
  21. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/service_stub.rb +1 -1
  22. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +4 -2
  23. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/operations.rb +3 -1
  24. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +4 -2
  25. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +21 -5
  26. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.rb +3 -3
  27. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  28. data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +24 -19
  29. data/lib/google/cloud/discoveryengine/v1beta/completion_service_pb.rb +24 -13
  30. data/lib/google/cloud/discoveryengine/v1beta/document_pb.rb +25 -20
  31. data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +25 -25
  32. data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +29 -72
  33. data/lib/google/cloud/discoveryengine/v1beta/purge_config_pb.rb +25 -16
  34. data/lib/google/cloud/discoveryengine/v1beta/recommendation_service_pb.rb +27 -21
  35. data/lib/google/cloud/discoveryengine/v1beta/schema_pb.rb +25 -8
  36. data/lib/google/cloud/discoveryengine/v1beta/schema_service_pb.rb +26 -37
  37. data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +27 -107
  38. data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +27 -62
  39. data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +25 -11
  40. data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +54 -0
  41. data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +1 -3
  42. data/proto_docs/google/protobuf/any.rb +7 -4
  43. data/proto_docs/google/protobuf/struct.rb +1 -1
  44. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  45. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e20897488a37aa6936048e82a0ffa2eb1469105e530bdb1b090422c7fb860b05
4
- data.tar.gz: 056d06b05b2795a5986d5c0b30b41802a6fcf6d42002b8636a75c6657c1a545a
3
+ metadata.gz: 52c37c20d3f35641649fd904f5e86cc77bede383266c2a372bfeef0ef1823d3b
4
+ data.tar.gz: 1dd69392eaeb5310d8fefc9c692b9ebba9008ef4780769b1f769d53189ce7135
5
5
  SHA512:
6
- metadata.gz: 8d371eed6c7a80af7c236bfde057e26aa3d45048246761bfd9c8a3f401a19a3649d52647a6031a19025b30680d918d2b56b19d8c7eab291188d4c4ba4c412150
7
- data.tar.gz: a09e1829b4f489e18c5991a04f6b5498d5fdeef96318bffe6238511cc02c34f4a7d1cb89601ad1d90e1d0224636423067c008bb9c9996c5a19f742d02221c70e
6
+ metadata.gz: 9ec111c6292772a3f9bc94156637f37325b753fbf1948a14a46a7bd1488f3de50522da331a6f011e541955f8e90bae34e9b28042430182e941a805c61c007547
7
+ data.tar.gz: 9c768191b8e8cd4d2fda02c4bd44148760b94e23e4927ade7863c131fe8dab0086cf2c386b799014acf3565ae69ccb479528d5e313b0c2b2138ac1bea7131339
data/README.md CHANGED
@@ -40,7 +40,7 @@ response = client.complete_query request
40
40
  View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest)
41
41
  for class and method documentation.
42
42
 
43
- See also the [Product Documentation](https://cloud.google.com/generative-ai-app-builder/docs)
43
+ See also the [Product Documentation](https://cloud.google.com/discovery-engine/media/docs)
44
44
  for general usage information.
45
45
 
46
46
  ## Enabling Logging
@@ -128,7 +128,7 @@ module Google
128
128
  credentials = @config.credentials
129
129
  # Use self-signed JWT if the endpoint is unchanged from default,
130
130
  # but only if the default endpoint does not have a region prefix.
131
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
131
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
132
132
  !@config.endpoint.split(".").first.include?("-")
133
133
  credentials ||= Credentials.default scope: @config.scope,
134
134
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -353,7 +353,9 @@ module Google
353
353
  class Configuration
354
354
  extend ::Gapic::Config
355
355
 
356
- config_attr :endpoint, "discoveryengine.googleapis.com", ::String
356
+ DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
357
+
358
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
357
359
  config_attr :credentials, nil do |value|
358
360
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
359
361
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -124,7 +124,7 @@ module Google
124
124
  credentials = @config.credentials
125
125
  # Use self-signed JWT if the endpoint is unchanged from default,
126
126
  # but only if the default endpoint does not have a region prefix.
127
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
127
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
128
128
  !@config.endpoint.split(".").first.include?("-")
129
129
  credentials ||= Credentials.default scope: @config.scope,
130
130
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -312,7 +312,9 @@ module Google
312
312
  class Configuration
313
313
  extend ::Gapic::Config
314
314
 
315
- config_attr :endpoint, "discoveryengine.googleapis.com", ::String
315
+ DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
316
+
317
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
316
318
  config_attr :credentials, nil do |value|
317
319
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
318
320
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_complete_query_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -135,7 +135,7 @@ module Google
135
135
  credentials = @config.credentials
136
136
  # Use self-signed JWT if the endpoint is unchanged from default,
137
137
  # but only if the default endpoint does not have a region prefix.
138
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
138
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
139
139
  !@config.endpoint.split(".").first.include?("-")
140
140
  credentials ||= Credentials.default scope: @config.scope,
141
141
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -696,7 +696,7 @@ module Google
696
696
  # @param options [::Gapic::CallOptions, ::Hash]
697
697
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
698
698
  #
699
- # @overload import_documents(inline_source: nil, gcs_source: nil, bigquery_source: nil, parent: nil, error_config: nil, reconciliation_mode: nil)
699
+ # @overload import_documents(inline_source: nil, gcs_source: nil, bigquery_source: nil, parent: nil, error_config: nil, reconciliation_mode: nil, auto_generate_ids: nil, id_field: nil)
700
700
  # Pass arguments to `import_documents` via keyword arguments. Note that at
701
701
  # least one keyword argument is required. To specify no parameters, or to keep all
702
702
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -717,6 +717,58 @@ module Google
717
717
  # The mode of reconciliation between existing documents and the documents to
718
718
  # be imported. Defaults to
719
719
  # {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest::ReconciliationMode::INCREMENTAL ReconciliationMode.INCREMENTAL}.
720
+ # @param auto_generate_ids [::Boolean]
721
+ # Whether to automatically generate IDs for the documents if absent.
722
+ #
723
+ # If set to `true`,
724
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Document#id Document.id}s are
725
+ # automatically generated based on the hash of the payload, where IDs may not
726
+ # be consistent during multiple imports. In which case
727
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest::ReconciliationMode::FULL ReconciliationMode.FULL}
728
+ # is highly recommended to avoid duplicate contents. If unset or set to
729
+ # `false`, {::Google::Cloud::DiscoveryEngine::V1beta::Document#id Document.id}s
730
+ # have to be specified using
731
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest#id_field id_field},
732
+ # otherwises, documents without IDs will fail to be imported.
733
+ #
734
+ # Only set this field when using
735
+ # {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource} or
736
+ # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource BigQuerySource}, and
737
+ # when
738
+ # {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource#data_schema GcsSource.data_schema}
739
+ # or
740
+ # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource#data_schema BigQuerySource.data_schema}
741
+ # is `custom`. Otherwise, an INVALID_ARGUMENT error is thrown.
742
+ # @param id_field [::String]
743
+ # The field in the Cloud Storage and BigQuery sources that indicates the
744
+ # unique IDs of the documents.
745
+ #
746
+ # For {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource} it is the
747
+ # key of the JSON field. For instance, `my_id` for JSON `{"my_id":
748
+ # "some_uuid"}`. For
749
+ # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource BigQuerySource} it is
750
+ # the column name of the BigQuery table where the unique ids are stored.
751
+ #
752
+ # The values of the JSON field or the BigQuery column will be used as the
753
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Document#id Document.id}s. The JSON
754
+ # field or the BigQuery column must be of string type, and the values must be
755
+ # set as valid strings conform to
756
+ # [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
757
+ # Otherwise, documents without valid IDs will fail to be imported.
758
+ #
759
+ # Only set this field when using
760
+ # {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource} or
761
+ # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource BigQuerySource}, and
762
+ # when
763
+ # {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource#data_schema GcsSource.data_schema}
764
+ # or
765
+ # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource#data_schema BigQuerySource.data_schema}
766
+ # is `custom`. And only set this field when
767
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest#auto_generate_ids auto_generate_ids}
768
+ # is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
769
+ #
770
+ # If it is unset, a default value `_id` is used when importing from the
771
+ # allowed data sources.
720
772
  #
721
773
  # @yield [response, operation] Access the result along with the RPC operation
722
774
  # @yieldparam response [::Gapic::Operation]
@@ -989,7 +1041,9 @@ module Google
989
1041
  class Configuration
990
1042
  extend ::Gapic::Config
991
1043
 
992
- config_attr :endpoint, "discoveryengine.googleapis.com", ::String
1044
+ DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
1045
+
1046
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
993
1047
  config_attr :credentials, nil do |value|
994
1048
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
995
1049
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -664,7 +664,9 @@ module Google
664
664
  class Configuration
665
665
  extend ::Gapic::Config
666
666
 
667
- config_attr :endpoint, "discoveryengine.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
670
  config_attr :credentials, nil do |value|
669
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -131,7 +131,7 @@ module Google
131
131
  credentials = @config.credentials
132
132
  # Use self-signed JWT if the endpoint is unchanged from default,
133
133
  # but only if the default endpoint does not have a region prefix.
134
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
134
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
135
135
  !@config.endpoint.split(".").first.include?("-")
136
136
  credentials ||= Credentials.default scope: @config.scope,
137
137
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -568,7 +568,7 @@ module Google
568
568
  # @param options [::Gapic::CallOptions, ::Hash]
569
569
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
570
570
  #
571
- # @overload import_documents(inline_source: nil, gcs_source: nil, bigquery_source: nil, parent: nil, error_config: nil, reconciliation_mode: nil)
571
+ # @overload import_documents(inline_source: nil, gcs_source: nil, bigquery_source: nil, parent: nil, error_config: nil, reconciliation_mode: nil, auto_generate_ids: nil, id_field: nil)
572
572
  # Pass arguments to `import_documents` via keyword arguments. Note that at
573
573
  # least one keyword argument is required. To specify no parameters, or to keep all
574
574
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -589,6 +589,58 @@ module Google
589
589
  # The mode of reconciliation between existing documents and the documents to
590
590
  # be imported. Defaults to
591
591
  # {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest::ReconciliationMode::INCREMENTAL ReconciliationMode.INCREMENTAL}.
592
+ # @param auto_generate_ids [::Boolean]
593
+ # Whether to automatically generate IDs for the documents if absent.
594
+ #
595
+ # If set to `true`,
596
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Document#id Document.id}s are
597
+ # automatically generated based on the hash of the payload, where IDs may not
598
+ # be consistent during multiple imports. In which case
599
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest::ReconciliationMode::FULL ReconciliationMode.FULL}
600
+ # is highly recommended to avoid duplicate contents. If unset or set to
601
+ # `false`, {::Google::Cloud::DiscoveryEngine::V1beta::Document#id Document.id}s
602
+ # have to be specified using
603
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest#id_field id_field},
604
+ # otherwises, documents without IDs will fail to be imported.
605
+ #
606
+ # Only set this field when using
607
+ # {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource} or
608
+ # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource BigQuerySource}, and
609
+ # when
610
+ # {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource#data_schema GcsSource.data_schema}
611
+ # or
612
+ # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource#data_schema BigQuerySource.data_schema}
613
+ # is `custom`. Otherwise, an INVALID_ARGUMENT error is thrown.
614
+ # @param id_field [::String]
615
+ # The field in the Cloud Storage and BigQuery sources that indicates the
616
+ # unique IDs of the documents.
617
+ #
618
+ # For {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource} it is the
619
+ # key of the JSON field. For instance, `my_id` for JSON `{"my_id":
620
+ # "some_uuid"}`. For
621
+ # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource BigQuerySource} it is
622
+ # the column name of the BigQuery table where the unique ids are stored.
623
+ #
624
+ # The values of the JSON field or the BigQuery column will be used as the
625
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Document#id Document.id}s. The JSON
626
+ # field or the BigQuery column must be of string type, and the values must be
627
+ # set as valid strings conform to
628
+ # [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
629
+ # Otherwise, documents without valid IDs will fail to be imported.
630
+ #
631
+ # Only set this field when using
632
+ # {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource} or
633
+ # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource BigQuerySource}, and
634
+ # when
635
+ # {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource#data_schema GcsSource.data_schema}
636
+ # or
637
+ # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource#data_schema BigQuerySource.data_schema}
638
+ # is `custom`. And only set this field when
639
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest#auto_generate_ids auto_generate_ids}
640
+ # is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
641
+ #
642
+ # If it is unset, a default value `_id` is used when importing from the
643
+ # allowed data sources.
592
644
  # @yield [result, operation] Access the result along with the TransportOperation object
593
645
  # @yieldparam result [::Gapic::Operation]
594
646
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -792,7 +844,9 @@ module Google
792
844
  class Configuration
793
845
  extend ::Gapic::Config
794
846
 
795
- config_attr :endpoint, "discoveryengine.googleapis.com", ::String
847
+ DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
848
+
849
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
796
850
  config_attr :credentials, nil do |value|
797
851
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
798
852
  allowed.any? { |klass| klass === value }
@@ -446,7 +446,9 @@ module Google
446
446
  class Configuration
447
447
  extend ::Gapic::Config
448
448
 
449
- config_attr :endpoint, "discoveryengine.googleapis.com", ::String
449
+ DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
450
+
451
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
452
  config_attr :credentials, nil do |value|
451
453
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
454
  allowed.any? { |klass| klass === value }
@@ -567,7 +569,7 @@ module Google
567
569
 
568
570
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
571
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
572
+ query_string_params.to_h { |p| p.split "=", 2 }
571
573
  else
572
574
  {}
573
575
  end
@@ -605,7 +607,7 @@ module Google
605
607
 
606
608
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
609
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
610
+ query_string_params.to_h { |p| p.split "=", 2 }
609
611
  else
610
612
  {}
611
613
  end
@@ -643,7 +645,7 @@ module Google
643
645
 
644
646
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
647
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
648
+ query_string_params.to_h { |p| p.split "=", 2 }
647
649
  else
648
650
  {}
649
651
  end
@@ -681,7 +683,7 @@ module Google
681
683
 
682
684
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
685
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
686
+ query_string_params.to_h { |p| p.split "=", 2 }
685
687
  else
686
688
  {}
687
689
  end
@@ -725,6 +727,13 @@ module Google
725
727
  ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/models/[^/]+/?$}, false]
726
728
  ]
727
729
  )
730
+ .with_bindings(
731
+ uri_method: :get,
732
+ uri_template: "/v1beta/{name}/operations",
733
+ matches: [
734
+ ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/?$}, false]
735
+ ]
736
+ )
728
737
  .with_bindings(
729
738
  uri_method: :get,
730
739
  uri_template: "/v1beta/{name}/operations",
@@ -809,6 +818,13 @@ module Google
809
818
  ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/operations/[^/]+/?$}, false]
810
819
  ]
811
820
  )
821
+ .with_bindings(
822
+ uri_method: :get,
823
+ uri_template: "/v1beta/{name}",
824
+ matches: [
825
+ ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/operations/[^/]+/?$}, false]
826
+ ]
827
+ )
812
828
  .with_bindings(
813
829
  uri_method: :get,
814
830
  uri_template: "/v1beta/{name}",
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_get_document_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_list_documents_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_create_document_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_update_document_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_document_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_import_documents_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_purge_documents_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -128,7 +128,7 @@ module Google
128
128
  credentials = @config.credentials
129
129
  # Use self-signed JWT if the endpoint is unchanged from default,
130
130
  # but only if the default endpoint does not have a region prefix.
131
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
131
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
132
132
  !@config.endpoint.split(".").first.include?("-")
133
133
  credentials ||= Credentials.default scope: @config.scope,
134
134
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -410,7 +410,9 @@ module Google
410
410
  class Configuration
411
411
  extend ::Gapic::Config
412
412
 
413
- config_attr :endpoint, "discoveryengine.googleapis.com", ::String
413
+ DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
414
+
415
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
414
416
  config_attr :credentials, nil do |value|
415
417
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
416
418
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -124,7 +124,7 @@ module Google
124
124
  credentials = @config.credentials
125
125
  # Use self-signed JWT if the endpoint is unchanged from default,
126
126
  # but only if the default endpoint does not have a region prefix.
127
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
127
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
128
128
  !@config.endpoint.split(".").first.include?("-")
129
129
  credentials ||= Credentials.default scope: @config.scope,
130
130
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -369,7 +369,9 @@ module Google
369
369
  class Configuration
370
370
  extend ::Gapic::Config
371
371
 
372
- config_attr :endpoint, "discoveryengine.googleapis.com", ::String
372
+ DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
373
+
374
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
373
375
  config_attr :credentials, nil do |value|
374
376
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
375
377
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_recommend_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -128,7 +128,7 @@ module Google
128
128
  credentials = @config.credentials
129
129
  # Use self-signed JWT if the endpoint is unchanged from default,
130
130
  # but only if the default endpoint does not have a region prefix.
131
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
131
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
132
132
  !@config.endpoint.split(".").first.include?("-")
133
133
  credentials ||= Credentials.default scope: @config.scope,
134
134
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -736,7 +736,9 @@ module Google
736
736
  class Configuration
737
737
  extend ::Gapic::Config
738
738
 
739
- config_attr :endpoint, "discoveryengine.googleapis.com", ::String
739
+ DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
740
+
741
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
740
742
  config_attr :credentials, nil do |value|
741
743
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
742
744
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -664,7 +664,9 @@ module Google
664
664
  class Configuration
665
665
  extend ::Gapic::Config
666
666
 
667
- config_attr :endpoint, "discoveryengine.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
670
  config_attr :credentials, nil do |value|
669
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -124,7 +124,7 @@ module Google
124
124
  credentials = @config.credentials
125
125
  # Use self-signed JWT if the endpoint is unchanged from default,
126
126
  # but only if the default endpoint does not have a region prefix.
127
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
127
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
128
128
  !@config.endpoint.split(".").first.include?("-")
129
129
  credentials ||= Credentials.default scope: @config.scope,
130
130
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -578,7 +578,9 @@ module Google
578
578
  class Configuration
579
579
  extend ::Gapic::Config
580
580
 
581
- config_attr :endpoint, "discoveryengine.googleapis.com", ::String
581
+ DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
582
+
583
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
582
584
  config_attr :credentials, nil do |value|
583
585
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
584
586
  allowed.any? { |klass| klass === value }
@@ -446,7 +446,9 @@ module Google
446
446
  class Configuration
447
447
  extend ::Gapic::Config
448
448
 
449
- config_attr :endpoint, "discoveryengine.googleapis.com", ::String
449
+ DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
450
+
451
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
452
  config_attr :credentials, nil do |value|
451
453
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
454
  allowed.any? { |klass| klass === value }
@@ -567,7 +569,7 @@ module Google
567
569
 
568
570
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
571
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
572
+ query_string_params.to_h { |p| p.split "=", 2 }
571
573
  else
572
574
  {}
573
575
  end
@@ -605,7 +607,7 @@ module Google
605
607
 
606
608
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
609
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
610
+ query_string_params.to_h { |p| p.split "=", 2 }
609
611
  else
610
612
  {}
611
613
  end
@@ -643,7 +645,7 @@ module Google
643
645
 
644
646
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
647
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
648
+ query_string_params.to_h { |p| p.split "=", 2 }
647
649
  else
648
650
  {}
649
651
  end
@@ -681,7 +683,7 @@ module Google
681
683
 
682
684
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
685
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
686
+ query_string_params.to_h { |p| p.split "=", 2 }
685
687
  else
686
688
  {}
687
689
  end
@@ -725,6 +727,13 @@ module Google
725
727
  ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/models/[^/]+/?$}, false]
726
728
  ]
727
729
  )
730
+ .with_bindings(
731
+ uri_method: :get,
732
+ uri_template: "/v1beta/{name}/operations",
733
+ matches: [
734
+ ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/?$}, false]
735
+ ]
736
+ )
728
737
  .with_bindings(
729
738
  uri_method: :get,
730
739
  uri_template: "/v1beta/{name}/operations",
@@ -809,6 +818,13 @@ module Google
809
818
  ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/operations/[^/]+/?$}, false]
810
819
  ]
811
820
  )
821
+ .with_bindings(
822
+ uri_method: :get,
823
+ uri_template: "/v1beta/{name}",
824
+ matches: [
825
+ ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/operations/[^/]+/?$}, false]
826
+ ]
827
+ )
812
828
  .with_bindings(
813
829
  uri_method: :get,
814
830
  uri_template: "/v1beta/{name}",
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_get_schema_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_list_schemas_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_create_schema_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_update_schema_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_schema_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end