Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

fix: Fix recommendationengine resource name configuration #572

Merged
merged 2 commits into from
Sep 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
public class CatalogItemPathName implements ResourceName {
private static final PathTemplate PROJECT_LOCATION_CATALOG_CATALOG_ITEM_PATH =
PathTemplate.createWithoutUrlEncoding(
"projects/{project}/locations/{location}/catalogs/{catalog}/catalogItems/{catalog_item_path=**}");
"projects/{project}/locations/{location}/catalogs/{catalog}/catalogItems/{catalog_item_path}");
private volatile Map<String, String> fieldValuesMap;
private final String project;
private final String location;
Expand Down Expand Up @@ -209,7 +209,7 @@ public int hashCode() {

/**
* Builder for
* projects/{project}/locations/{location}/catalogs/{catalog}/catalogItems/{catalog_item_path=&#42;&#42;}.
* projects/{project}/locations/{location}/catalogs/{catalog}/catalogItems/{catalog_item_path}.
*/
public static class Builder {
private String project;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\nNgoogle/cloud/recommendationengine/v1be"
+ "ta1/recommendationengine_resources.proto"
+ "\022)google.cloud.recommendationengine.v1be"
+ "ta1\032\031google/api/resource.protoB\253\010\n-com.g"
+ "ta1\032\031google/api/resource.protoB\250\010\n-com.g"
+ "oogle.cloud.recommendationengine.v1beta1"
+ "P\001Z]google.golang.org/genproto/googleapi"
+ "s/cloud/recommendationengine/v1beta1;rec"
Expand All @@ -48,24 +48,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "le::Cloud::RecommendationEngine::V1beta1"
+ "\352Ai\n+recommendationengine.googleapis.com"
+ "/Catalog\022:projects/{project}/locations/{"
+ "location}/catalogs/{catalog}\352A\225\001\n3recomm"
+ "location}/catalogs/{catalog}\352A\222\001\n3recomm"
+ "endationengine.googleapis.com/CatalogIte"
+ "mPath\022^projects/{project}/locations/{loc"
+ "mPath\022[projects/{project}/locations/{loc"
+ "ation}/catalogs/{catalog}/catalogItems/{"
+ "catalog_item_path=**}\352A\206\001\n.recommendatio"
+ "nengine.googleapis.com/EventStore\022Tproje"
+ "cts/{project}/locations/{location}/catal"
+ "ogs/{catalog}/eventStores/{event_store}\352"
+ "A\331\001\[email protected]"
+ "/PredictionApiKeyRegistration\022\224\001projects"
+ "catalog_item_path}\352A\206\001\n.recommendationen"
+ "gine.googleapis.com/EventStore\022Tprojects"
+ "/{project}/locations/{location}/catalogs"
+ "/{catalog}/eventStores/{event_store}/pre"
+ "dictionApiKeyRegistrations/{prediction_a"
+ "pi_key_registration}\352A\234\001\n-recommendation"
+ "engine.googleapis.com/Placement\022kproject"
+ "s/{project}/locations/{location}/catalog"
+ "s/{catalog}/eventStores/{event_store}/pl"
+ "acements/{placement}b\006proto3"
+ "/{catalog}/eventStores/{event_store}\352A\331\001"
+ "\[email protected]/Pr"
+ "edictionApiKeyRegistration\022\224\001projects/{p"
+ "roject}/locations/{location}/catalogs/{c"
+ "atalog}/eventStores/{event_store}/predic"
+ "tionApiKeyRegistrations/{prediction_api_"
+ "key_registration}\352A\234\001\n-recommendationeng"
+ "ine.googleapis.com/Placement\022kprojects/{"
+ "project}/locations/{location}/catalogs/{"
+ "catalog}/eventStores/{event_store}/place"
+ "ments/{placement}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,36 +18,31 @@ syntax = "proto3";

package google.cloud.recommendationengine.v1beta1;

import "google/api/resource.proto";

option csharp_namespace = "Google.Cloud.RecommendationEngine.V1Beta1";
option go_package = "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1;recommendationengine";
option java_multiple_files = true;
option java_package = "com.google.cloud.recommendationengine.v1beta1";
option objc_class_prefix = "RECAI";
option php_namespace = "Google\\Cloud\\RecommendationEngine\\V1beta1";
option ruby_package = "Google::Cloud::RecommendationEngine::V1beta1";

import "google/api/resource.proto";

option (google.api.resource_definition) = {
type: "recommendationengine.googleapis.com/Catalog"
pattern: "projects/{project}/locations/{location}/catalogs/{catalog}"
};

option (google.api.resource_definition) = {
type: "recommendationengine.googleapis.com/CatalogItemPath"
pattern: "projects/{project}/locations/{location}/catalogs/{catalog}/catalogItems/{catalog_item_path=**}"
pattern: "projects/{project}/locations/{location}/catalogs/{catalog}/catalogItems/{catalog_item_path}"
};

option (google.api.resource_definition) = {
type: "recommendationengine.googleapis.com/EventStore"
pattern: "projects/{project}/locations/{location}/catalogs/{catalog}/eventStores/{event_store}"
};

option (google.api.resource_definition) = {
type: "recommendationengine.googleapis.com/PredictionApiKeyRegistration"
pattern: "projects/{project}/locations/{location}/catalogs/{catalog}/eventStores/{event_store}/predictionApiKeyRegistrations/{prediction_api_key_registration}"
};

option (google.api.resource_definition) = {
type: "recommendationengine.googleapis.com/Placement"
pattern: "projects/{project}/locations/{location}/catalogs/{catalog}/eventStores/{event_store}/placements/{placement}"
Expand Down