Skip to content

Commit 2beea62

Browse files
fix: Fix recommendationengine resource name configuration (#572)
* fix: Fix recommendationengine resource name configuration PiperOrigin-RevId: 473779245 Source-Link: googleapis/googleapis@ee05df9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d151c136b7de66b7b524817360c639d011ef003d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDE1MWMxMzZiN2RlNjZiN2I1MjQ4MTczNjBjNjM5ZDAxMWVmMDAzZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 3299236 commit 2beea62

File tree

3 files changed

+21
-26
lines changed

3 files changed

+21
-26
lines changed

java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemPathName.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
public class CatalogItemPathName implements ResourceName {
3232
private static final PathTemplate PROJECT_LOCATION_CATALOG_CATALOG_ITEM_PATH =
3333
PathTemplate.createWithoutUrlEncoding(
34-
"projects/{project}/locations/{location}/catalogs/{catalog}/catalogItems/{catalog_item_path=**}");
34+
"projects/{project}/locations/{location}/catalogs/{catalog}/catalogItems/{catalog_item_path}");
3535
private volatile Map<String, String> fieldValuesMap;
3636
private final String project;
3737
private final String location;
@@ -209,7 +209,7 @@ public int hashCode() {
209209

210210
/**
211211
* Builder for
212-
* projects/{project}/locations/{location}/catalogs/{catalog}/catalogItems/{catalog_item_path=&#42;&#42;}.
212+
* projects/{project}/locations/{location}/catalogs/{catalog}/catalogItems/{catalog_item_path}.
213213
*/
214214
public static class Builder {
215215
private String project;

java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/RecommendationengineResources.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
3838
"\nNgoogle/cloud/recommendationengine/v1be"
3939
+ "ta1/recommendationengine_resources.proto"
4040
+ "\022)google.cloud.recommendationengine.v1be"
41-
+ "ta1\032\031google/api/resource.protoB\253\010\n-com.g"
41+
+ "ta1\032\031google/api/resource.protoB\250\010\n-com.g"
4242
+ "oogle.cloud.recommendationengine.v1beta1"
4343
+ "P\001Z]google.golang.org/genproto/googleapi"
4444
+ "s/cloud/recommendationengine/v1beta1;rec"
@@ -48,24 +48,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
4848
+ "le::Cloud::RecommendationEngine::V1beta1"
4949
+ "\352Ai\n+recommendationengine.googleapis.com"
5050
+ "/Catalog\022:projects/{project}/locations/{"
51-
+ "location}/catalogs/{catalog}\352A\225\001\n3recomm"
51+
+ "location}/catalogs/{catalog}\352A\222\001\n3recomm"
5252
+ "endationengine.googleapis.com/CatalogIte"
53-
+ "mPath\022^projects/{project}/locations/{loc"
53+
+ "mPath\022[projects/{project}/locations/{loc"
5454
+ "ation}/catalogs/{catalog}/catalogItems/{"
55-
+ "catalog_item_path=**}\352A\206\001\n.recommendatio"
56-
+ "nengine.googleapis.com/EventStore\022Tproje"
57-
+ "cts/{project}/locations/{location}/catal"
58-
+ "ogs/{catalog}/eventStores/{event_store}\352"
59-
+ "A\331\001\n@recommendationengine.googleapis.com"
60-
+ "/PredictionApiKeyRegistration\022\224\001projects"
55+
+ "catalog_item_path}\352A\206\001\n.recommendationen"
56+
+ "gine.googleapis.com/EventStore\022Tprojects"
6157
+ "/{project}/locations/{location}/catalogs"
62-
+ "/{catalog}/eventStores/{event_store}/pre"
63-
+ "dictionApiKeyRegistrations/{prediction_a"
64-
+ "pi_key_registration}\352A\234\001\n-recommendation"
65-
+ "engine.googleapis.com/Placement\022kproject"
66-
+ "s/{project}/locations/{location}/catalog"
67-
+ "s/{catalog}/eventStores/{event_store}/pl"
68-
+ "acements/{placement}b\006proto3"
58+
+ "/{catalog}/eventStores/{event_store}\352A\331\001"
59+
+ "\n@recommendationengine.googleapis.com/Pr"
60+
+ "edictionApiKeyRegistration\022\224\001projects/{p"
61+
+ "roject}/locations/{location}/catalogs/{c"
62+
+ "atalog}/eventStores/{event_store}/predic"
63+
+ "tionApiKeyRegistrations/{prediction_api_"
64+
+ "key_registration}\352A\234\001\n-recommendationeng"
65+
+ "ine.googleapis.com/Placement\022kprojects/{"
66+
+ "project}/locations/{location}/catalogs/{"
67+
+ "catalog}/eventStores/{event_store}/place"
68+
+ "ments/{placement}b\006proto3"
6969
};
7070
descriptor =
7171
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(

java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,36 +18,31 @@ syntax = "proto3";
1818

1919
package google.cloud.recommendationengine.v1beta1;
2020

21+
import "google/api/resource.proto";
22+
2123
option csharp_namespace = "Google.Cloud.RecommendationEngine.V1Beta1";
2224
option go_package = "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1;recommendationengine";
2325
option java_multiple_files = true;
2426
option java_package = "com.google.cloud.recommendationengine.v1beta1";
2527
option objc_class_prefix = "RECAI";
2628
option php_namespace = "Google\\Cloud\\RecommendationEngine\\V1beta1";
2729
option ruby_package = "Google::Cloud::RecommendationEngine::V1beta1";
28-
29-
import "google/api/resource.proto";
30-
3130
option (google.api.resource_definition) = {
3231
type: "recommendationengine.googleapis.com/Catalog"
3332
pattern: "projects/{project}/locations/{location}/catalogs/{catalog}"
3433
};
35-
3634
option (google.api.resource_definition) = {
3735
type: "recommendationengine.googleapis.com/CatalogItemPath"
38-
pattern: "projects/{project}/locations/{location}/catalogs/{catalog}/catalogItems/{catalog_item_path=**}"
36+
pattern: "projects/{project}/locations/{location}/catalogs/{catalog}/catalogItems/{catalog_item_path}"
3937
};
40-
4138
option (google.api.resource_definition) = {
4239
type: "recommendationengine.googleapis.com/EventStore"
4340
pattern: "projects/{project}/locations/{location}/catalogs/{catalog}/eventStores/{event_store}"
4441
};
45-
4642
option (google.api.resource_definition) = {
4743
type: "recommendationengine.googleapis.com/PredictionApiKeyRegistration"
4844
pattern: "projects/{project}/locations/{location}/catalogs/{catalog}/eventStores/{event_store}/predictionApiKeyRegistrations/{prediction_api_key_registration}"
4945
};
50-
5146
option (google.api.resource_definition) = {
5247
type: "recommendationengine.googleapis.com/Placement"
5348
pattern: "projects/{project}/locations/{location}/catalogs/{catalog}/eventStores/{event_store}/placements/{placement}"

0 commit comments

Comments
 (0)