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

feat: new model service to manage recommendation models #497

Merged
merged 8 commits into from
Aug 3, 2022
  •  
  •  
  •  

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ public class HttpJsonPredictionServiceStub extends PredictionServiceStub {
serializer.putPathParam(fields, "placement", request.getPlacement());
return fields;
})
.setAdditionalPaths(
"/v2/{placement=projects/*/locations/*/catalogs/*/servingConfigs/*}:predict")
.setQueryParamsExtractor(
request -> {
Map<String, List<String>> fields = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ public class HttpJsonSearchServiceStub extends SearchServiceStub {
serializer.putPathParam(fields, "placement", request.getPlacement());
return fields;
})
.setAdditionalPaths(
"/v2/{placement=projects/*/locations/*/catalogs/*/servingConfigs/*}:search")
.setQueryParamsExtractor(
request -> {
Map<String, List<String>> fields = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ public final CompletionConfig updateCompletionConfig(UpdateCompletionConfigReque
* }</pre>
*
* @param name Required. Full AttributesConfig resource name. Format:
* projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig
* `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final AttributesConfig getAttributesConfig(AttributesConfigName name) {
Expand All @@ -985,7 +985,7 @@ public final AttributesConfig getAttributesConfig(AttributesConfigName name) {
* }</pre>
*
* @param name Required. Full AttributesConfig resource name. Format:
* projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig
* `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final AttributesConfig getAttributesConfig(String name) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public ControlServiceStub getStub() {
* }</pre>
*
* @param parent Required. Full resource name of parent catalog. Format:
* projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}
* `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
* @param control Required. The Control to create.
* @param controlId Required. The ID to use for the Control, which will become the final component
* of the Control's resource name.
Expand Down Expand Up @@ -227,7 +227,7 @@ public final Control createControl(CatalogName parent, Control control, String c
* }</pre>
*
* @param parent Required. Full resource name of parent catalog. Format:
* projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}
* `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
* @param control Required. The Control to create.
* @param controlId Required. The ID to use for the Control, which will become the final component
* of the Control's resource name.
Expand Down Expand Up @@ -322,7 +322,7 @@ public final UnaryCallable<CreateControlRequest, Control> createControlCallable(
* }</pre>
*
* @param name Required. The resource name of the Control to delete. Format:
* projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}
* `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteControl(ControlName name) {
Expand Down Expand Up @@ -350,7 +350,7 @@ public final void deleteControl(ControlName name) {
* }</pre>
*
* @param name Required. The resource name of the Control to delete. Format:
* projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}
* `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteControl(String name) {
Expand Down Expand Up @@ -525,7 +525,7 @@ public final UnaryCallable<UpdateControlRequest, Control> updateControlCallable(
* }</pre>
*
* @param name Required. The resource name of the Control to delete. Format:
* projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}
* `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Control getControl(ControlName name) {
Expand All @@ -550,7 +550,7 @@ public final Control getControl(ControlName name) {
* }</pre>
*
* @param name Required. The resource name of the Control to delete. Format:
* projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}
* `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Control getControl(String name) {
Expand Down Expand Up @@ -627,7 +627,7 @@ public final UnaryCallable<GetControlRequest, Control> getControlCallable() {
* }</pre>
*
* @param parent Required. The catalog resource name. Format:
* projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}
* `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListControlsPagedResponse listControls(CatalogName parent) {
Expand Down Expand Up @@ -656,7 +656,7 @@ public final ListControlsPagedResponse listControls(CatalogName parent) {
* }</pre>
*
* @param parent Required. The catalog resource name. Format:
* projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}
* `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListControlsPagedResponse listControls(String parent) {
Expand Down
Loading