google-cloud-discovery_engine-v1beta 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +53 -1
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +53 -1
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +1 -3
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +1 -3
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +24 -19
- data/lib/google/cloud/discoveryengine/v1beta/completion_service_pb.rb +24 -13
- data/lib/google/cloud/discoveryengine/v1beta/document_pb.rb +25 -20
- data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +25 -25
- data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +29 -72
- data/lib/google/cloud/discoveryengine/v1beta/purge_config_pb.rb +25 -16
- data/lib/google/cloud/discoveryengine/v1beta/recommendation_service_pb.rb +27 -21
- data/lib/google/cloud/discoveryengine/v1beta/schema_pb.rb +25 -8
- data/lib/google/cloud/discoveryengine/v1beta/schema_service_pb.rb +26 -37
- data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +27 -107
- data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +27 -62
- data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +25 -11
- data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +54 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +1 -3
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea9a2084ed88a275049148c8787f8234837764f0f6b53ac9cc8c462fb223b26c
|
4
|
+
data.tar.gz: 6f2845da3771d236fcd7d24fae00e54687cdc3da1a226658856f97cf95771285
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29105296472bd0fd819f3d07a824e3bec53db546790e984f6d81fe8a3d42309e3e8155e932a18296b314a038e85baafb340805f1de7dcbecb690c9fad8f2ddde
|
7
|
+
data.tar.gz: f355c46397e73d645e7db3fd3d994f455f9921c1f6af8e01b47335c6bc2dd69f18123b18d50aa870245f336e26bbdca14d9e0a1240e5da662c73df060a0c3af5
|
@@ -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]
|
@@ -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]
|
@@ -725,6 +725,13 @@ module Google
|
|
725
725
|
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/models/[^/]+/?$}, false]
|
726
726
|
]
|
727
727
|
)
|
728
|
+
.with_bindings(
|
729
|
+
uri_method: :get,
|
730
|
+
uri_template: "/v1beta/{name}/operations",
|
731
|
+
matches: [
|
732
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/?$}, false]
|
733
|
+
]
|
734
|
+
)
|
728
735
|
.with_bindings(
|
729
736
|
uri_method: :get,
|
730
737
|
uri_template: "/v1beta/{name}/operations",
|
@@ -809,6 +816,13 @@ module Google
|
|
809
816
|
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/operations/[^/]+/?$}, false]
|
810
817
|
]
|
811
818
|
)
|
819
|
+
.with_bindings(
|
820
|
+
uri_method: :get,
|
821
|
+
uri_template: "/v1beta/{name}",
|
822
|
+
matches: [
|
823
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/operations/[^/]+/?$}, false]
|
824
|
+
]
|
825
|
+
)
|
812
826
|
.with_bindings(
|
813
827
|
uri_method: :get,
|
814
828
|
uri_template: "/v1beta/{name}",
|
@@ -725,6 +725,13 @@ module Google
|
|
725
725
|
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/models/[^/]+/?$}, false]
|
726
726
|
]
|
727
727
|
)
|
728
|
+
.with_bindings(
|
729
|
+
uri_method: :get,
|
730
|
+
uri_template: "/v1beta/{name}/operations",
|
731
|
+
matches: [
|
732
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/?$}, false]
|
733
|
+
]
|
734
|
+
)
|
728
735
|
.with_bindings(
|
729
736
|
uri_method: :get,
|
730
737
|
uri_template: "/v1beta/{name}/operations",
|
@@ -809,6 +816,13 @@ module Google
|
|
809
816
|
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/operations/[^/]+/?$}, false]
|
810
817
|
]
|
811
818
|
)
|
819
|
+
.with_bindings(
|
820
|
+
uri_method: :get,
|
821
|
+
uri_template: "/v1beta/{name}",
|
822
|
+
matches: [
|
823
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/operations/[^/]+/?$}, false]
|
824
|
+
]
|
825
|
+
)
|
812
826
|
.with_bindings(
|
813
827
|
uri_method: :get,
|
814
828
|
uri_template: "/v1beta/{name}",
|
@@ -231,9 +231,7 @@ module Google
|
|
231
231
|
# @param params [::Hash{::String => ::Google::Protobuf::Value, ::Hash}]
|
232
232
|
# Additional search parameters.
|
233
233
|
#
|
234
|
-
# For
|
235
|
-
# [IndustryVertical.SITE_SEARCH][google.cloud.discoveryengine.v1beta.IndustryVertical.SITE_SEARCH]
|
236
|
-
# vertical, supported values are:
|
234
|
+
# For public website search only, supported values are:
|
237
235
|
#
|
238
236
|
# * `user_country_code`: string. Default empty. If set to non-empty, results
|
239
237
|
# are restricted or boosted based on the location provided.
|
@@ -222,9 +222,7 @@ module Google
|
|
222
222
|
# @param params [::Hash{::String => ::Google::Protobuf::Value, ::Hash}]
|
223
223
|
# Additional search parameters.
|
224
224
|
#
|
225
|
-
# For
|
226
|
-
# [IndustryVertical.SITE_SEARCH][google.cloud.discoveryengine.v1beta.IndustryVertical.SITE_SEARCH]
|
227
|
-
# vertical, supported values are:
|
225
|
+
# For public website search only, supported values are:
|
228
226
|
#
|
229
227
|
# * `user_country_code`: string. Default empty. If set to non-empty, results
|
230
228
|
# are restricted or boosted based on the location provided.
|
@@ -725,6 +725,13 @@ module Google
|
|
725
725
|
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/models/[^/]+/?$}, false]
|
726
726
|
]
|
727
727
|
)
|
728
|
+
.with_bindings(
|
729
|
+
uri_method: :get,
|
730
|
+
uri_template: "/v1beta/{name}/operations",
|
731
|
+
matches: [
|
732
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/?$}, false]
|
733
|
+
]
|
734
|
+
)
|
728
735
|
.with_bindings(
|
729
736
|
uri_method: :get,
|
730
737
|
uri_template: "/v1beta/{name}/operations",
|
@@ -809,6 +816,13 @@ module Google
|
|
809
816
|
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/operations/[^/]+/?$}, false]
|
810
817
|
]
|
811
818
|
)
|
819
|
+
.with_bindings(
|
820
|
+
uri_method: :get,
|
821
|
+
uri_template: "/v1beta/{name}",
|
822
|
+
matches: [
|
823
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/operations/[^/]+/?$}, false]
|
824
|
+
]
|
825
|
+
)
|
812
826
|
.with_bindings(
|
813
827
|
uri_method: :get,
|
814
828
|
uri_template: "/v1beta/{name}",
|
@@ -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/common.proto
|
3
4
|
|
@@ -5,27 +6,31 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'google/api/resource_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
9
|
+
|
10
|
+
descriptor_data = "\n0google/cloud/discoveryengine/v1beta/common.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x19google/api/resource.proto\"x\n\x08Interval\x12\x11\n\x07minimum\x18\x01 \x01(\x01H\x00\x12\x1b\n\x11\x65xclusive_minimum\x18\x02 \x01(\x01H\x00\x12\x11\n\x07maximum\x18\x03 \x01(\x01H\x01\x12\x1b\n\x11\x65xclusive_maximum\x18\x04 \x01(\x01H\x01\x42\x05\n\x03minB\x05\n\x03max\"0\n\x0f\x43ustomAttribute\x12\x0c\n\x04text\x18\x01 \x03(\t\x12\x0f\n\x07numbers\x18\x02 \x03(\x01\"/\n\x08UserInfo\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12\x12\n\nuser_agent\x18\x02 \x01(\tB\xd2\x07\n\'com.google.cloud.discoveryengine.v1betaB\x0b\x43ommonProtoP\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::V1beta\xea\x41\xe6\x01\n%discoveryengine.googleapis.com/Branch\x12Qprojects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}\x12jprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}\xea\x41\xc5\x01\n(discoveryengine.googleapis.com/DataStore\x12?projects/{project}/locations/{location}/dataStores/{data_store}\x12Xprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}\xea\x41\x89\x02\n,discoveryengine.googleapis.com/ServingConfig\x12_projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}\x12xprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError => e
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
]
|
26
|
+
imports.each do |type_name, expected_filename|
|
27
|
+
import_file = pool.lookup(type_name).file_descriptor
|
28
|
+
if import_file.name != expected_filename
|
29
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
27
30
|
end
|
28
31
|
end
|
32
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
33
|
+
warn "This will become an error in the next major version."
|
29
34
|
end
|
30
35
|
|
31
36
|
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/completion_service.proto
|
3
4
|
|
@@ -8,21 +9,31 @@ require 'google/api/client_pb'
|
|
8
9
|
require 'google/api/field_behavior_pb'
|
9
10
|
require 'google/api/resource_pb'
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
12
|
+
|
13
|
+
descriptor_data = "\n<google/cloud/discoveryengine/v1beta/completion_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/resource.proto\"\x9d\x01\n\x14\x43ompleteQueryRequest\x12\x44\n\ndata_store\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0bquery_model\x18\x03 \x01(\t\x12\x16\n\x0euser_pseudo_id\x18\x04 \x01(\t\"\xa5\x01\n\x15\x43ompleteQueryResponse\x12\x65\n\x11query_suggestions\x18\x01 \x03(\x0b\x32J.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion\x1a%\n\x0fQuerySuggestion\x12\x12\n\nsuggestion\x18\x01 \x01(\t2\x9a\x03\n\x11\x43ompletionService\x12\xb0\x02\n\rCompleteQuery\x12\x39.google.cloud.discoveryengine.v1beta.CompleteQueryRequest\x1a:.google.cloud.discoveryengine.v1beta.CompleteQueryResponse\"\xa7\x01\x82\xd3\xe4\x93\x02\xa0\x01\x12\x46/v1beta/{data_store=projects/*/locations/*/dataStores/*}:completeQueryZV\x12T/v1beta/{data_store=projects/*/locations/*/collections/*/dataStores/*}:completeQuery\x1aR\xca\x41\x1e\x64iscoveryengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x9d\x02\n\'com.google.cloud.discoveryengine.v1betaB\x16\x43ompletionServiceProtoP\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"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError => e
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
24
33
|
end
|
25
34
|
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
26
37
|
end
|
27
38
|
|
28
39
|
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/document.proto
|
3
4
|
|
@@ -7,28 +8,32 @@ require 'google/api/field_behavior_pb'
|
|
7
8
|
require 'google/api/resource_pb'
|
8
9
|
require 'google/protobuf/struct_pb'
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
11
|
+
|
12
|
+
descriptor_data = "\n2google/cloud/discoveryengine/v1beta/document.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x93\x05\n\x08\x44ocument\x12.\n\x0bstruct_data\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12\x13\n\tjson_data\x18\x05 \x01(\tH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x0f\n\x02id\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x11\n\tschema_id\x18\x03 \x01(\t\x12\x46\n\x07\x63ontent\x18\n \x01(\x0b\x32\x35.google.cloud.discoveryengine.v1beta.Document.Content\x12\x1a\n\x12parent_document_id\x18\x07 \x01(\t\x12\x39\n\x13\x64\x65rived_struct_data\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x03\x1aK\n\x07\x43ontent\x12\x13\n\traw_bytes\x18\x02 \x01(\x0cH\x00\x12\r\n\x03uri\x18\x03 \x01(\tH\x00\x12\x11\n\tmime_type\x18\x01 \x01(\tB\t\n\x07\x63ontent:\x96\x02\xea\x41\x92\x02\n\'discoveryengine.googleapis.com/Document\x12\x66projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}\x12\x7fprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}B\x06\n\x04\x64\x61taB\x94\x02\n\'com.google.cloud.discoveryengine.v1betaB\rDocumentProtoP\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"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError => e
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["google.protobuf.Struct", "google/protobuf/struct.proto"],
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
30
33
|
end
|
31
34
|
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
32
37
|
end
|
33
38
|
|
34
39
|
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/document_service.proto
|
3
4
|
|
@@ -13,33 +14,32 @@ require 'google/cloud/discoveryengine/v1beta/purge_config_pb'
|
|
13
14
|
require 'google/longrunning/operations_pb'
|
14
15
|
require 'google/protobuf/empty_pb'
|
15
16
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
end
|
39
|
-
add_message "google.cloud.discoveryengine.v1beta.DeleteDocumentRequest" do
|
40
|
-
optional :name, :string, 1
|
17
|
+
|
18
|
+
descriptor_data = "\n:google/cloud/discoveryengine/v1beta/document_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/resource.proto\x1a\x32google/cloud/discoveryengine/v1beta/document.proto\x1a\x37google/cloud/discoveryengine/v1beta/import_config.proto\x1a\x36google/cloud/discoveryengine/v1beta/purge_config.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\"S\n\x12GetDocumentRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'discoveryengine.googleapis.com/Document\"|\n\x14ListDocumentsRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Branch\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"r\n\x15ListDocumentsResponse\x12@\n\tdocuments\x18\x01 \x03(\x0b\x32-.google.cloud.discoveryengine.v1beta.Document\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb6\x01\n\x15\x43reateDocumentRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Branch\x12\x44\n\x08\x64ocument\x18\x02 \x01(\x0b\x32-.google.cloud.discoveryengine.v1beta.DocumentB\x03\xe0\x41\x02\x12\x18\n\x0b\x64ocument_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"t\n\x15UpdateDocumentRequest\x12\x44\n\x08\x64ocument\x18\x01 \x01(\x0b\x32-.google.cloud.discoveryengine.v1beta.DocumentB\x03\xe0\x41\x02\x12\x15\n\rallow_missing\x18\x02 \x01(\x08\"V\n\x15\x44\x65leteDocumentRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'discoveryengine.googleapis.com/Document2\x84\x14\n\x0f\x44ocumentService\x12\xac\x02\n\x0bGetDocument\x12\x37.google.cloud.discoveryengine.v1beta.GetDocumentRequest\x1a-.google.cloud.discoveryengine.v1beta.Document\"\xb4\x01\x82\xd3\xe4\x93\x02\xa6\x01\x12I/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/documents/*}ZY\x12W/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}\xda\x41\x04name\x12\xbf\x02\n\rListDocuments\x12\x39.google.cloud.discoveryengine.v1beta.ListDocumentsRequest\x1a:.google.cloud.discoveryengine.v1beta.ListDocumentsResponse\"\xb6\x01\x82\xd3\xe4\x93\x02\xa6\x01\x12I/v1beta/{parent=projects/*/locations/*/dataStores/*/branches/*}/documentsZY\x12W/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents\xda\x41\x06parent\x12\xdd\x02\n\x0e\x43reateDocument\x12:.google.cloud.discoveryengine.v1beta.CreateDocumentRequest\x1a-.google.cloud.discoveryengine.v1beta.Document\"\xdf\x01\x82\xd3\xe4\x93\x02\xba\x01\"I/v1beta/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents:\x08\x64ocumentZc\"W/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents:\x08\x64ocument\xda\x41\x1bparent,document,document_id\x12\xd1\x02\n\x0eUpdateDocument\x12:.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest\x1a-.google.cloud.discoveryengine.v1beta.Document\"\xd3\x01\x82\xd3\xe4\x93\x02\xcc\x01\x32R/v1beta/{document.name=projects/*/locations/*/dataStores/*/branches/*/documents/*}:\x08\x64ocumentZl2`/v1beta/{document.name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}:\x08\x64ocument\x12\x9b\x02\n\x0e\x44\x65leteDocument\x12:.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest\x1a\x16.google.protobuf.Empty\"\xb4\x01\x82\xd3\xe4\x93\x02\xa6\x01*I/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/documents/*}ZY*W/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}\xda\x41\x04name\x12\xae\x03\n\x0fImportDocuments\x12;.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest\x1a\x1d.google.longrunning.Operation\"\xbe\x02\x82\xd3\xe4\x93\x02\xba\x01\"P/v1beta/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents:import:\x01*Zc\"^/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents:import:\x01*\xca\x41z\n;google.cloud.discoveryengine.v1beta.ImportDocumentsResponse\x12;google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata\x12\xa8\x03\n\x0ePurgeDocuments\x12:.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest\x1a\x1d.google.longrunning.Operation\"\xba\x02\x82\xd3\xe4\x93\x02\xb8\x01\"O/v1beta/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents:purge:\x01*Zb\"]/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents:purge:\x01*\xca\x41x\n:google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse\x12:google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata\x1aR\xca\x41\x1e\x64iscoveryengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x9b\x02\n\'com.google.cloud.discoveryengine.v1betaB\x14\x44ocumentServiceProtoP\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"
|
19
|
+
|
20
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
|
+
|
22
|
+
begin
|
23
|
+
pool.add_serialized_file(descriptor_data)
|
24
|
+
rescue TypeError => e
|
25
|
+
# Compatibility code: will be removed in the next major version.
|
26
|
+
require 'google/protobuf/descriptor_pb'
|
27
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
28
|
+
parsed.clear_dependency
|
29
|
+
serialized = parsed.class.encode(parsed)
|
30
|
+
file = pool.add_serialized_file(serialized)
|
31
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
32
|
+
imports = [
|
33
|
+
["google.cloud.discoveryengine.v1beta.Document", "google/cloud/discoveryengine/v1beta/document.proto"],
|
34
|
+
]
|
35
|
+
imports.each do |type_name, expected_filename|
|
36
|
+
import_file = pool.lookup(type_name).file_descriptor
|
37
|
+
if import_file.name != expected_filename
|
38
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
41
39
|
end
|
42
40
|
end
|
41
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
42
|
+
warn "This will become an error in the next major version."
|
43
43
|
end
|
44
44
|
|
45
45
|
module Google
|