google-cloud-recommendation_engine-v1beta1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +203 -0
- data/README.md +75 -0
- data/lib/google-cloud-recommendation_engine-v1beta1.rb +21 -0
- data/lib/google/cloud/recommendation_engine/v1beta1.rb +38 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service.rb +50 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/client.rb +831 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/credentials.rb +51 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/operations.rb +570 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/paths.rb +73 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry.rb +53 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/client.rb +554 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/credentials.rb +51 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/paths.rb +77 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service.rb +49 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/client.rb +468 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/credentials.rb +51 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/paths.rb +56 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service.rb +50 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/client.rb +820 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/credentials.rb +51 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/operations.rb +570 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/paths.rb +54 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/version.rb +28 -0
- data/lib/google/cloud/recommendationengine/v1beta1/catalog_pb.rb +77 -0
- data/lib/google/cloud/recommendationengine/v1beta1/catalog_service_pb.rb +59 -0
- data/lib/google/cloud/recommendationengine/v1beta1/catalog_service_services_pb.rb +61 -0
- data/lib/google/cloud/recommendationengine/v1beta1/common_pb.rb +32 -0
- data/lib/google/cloud/recommendationengine/v1beta1/import_pb.rb +91 -0
- data/lib/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service_pb.rb +48 -0
- data/lib/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service_services_pb.rb +53 -0
- data/lib/google/cloud/recommendationengine/v1beta1/prediction_service_pb.rb +49 -0
- data/lib/google/cloud/recommendationengine/v1beta1/prediction_service_services_pb.rb +48 -0
- data/lib/google/cloud/recommendationengine/v1beta1/recommendationengine_resources_pb.rb +19 -0
- data/lib/google/cloud/recommendationengine/v1beta1/user_event_pb.rb +84 -0
- data/lib/google/cloud/recommendationengine/v1beta1/user_event_service_pb.rb +68 -0
- data/lib/google/cloud/recommendationengine/v1beta1/user_event_service_services_pb.rb +66 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/httpbody.rb +75 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/recommendationengine/v1beta1/catalog.rb +214 -0
- data/proto_docs/google/cloud/recommendationengine/v1beta1/catalog_service.rb +110 -0
- data/proto_docs/google/cloud/recommendationengine/v1beta1/common.rb +89 -0
- data/proto_docs/google/cloud/recommendationengine/v1beta1/import.rb +206 -0
- data/proto_docs/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.rb +88 -0
- data/proto_docs/google/cloud/recommendationengine/v1beta1/prediction_service.rb +212 -0
- data/proto_docs/google/cloud/recommendationengine/v1beta1/user_event.rb +367 -0
- data/proto_docs/google/cloud/recommendationengine/v1beta1/user_event_service.rb +191 -0
- data/proto_docs/google/longrunning/operations.rb +150 -0
- data/proto_docs/google/protobuf/any.rb +138 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/protobuf/timestamp.rb +120 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/type/date.rb +50 -0
- metadata +242 -0
@@ -0,0 +1,110 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module RecommendationEngine
|
23
|
+
module V1beta1
|
24
|
+
# Request message for CreateCatalogItem method.
|
25
|
+
# @!attribute [rw] parent
|
26
|
+
# @return [::String]
|
27
|
+
# Required. The parent catalog resource name, such as
|
28
|
+
# "projects/*/locations/global/catalogs/default_catalog".
|
29
|
+
# @!attribute [rw] catalog_item
|
30
|
+
# @return [::Google::Cloud::RecommendationEngine::V1beta1::CatalogItem]
|
31
|
+
# Required. The catalog item to create.
|
32
|
+
class CreateCatalogItemRequest
|
33
|
+
include ::Google::Protobuf::MessageExts
|
34
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
35
|
+
end
|
36
|
+
|
37
|
+
# Request message for GetCatalogItem method.
|
38
|
+
# @!attribute [rw] name
|
39
|
+
# @return [::String]
|
40
|
+
# Required. Full resource name of catalog item, such as
|
41
|
+
# "projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id".
|
42
|
+
class GetCatalogItemRequest
|
43
|
+
include ::Google::Protobuf::MessageExts
|
44
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
45
|
+
end
|
46
|
+
|
47
|
+
# Request message for ListCatalogItems method.
|
48
|
+
# @!attribute [rw] parent
|
49
|
+
# @return [::String]
|
50
|
+
# Required. The parent catalog resource name, such as
|
51
|
+
# "projects/*/locations/global/catalogs/default_catalog".
|
52
|
+
# @!attribute [rw] page_size
|
53
|
+
# @return [::Integer]
|
54
|
+
# Optional. Maximum number of results to return per page. If zero, the
|
55
|
+
# service will choose a reasonable default.
|
56
|
+
# @!attribute [rw] page_token
|
57
|
+
# @return [::String]
|
58
|
+
# Optional. The previous ListCatalogItemsResponse.next_page_token.
|
59
|
+
# @!attribute [rw] filter
|
60
|
+
# @return [::String]
|
61
|
+
# Optional. A filter to apply on the list results.
|
62
|
+
class ListCatalogItemsRequest
|
63
|
+
include ::Google::Protobuf::MessageExts
|
64
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
|
+
end
|
66
|
+
|
67
|
+
# Response message for ListCatalogItems method.
|
68
|
+
# @!attribute [rw] catalog_items
|
69
|
+
# @return [::Array<::Google::Cloud::RecommendationEngine::V1beta1::CatalogItem>]
|
70
|
+
# The catalog items.
|
71
|
+
# @!attribute [rw] next_page_token
|
72
|
+
# @return [::String]
|
73
|
+
# If empty, the list is complete. If nonempty, the token to pass to the next
|
74
|
+
# request's ListCatalogItemRequest.page_token.
|
75
|
+
class ListCatalogItemsResponse
|
76
|
+
include ::Google::Protobuf::MessageExts
|
77
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
78
|
+
end
|
79
|
+
|
80
|
+
# Request message for UpdateCatalogItem method.
|
81
|
+
# @!attribute [rw] name
|
82
|
+
# @return [::String]
|
83
|
+
# Required. Full resource name of catalog item, such as
|
84
|
+
# "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
|
85
|
+
# @!attribute [rw] catalog_item
|
86
|
+
# @return [::Google::Cloud::RecommendationEngine::V1beta1::CatalogItem]
|
87
|
+
# Required. The catalog item to update/create. The 'catalog_item_id' field
|
88
|
+
# has to match that in the 'name'.
|
89
|
+
# @!attribute [rw] update_mask
|
90
|
+
# @return [::Google::Protobuf::FieldMask]
|
91
|
+
# Optional. Indicates which fields in the provided 'item' to update. If not
|
92
|
+
# set, will by default update all fields.
|
93
|
+
class UpdateCatalogItemRequest
|
94
|
+
include ::Google::Protobuf::MessageExts
|
95
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
96
|
+
end
|
97
|
+
|
98
|
+
# Request message for DeleteCatalogItem method.
|
99
|
+
# @!attribute [rw] name
|
100
|
+
# @return [::String]
|
101
|
+
# Required. Full resource name of catalog item, such as
|
102
|
+
# "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
|
103
|
+
class DeleteCatalogItemRequest
|
104
|
+
include ::Google::Protobuf::MessageExts
|
105
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module RecommendationEngine
|
23
|
+
module V1beta1
|
24
|
+
# FeatureMap represents extra features that customers want to include in the
|
25
|
+
# recommendation model for catalogs/user events as categorical/numerical
|
26
|
+
# features.
|
27
|
+
# @!attribute [rw] categorical_features
|
28
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::RecommendationEngine::V1beta1::FeatureMap::StringList}]
|
29
|
+
# Categorical features that can take on one of a limited number of possible
|
30
|
+
# values. Some examples would be the brand/maker of a product, or country of
|
31
|
+
# a customer.
|
32
|
+
#
|
33
|
+
# Feature names and values must be UTF-8 encoded strings.
|
34
|
+
#
|
35
|
+
# For example: `{ "colors": {"value": ["yellow", "green"]},
|
36
|
+
# "sizes": \\{"value":["S", "M"]}`
|
37
|
+
# @!attribute [rw] numerical_features
|
38
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::RecommendationEngine::V1beta1::FeatureMap::FloatList}]
|
39
|
+
# Numerical features. Some examples would be the height/weight of a product,
|
40
|
+
# or age of a customer.
|
41
|
+
#
|
42
|
+
# Feature names must be UTF-8 encoded strings.
|
43
|
+
#
|
44
|
+
# For example: `{ "lengths_cm": {"value":[2.3, 15.4]},
|
45
|
+
# "heights_cm": \\{"value":[8.1, 6.4]} }`
|
46
|
+
class FeatureMap
|
47
|
+
include ::Google::Protobuf::MessageExts
|
48
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
49
|
+
|
50
|
+
# A list of string features.
|
51
|
+
# @!attribute [rw] value
|
52
|
+
# @return [::Array<::String>]
|
53
|
+
# String feature value with a length limit of 128 bytes.
|
54
|
+
class StringList
|
55
|
+
include ::Google::Protobuf::MessageExts
|
56
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
57
|
+
end
|
58
|
+
|
59
|
+
# A list of float features.
|
60
|
+
# @!attribute [rw] value
|
61
|
+
# @return [::Array<::Float>]
|
62
|
+
# Float feature value.
|
63
|
+
class FloatList
|
64
|
+
include ::Google::Protobuf::MessageExts
|
65
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
66
|
+
end
|
67
|
+
|
68
|
+
# @!attribute [rw] key
|
69
|
+
# @return [::String]
|
70
|
+
# @!attribute [rw] value
|
71
|
+
# @return [::Google::Cloud::RecommendationEngine::V1beta1::FeatureMap::StringList]
|
72
|
+
class CategoricalFeaturesEntry
|
73
|
+
include ::Google::Protobuf::MessageExts
|
74
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
75
|
+
end
|
76
|
+
|
77
|
+
# @!attribute [rw] key
|
78
|
+
# @return [::String]
|
79
|
+
# @!attribute [rw] value
|
80
|
+
# @return [::Google::Cloud::RecommendationEngine::V1beta1::FeatureMap::FloatList]
|
81
|
+
class NumericalFeaturesEntry
|
82
|
+
include ::Google::Protobuf::MessageExts
|
83
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,206 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module RecommendationEngine
|
23
|
+
module V1beta1
|
24
|
+
# Google Cloud Storage location for input content.
|
25
|
+
# format.
|
26
|
+
# @!attribute [rw] input_uris
|
27
|
+
# @return [::Array<::String>]
|
28
|
+
# Required. Google Cloud Storage URIs to input files. URI can be up to
|
29
|
+
# 2000 characters long. URIs can match the full object path (for example,
|
30
|
+
# gs://bucket/directory/object.json) or a pattern matching one or more
|
31
|
+
# files, such as gs://bucket/directory/*.json. A request can
|
32
|
+
# contain at most 100 files, and each file can be up to 2 GB. See
|
33
|
+
# [Importing catalog information](/recommendations-ai/docs/upload-catalog)
|
34
|
+
# for the expected file format and setup instructions.
|
35
|
+
class GcsSource
|
36
|
+
include ::Google::Protobuf::MessageExts
|
37
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
38
|
+
end
|
39
|
+
|
40
|
+
# The inline source for the input config for ImportCatalogItems method.
|
41
|
+
# @!attribute [rw] catalog_items
|
42
|
+
# @return [::Array<::Google::Cloud::RecommendationEngine::V1beta1::CatalogItem>]
|
43
|
+
# Optional. A list of catalog items to update/create. Recommended max of 10k
|
44
|
+
# items.
|
45
|
+
class CatalogInlineSource
|
46
|
+
include ::Google::Protobuf::MessageExts
|
47
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
48
|
+
end
|
49
|
+
|
50
|
+
# The inline source for the input config for ImportUserEvents method.
|
51
|
+
# @!attribute [rw] user_events
|
52
|
+
# @return [::Array<::Google::Cloud::RecommendationEngine::V1beta1::UserEvent>]
|
53
|
+
# Optional. A list of user events to import. Recommended max of 10k items.
|
54
|
+
class UserEventInlineSource
|
55
|
+
include ::Google::Protobuf::MessageExts
|
56
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
57
|
+
end
|
58
|
+
|
59
|
+
# Configuration of destination for Import related errors.
|
60
|
+
# @!attribute [rw] gcs_prefix
|
61
|
+
# @return [::String]
|
62
|
+
# Google Cloud Storage path for import errors. This must be an empty,
|
63
|
+
# existing Cloud Storage bucket. Import errors will be written to a file in
|
64
|
+
# this bucket, one per line, as a JSON-encoded
|
65
|
+
# `google.rpc.Status` message.
|
66
|
+
class ImportErrorsConfig
|
67
|
+
include ::Google::Protobuf::MessageExts
|
68
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
69
|
+
end
|
70
|
+
|
71
|
+
# Request message for Import methods.
|
72
|
+
# @!attribute [rw] parent
|
73
|
+
# @return [::String]
|
74
|
+
# Required. "projects/1234/locations/global/catalogs/default_catalog"
|
75
|
+
# @!attribute [rw] request_id
|
76
|
+
# @return [::String]
|
77
|
+
# Optional. Unique identifier provided by client, within the ancestor
|
78
|
+
# dataset scope. Ensures idempotency and used for request deduplication.
|
79
|
+
# Server-generated if unspecified. Up to 128 characters long. This is
|
80
|
+
# returned as google.longrunning.Operation.name in the response.
|
81
|
+
# @!attribute [rw] input_config
|
82
|
+
# @return [::Google::Cloud::RecommendationEngine::V1beta1::InputConfig]
|
83
|
+
# Required. The desired input location of the data.
|
84
|
+
# @!attribute [rw] errors_config
|
85
|
+
# @return [::Google::Cloud::RecommendationEngine::V1beta1::ImportErrorsConfig]
|
86
|
+
# Optional. The desired location of errors incurred during the Import.
|
87
|
+
class ImportCatalogItemsRequest
|
88
|
+
include ::Google::Protobuf::MessageExts
|
89
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
90
|
+
end
|
91
|
+
|
92
|
+
# Request message for the ImportUserEvents request.
|
93
|
+
# @!attribute [rw] parent
|
94
|
+
# @return [::String]
|
95
|
+
# Required.
|
96
|
+
# "projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store"
|
97
|
+
# @!attribute [rw] request_id
|
98
|
+
# @return [::String]
|
99
|
+
# Optional. Unique identifier provided by client, within the ancestor
|
100
|
+
# dataset scope. Ensures idempotency for expensive long running operations.
|
101
|
+
# Server-generated if unspecified. Up to 128 characters long. This is
|
102
|
+
# returned as google.longrunning.Operation.name in the response. Note that
|
103
|
+
# this field must not be set if the desired input config is
|
104
|
+
# catalog_inline_source.
|
105
|
+
# @!attribute [rw] input_config
|
106
|
+
# @return [::Google::Cloud::RecommendationEngine::V1beta1::InputConfig]
|
107
|
+
# Required. The desired input location of the data.
|
108
|
+
# @!attribute [rw] errors_config
|
109
|
+
# @return [::Google::Cloud::RecommendationEngine::V1beta1::ImportErrorsConfig]
|
110
|
+
# Optional. The desired location of errors incurred during the Import.
|
111
|
+
class ImportUserEventsRequest
|
112
|
+
include ::Google::Protobuf::MessageExts
|
113
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
114
|
+
end
|
115
|
+
|
116
|
+
# The input config source.
|
117
|
+
# @!attribute [rw] catalog_inline_source
|
118
|
+
# @return [::Google::Cloud::RecommendationEngine::V1beta1::CatalogInlineSource]
|
119
|
+
# The Inline source for the input content for Catalog items.
|
120
|
+
# @!attribute [rw] gcs_source
|
121
|
+
# @return [::Google::Cloud::RecommendationEngine::V1beta1::GcsSource]
|
122
|
+
# Google Cloud Storage location for the input content.
|
123
|
+
# @!attribute [rw] user_event_inline_source
|
124
|
+
# @return [::Google::Cloud::RecommendationEngine::V1beta1::UserEventInlineSource]
|
125
|
+
# The Inline source for the input content for UserEvents.
|
126
|
+
class InputConfig
|
127
|
+
include ::Google::Protobuf::MessageExts
|
128
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
129
|
+
end
|
130
|
+
|
131
|
+
# Metadata related to the progress of the Import operation. This will be
|
132
|
+
# returned by the google.longrunning.Operation.metadata field.
|
133
|
+
# @!attribute [rw] operation_name
|
134
|
+
# @return [::String]
|
135
|
+
# Name of the operation.
|
136
|
+
# @!attribute [rw] request_id
|
137
|
+
# @return [::String]
|
138
|
+
# Id of the request / operation. This is parroting back the requestId that
|
139
|
+
# was passed in the request.
|
140
|
+
# @!attribute [rw] create_time
|
141
|
+
# @return [::Google::Protobuf::Timestamp]
|
142
|
+
# Operation create time.
|
143
|
+
# @!attribute [rw] success_count
|
144
|
+
# @return [::Integer]
|
145
|
+
# Count of entries that were processed successfully.
|
146
|
+
# @!attribute [rw] failure_count
|
147
|
+
# @return [::Integer]
|
148
|
+
# Count of entries that encountered errors while processing.
|
149
|
+
# @!attribute [rw] update_time
|
150
|
+
# @return [::Google::Protobuf::Timestamp]
|
151
|
+
# Operation last update time. If the operation is done, this is also the
|
152
|
+
# finish time.
|
153
|
+
class ImportMetadata
|
154
|
+
include ::Google::Protobuf::MessageExts
|
155
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
156
|
+
end
|
157
|
+
|
158
|
+
# Response of the ImportCatalogItemsRequest. If the long running
|
159
|
+
# operation is done, then this message is returned by the
|
160
|
+
# google.longrunning.Operations.response field if the operation was successful.
|
161
|
+
# @!attribute [rw] error_samples
|
162
|
+
# @return [::Array<::Google::Rpc::Status>]
|
163
|
+
# A sample of errors encountered while processing the request.
|
164
|
+
# @!attribute [rw] errors_config
|
165
|
+
# @return [::Google::Cloud::RecommendationEngine::V1beta1::ImportErrorsConfig]
|
166
|
+
# Echoes the destination for the complete errors in the request if set.
|
167
|
+
class ImportCatalogItemsResponse
|
168
|
+
include ::Google::Protobuf::MessageExts
|
169
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
170
|
+
end
|
171
|
+
|
172
|
+
# Response of the ImportUserEventsRequest. If the long running
|
173
|
+
# operation was successful, then this message is returned by the
|
174
|
+
# google.longrunning.Operations.response field if the operation was successful.
|
175
|
+
# @!attribute [rw] error_samples
|
176
|
+
# @return [::Array<::Google::Rpc::Status>]
|
177
|
+
# A sample of errors encountered while processing the request.
|
178
|
+
# @!attribute [rw] errors_config
|
179
|
+
# @return [::Google::Cloud::RecommendationEngine::V1beta1::ImportErrorsConfig]
|
180
|
+
# Echoes the destination for the complete errors if this field was set in
|
181
|
+
# the request.
|
182
|
+
# @!attribute [rw] import_summary
|
183
|
+
# @return [::Google::Cloud::RecommendationEngine::V1beta1::UserEventImportSummary]
|
184
|
+
# Aggregated statistics of user event import status.
|
185
|
+
class ImportUserEventsResponse
|
186
|
+
include ::Google::Protobuf::MessageExts
|
187
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
188
|
+
end
|
189
|
+
|
190
|
+
# A summary of import result. The UserEventImportSummary summarizes
|
191
|
+
# the import status for user events.
|
192
|
+
# @!attribute [rw] joined_events_count
|
193
|
+
# @return [::Integer]
|
194
|
+
# Count of user events imported with complete existing catalog information.
|
195
|
+
# @!attribute [rw] unjoined_events_count
|
196
|
+
# @return [::Integer]
|
197
|
+
# Count of user events imported, but with catalog information not found
|
198
|
+
# in the imported catalog.
|
199
|
+
class UserEventImportSummary
|
200
|
+
include ::Google::Protobuf::MessageExts
|
201
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
data/proto_docs/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.rb
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module RecommendationEngine
|
23
|
+
module V1beta1
|
24
|
+
# Registered Api Key.
|
25
|
+
# @!attribute [rw] api_key
|
26
|
+
# @return [::String]
|
27
|
+
# The API key.
|
28
|
+
class PredictionApiKeyRegistration
|
29
|
+
include ::Google::Protobuf::MessageExts
|
30
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
31
|
+
end
|
32
|
+
|
33
|
+
# Request message for the `CreatePredictionApiKeyRegistration` method.
|
34
|
+
# @!attribute [rw] parent
|
35
|
+
# @return [::String]
|
36
|
+
# Required. The parent resource path.
|
37
|
+
# "projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store".
|
38
|
+
# @!attribute [rw] prediction_api_key_registration
|
39
|
+
# @return [::Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistration]
|
40
|
+
# Required. The prediction API key registration.
|
41
|
+
class CreatePredictionApiKeyRegistrationRequest
|
42
|
+
include ::Google::Protobuf::MessageExts
|
43
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
44
|
+
end
|
45
|
+
|
46
|
+
# Request message for the `ListPredictionApiKeyRegistrations`.
|
47
|
+
# @!attribute [rw] parent
|
48
|
+
# @return [::String]
|
49
|
+
# Required. The parent placement resource name such as
|
50
|
+
# "projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store"
|
51
|
+
# @!attribute [rw] page_size
|
52
|
+
# @return [::Integer]
|
53
|
+
# Optional. Maximum number of results to return per page. If unset, the
|
54
|
+
# service will choose a reasonable default.
|
55
|
+
# @!attribute [rw] page_token
|
56
|
+
# @return [::String]
|
57
|
+
# Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
|
58
|
+
class ListPredictionApiKeyRegistrationsRequest
|
59
|
+
include ::Google::Protobuf::MessageExts
|
60
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
61
|
+
end
|
62
|
+
|
63
|
+
# Response message for the `ListPredictionApiKeyRegistrations`.
|
64
|
+
# @!attribute [rw] prediction_api_key_registrations
|
65
|
+
# @return [::Array<::Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistration>]
|
66
|
+
# The list of registered API keys.
|
67
|
+
# @!attribute [rw] next_page_token
|
68
|
+
# @return [::String]
|
69
|
+
# If empty, the list is complete. If nonempty, pass the token to the next
|
70
|
+
# request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
|
71
|
+
class ListPredictionApiKeyRegistrationsResponse
|
72
|
+
include ::Google::Protobuf::MessageExts
|
73
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
74
|
+
end
|
75
|
+
|
76
|
+
# Request message for `DeletePredictionApiKeyRegistration` method.
|
77
|
+
# @!attribute [rw] name
|
78
|
+
# @return [::String]
|
79
|
+
# Required. The API key to unregister including full resource path.
|
80
|
+
# "projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>"
|
81
|
+
class DeletePredictionApiKeyRegistrationRequest
|
82
|
+
include ::Google::Protobuf::MessageExts
|
83
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|