Skip to content

Commit 2ef9b11

Browse files
chore: update package name, build config, protos (#14)
* changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * docs: Put resource paths in code spans and use absolute URLs PiperOrigin-RevId: 352807727 Source-Author: Google APIs <[email protected]> Source-Date: Wed Jan 20 09:24:51 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: dc9821e4005ff8fecc3bfccae1c61b5815cdf9d3 Source-Link: googleapis/googleapis@dc9821e * build(node): add package-name for npm PiperOrigin-RevId: 355707039 Source-Author: Google APIs <[email protected]> Source-Date: Thu Feb 4 14:04:01 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: d5259926ab0cc4b7d4c195b38a8c9ddceee005a1 Source-Link: googleapis/googleapis@d525992
1 parent c8232d5 commit 2ef9b11

15 files changed

+53
-34
lines changed

packages/google-cloud-retail/.jsdoc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = {
4343
copyright: 'Copyright 2021 Google LLC',
4444
includeDate: false,
4545
sourceFiles: false,
46-
systemName: 'retail',
46+
systemName: '@google-cloud/retail',
4747
theme: 'lumen',
4848
default: {
4949
outputSourceFiles: false
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
{"recurse":true,"skip":["https://codecov.io/gh/googleapis/","www.googleapis.com","img.shields.io", "https://googleapis.dev/nodejs/retail/latest/", "https://github.com/googleapis/nodejs-retail/blob/master/CHANGELOG.md"],"silent":true,"concurrency":10}
1+
{
2+
"recurse": true,
3+
"skip": [
4+
"https://codecov.io/gh/googleapis/",
5+
"www.googleapis.com",
6+
"img.shields.io"
7+
],
8+
"silent": true,
9+
"concurrency": 10
10+
}

packages/google-cloud-retail/protos/google/cloud/retail/v2/import_config.proto

+8-7
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ option ruby_package = "Google::Cloud::Retail::V2";
3838
message GcsSource {
3939
// Required. Google Cloud Storage URIs to input files. URI can be up to
4040
// 2000 characters long. URIs can match the full object path (for example,
41-
// gs://bucket/directory/object.json) or a pattern matching one or more
42-
// files, such as gs://bucket/directory/*.json. A request can
41+
// `gs://bucket/directory/object.json`) or a pattern matching one or more
42+
// files, such as `gs://bucket/directory/*.json`. A request can
4343
// contain at most 100 files, and each file can be up to 2 GB. See
44-
// [Importing product information](/recommendations-ai/docs/upload-catalog)
44+
// [Importing product
45+
// information](https://cloud.google.com/recommendations-ai/docs/upload-catalog)
4546
// for the expected file format and setup instructions.
4647
repeated string input_uris = 1 [(google.api.field_behavior) = REQUIRED];
4748

@@ -53,7 +54,7 @@ message GcsSource {
5354
// per line. Each product must
5455
// have a valid [Product.id][google.cloud.retail.v2.Product.id].
5556
// * `product_merchant_center`: See [Importing catalog data from Merchant
56-
// Center](/retail/recommendations-ai/docs/upload-catalog#mc).
57+
// Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc).
5758
//
5859
// Supported values for user events imports:
5960
//
@@ -92,7 +93,7 @@ message BigQuerySource {
9293
// per line. Each product must
9394
// have a valid [Product.id][google.cloud.retail.v2.Product.id].
9495
// * `product_merchant_center`: See [Importing catalog data from Merchant
95-
// Center](/retail/recommendations-ai/docs/upload-catalog#mc).
96+
// Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc).
9697
//
9798
// Supported values for user events imports:
9899
//
@@ -132,7 +133,7 @@ message ImportErrorsConfig {
132133
// Request message for Import methods.
133134
message ImportProductsRequest {
134135
// Required.
135-
// "projects/1234/locations/global/catalogs/default_catalog/branches/default_branch"
136+
// `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch`
136137
//
137138
// If no updateMask is specified, requires products.create permission.
138139
// If updateMask is specified, requires products.update permission.
@@ -151,7 +152,7 @@ message ImportProductsRequest {
151152

152153
// Request message for the ImportUserEvents request.
153154
message ImportUserEventsRequest {
154-
// Required. "projects/1234/locations/global/catalogs/default_catalog"
155+
// Required. `projects/1234/locations/global/catalogs/default_catalog`
155156
string parent = 1 [(google.api.field_behavior) = REQUIRED];
156157

157158
// Required. The desired input location of the data.

packages/google-cloud-retail/protos/google/cloud/retail/v2/product.proto

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ message Product {
101101
}
102102

103103
// Immutable. Full resource name of the product, such as
104-
// "projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id".
104+
// `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.
105105
//
106106
// The branch ID must be "default_branch".
107107
string name = 1 [(google.api.field_behavior) = IMMUTABLE];
@@ -110,7 +110,7 @@ message Product {
110110
// the final component of [name][google.cloud.retail.v2.Product.name]. For
111111
// example, this field is "id_1", if
112112
// [name][google.cloud.retail.v2.Product.name] is
113-
// "projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/id_1".
113+
// `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/id_1`.
114114
//
115115
// This field must be a UTF-8 encoded string with a length limit of 128
116116
// characters. Otherwise, an INVALID_ARGUMENT error is returned.

packages/google-cloud-retail/protos/google/cloud/retail/v2/product_service.proto

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ service ProductService {
100100
// Request message for [CreateProduct][] method.
101101
message CreateProductRequest {
102102
// Required. The parent catalog resource name, such as
103-
// "projects/*/locations/global/catalogs/default_catalog/branches/default_branch".
103+
// `projects/*/locations/global/catalogs/default_catalog/branches/default_branch`.
104104
string parent = 1 [
105105
(google.api.field_behavior) = REQUIRED,
106106
(google.api.resource_reference) = { type: "retail.googleapis.com/Branch" }
@@ -131,7 +131,7 @@ message CreateProductRequest {
131131
message GetProductRequest {
132132
// Required. Full resource name of [Product][google.cloud.retail.v2.Product],
133133
// such as
134-
// "projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id".
134+
// `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`.
135135
//
136136
// If the caller does not have permission to access the
137137
// [Product][google.cloud.retail.v2.Product], regardless of whether or not it
@@ -171,7 +171,7 @@ message UpdateProductRequest {
171171
message DeleteProductRequest {
172172
// Required. Full resource name of [Product][google.cloud.retail.v2.Product],
173173
// such as
174-
// "projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id".
174+
// `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`.
175175
//
176176
// If the caller does not have permission to delete the
177177
// [Product][google.cloud.retail.v2.Product], regardless of whether or not it

packages/google-cloud-retail/protos/google/cloud/retail/v2/user_event_service.proto

+3-3
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ service UserEventService {
117117
// Request message for WriteUserEvent method.
118118
message WriteUserEventRequest {
119119
// Required. The parent catalog resource name, such as
120-
// "projects/1234/locations/global/catalogs/default_catalog".
120+
// `projects/1234/locations/global/catalogs/default_catalog`.
121121
string parent = 1 [(google.api.field_behavior) = REQUIRED];
122122

123123
// Required. User event to write.
@@ -127,7 +127,7 @@ message WriteUserEventRequest {
127127
// Request message for CollectUserEvent method.
128128
message CollectUserEventRequest {
129129
// Required. The parent catalog name, such as
130-
// "projects/1234/locations/global/catalogs/default_catalog".
130+
// `projects/1234/locations/global/catalogs/default_catalog`.
131131
string parent = 1 [(google.api.field_behavior) = REQUIRED];
132132

133133
// Required. URL encoded UserEvent proto with a length limit of 2,000,000
@@ -168,7 +168,7 @@ message RejoinUserEventsRequest {
168168
}
169169

170170
// Required. The parent catalog resource name, such as
171-
// "projects/1234/locations/global/catalogs/default_catalog".
171+
// `projects/1234/locations/global/catalogs/default_catalog`.
172172
string parent = 1 [(google.api.field_behavior) = REQUIRED];
173173

174174
// The type of the user event rejoin to define the scope and range of the user

packages/google-cloud-retail/protos/protos.d.ts

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-retail/protos/protos.js

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-retail/protos/protos.json

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-retail/src/v2/gapic_metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
44
"language": "typescript",
55
"protoPackage": "google.cloud.retail.v2",
6-
"libraryPackage": "retail",
6+
"libraryPackage": "@google-cloud/retail",
77
"services": {
88
"CatalogService": {
99
"clients": {

packages/google-cloud-retail/src/v2/product_service_client.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ export class ProductServiceClient {
373373
* The request object that will be sent.
374374
* @param {string} request.parent
375375
* Required. The parent catalog resource name, such as
376-
* "projects/* /locations/global/catalogs/default_catalog/branches/default_branch".
376+
* `projects/* /locations/global/catalogs/default_catalog/branches/default_branch`.
377377
* @param {google.cloud.retail.v2.Product} request.product
378378
* Required. The {@link google.cloud.retail.v2.Product|Product} to create.
379379
* @param {string} request.productId
@@ -479,7 +479,7 @@ export class ProductServiceClient {
479479
* @param {string} request.name
480480
* Required. Full resource name of {@link google.cloud.retail.v2.Product|Product},
481481
* such as
482-
* "projects/* /locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id".
482+
* `projects/* /locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`.
483483
*
484484
* If the caller does not have permission to access the
485485
* {@link google.cloud.retail.v2.Product|Product}, regardless of whether or not it
@@ -673,7 +673,7 @@ export class ProductServiceClient {
673673
* @param {string} request.name
674674
* Required. Full resource name of {@link google.cloud.retail.v2.Product|Product},
675675
* such as
676-
* "projects/* /locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id".
676+
* `projects/* /locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`.
677677
*
678678
* If the caller does not have permission to delete the
679679
* {@link google.cloud.retail.v2.Product|Product}, regardless of whether or not it
@@ -783,7 +783,7 @@ export class ProductServiceClient {
783783
* The request object that will be sent.
784784
* @param {string} request.parent
785785
* Required.
786-
* "projects/1234/locations/global/catalogs/default_catalog/branches/default_branch"
786+
* `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch`
787787
*
788788
* If no updateMask is specified, requires products.create permission.
789789
* If updateMask is specified, requires products.update permission.

packages/google-cloud-retail/src/v2/user_event_service_client.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ export class UserEventServiceClient {
391391
* The request object that will be sent.
392392
* @param {string} request.parent
393393
* Required. The parent catalog resource name, such as
394-
* "projects/1234/locations/global/catalogs/default_catalog".
394+
* `projects/1234/locations/global/catalogs/default_catalog`.
395395
* @param {google.cloud.retail.v2.UserEvent} request.userEvent
396396
* Required. User event to write.
397397
* @param {object} [options]
@@ -484,7 +484,7 @@ export class UserEventServiceClient {
484484
* The request object that will be sent.
485485
* @param {string} request.parent
486486
* Required. The parent catalog name, such as
487-
* "projects/1234/locations/global/catalogs/default_catalog".
487+
* `projects/1234/locations/global/catalogs/default_catalog`.
488488
* @param {string} request.userEvent
489489
* Required. URL encoded UserEvent proto with a length limit of 2,000,000
490490
* characters.
@@ -773,7 +773,7 @@ export class UserEventServiceClient {
773773
* @param {Object} request
774774
* The request object that will be sent.
775775
* @param {string} request.parent
776-
* Required. "projects/1234/locations/global/catalogs/default_catalog"
776+
* Required. `projects/1234/locations/global/catalogs/default_catalog`
777777
* @param {google.cloud.retail.v2.UserEventInputConfig} request.inputConfig
778778
* Required. The desired input location of the data.
779779
* @param {google.cloud.retail.v2.ImportErrorsConfig} request.errorsConfig
@@ -927,7 +927,7 @@ export class UserEventServiceClient {
927927
* The request object that will be sent.
928928
* @param {string} request.parent
929929
* Required. The parent catalog resource name, such as
930-
* "projects/1234/locations/global/catalogs/default_catalog".
930+
* `projects/1234/locations/global/catalogs/default_catalog`.
931931
* @param {google.cloud.retail.v2.RejoinUserEventsRequest.UserEventRejoinScope} request.userEventRejoinScope
932932
* The type of the user event rejoin to define the scope and range of the user
933933
* events to be rejoined with the latest product catalog. Defaults to

packages/google-cloud-retail/src/v2alpha/gapic_metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
44
"language": "typescript",
55
"protoPackage": "google.cloud.retail.v2alpha",
6-
"libraryPackage": "retail",
6+
"libraryPackage": "@google-cloud/retail",
77
"services": {
88
"CatalogService": {
99
"clients": {

packages/google-cloud-retail/src/v2beta/gapic_metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
44
"language": "typescript",
55
"protoPackage": "google.cloud.retail.v2beta",
6-
"libraryPackage": "retail",
6+
"libraryPackage": "@google-cloud/retail",
77
"services": {
88
"CatalogService": {
99
"clients": {

packages/google-cloud-retail/synth.metadata

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
{
44
"git": {
55
"name": ".",
6-
"remote": "git@github.com:googleapis/nodejs-retail.git",
7-
"sha": "718b2af37036eb9c54428282c8184dca502b4518"
6+
"remote": "https://github.com/googleapis/nodejs-retail.git",
7+
"sha": "592ba421438b6bae9dd04d58670b97c6a0d62b17"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "463702142d32ffd81db5d3dbcc9f7986e1689690",
15-
"internalRef": "351489155"
14+
"sha": "d5259926ab0cc4b7d4c195b38a8c9ddceee005a1",
15+
"internalRef": "355707039"
1616
}
1717
},
1818
{

0 commit comments

Comments
 (0)