Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update googleapis commit at Tue Apr 30 20:27:53 UTC 2024 #10767

Merged
merged 8 commits into from
May 1, 2024
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion generation_config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
gapic_generator_version: 2.39.0
protobuf_version: '25.3'
googleapis_commitish: 0179dcc4d2b4d7376e7f0292b15c72aab3100dd6
googleapis_commitish: 5a0ae652df1ef39b7849bf2bd6ba417376ce3204
libraries_bom_version: 26.38.0
owlbot_cli_image: sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409
synthtool_commitish: 63cc541da2c45fcfca2136c43e638da1fbae174d
Expand Down
2 changes: 1 addition & 1 deletion java-aiplatform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.42.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.43.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ public final OperationsClient getOperationsClient() {
* }</pre>
*
* @param parent Required. The resource name of the Location to create FeatureGroups. Format:
* `projects/{project}/locations/{location}'`
* `projects/{project}/locations/{location}`
* @param featureGroup Required. The FeatureGroup to create.
* @param featureGroupId Required. The ID to use for this FeatureGroup, which will become the
* final component of the FeatureGroup's resource name.
Expand Down Expand Up @@ -525,7 +525,7 @@ public final OperationsClient getOperationsClient() {
* }</pre>
*
* @param parent Required. The resource name of the Location to create FeatureGroups. Format:
* `projects/{project}/locations/{location}'`
* `projects/{project}/locations/{location}`
* @param featureGroup Required. The FeatureGroup to create.
* @param featureGroupId Required. The ID to use for this FeatureGroup, which will become the
* final component of the FeatureGroup's resource name.
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.google.cloud.aiplatform.v1beta1;

import static com.google.cloud.aiplatform.v1beta1.NotebookServiceClient.ListLocationsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.NotebookServiceClient.ListNotebookExecutionJobsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.NotebookServiceClient.ListNotebookRuntimeTemplatesPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.NotebookServiceClient.ListNotebookRuntimesPagedResponse;

Expand Down Expand Up @@ -208,6 +209,34 @@ public UnaryCallSettings<StartNotebookRuntimeRequest, Operation> startNotebookRu
.startNotebookRuntimeOperationSettings();
}

/** Returns the object with the settings used for calls to getNotebookExecutionJob. */
public UnaryCallSettings<GetNotebookExecutionJobRequest, NotebookExecutionJob>
getNotebookExecutionJobSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).getNotebookExecutionJobSettings();
}

/** Returns the object with the settings used for calls to listNotebookExecutionJobs. */
public PagedCallSettings<
ListNotebookExecutionJobsRequest,
ListNotebookExecutionJobsResponse,
ListNotebookExecutionJobsPagedResponse>
listNotebookExecutionJobsSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).listNotebookExecutionJobsSettings();
}

/** Returns the object with the settings used for calls to deleteNotebookExecutionJob. */
public UnaryCallSettings<DeleteNotebookExecutionJobRequest, Operation>
deleteNotebookExecutionJobSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).deleteNotebookExecutionJobSettings();
}

/** Returns the object with the settings used for calls to deleteNotebookExecutionJob. */
public OperationCallSettings<DeleteNotebookExecutionJobRequest, Empty, DeleteOperationMetadata>
deleteNotebookExecutionJobOperationSettings() {
return ((NotebookServiceStubSettings) getStubSettings())
.deleteNotebookExecutionJobOperationSettings();
}

/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings() {
Expand Down Expand Up @@ -445,6 +474,34 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().startNotebookRuntimeOperationSettings();
}

/** Returns the builder for the settings used for calls to getNotebookExecutionJob. */
public UnaryCallSettings.Builder<GetNotebookExecutionJobRequest, NotebookExecutionJob>
getNotebookExecutionJobSettings() {
return getStubSettingsBuilder().getNotebookExecutionJobSettings();
}

/** Returns the builder for the settings used for calls to listNotebookExecutionJobs. */
public PagedCallSettings.Builder<
ListNotebookExecutionJobsRequest,
ListNotebookExecutionJobsResponse,
ListNotebookExecutionJobsPagedResponse>
listNotebookExecutionJobsSettings() {
return getStubSettingsBuilder().listNotebookExecutionJobsSettings();
}

/** Returns the builder for the settings used for calls to deleteNotebookExecutionJob. */
public UnaryCallSettings.Builder<DeleteNotebookExecutionJobRequest, Operation>
deleteNotebookExecutionJobSettings() {
return getStubSettingsBuilder().deleteNotebookExecutionJobSettings();
}

/** Returns the builder for the settings used for calls to deleteNotebookExecutionJob. */
public OperationCallSettings.Builder<
DeleteNotebookExecutionJobRequest, Empty, DeleteOperationMetadata>
deleteNotebookExecutionJobOperationSettings() {
return getStubSettingsBuilder().deleteNotebookExecutionJobOperationSettings();
}

/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1141,6 +1141,9 @@
"CreateNotebookRuntimeTemplate": {
"methods": ["createNotebookRuntimeTemplateAsync", "createNotebookRuntimeTemplateAsync", "createNotebookRuntimeTemplateAsync", "createNotebookRuntimeTemplateOperationCallable", "createNotebookRuntimeTemplateCallable"]
},
"DeleteNotebookExecutionJob": {
"methods": ["deleteNotebookExecutionJobAsync", "deleteNotebookExecutionJobAsync", "deleteNotebookExecutionJobAsync", "deleteNotebookExecutionJobOperationCallable", "deleteNotebookExecutionJobCallable"]
},
"DeleteNotebookRuntime": {
"methods": ["deleteNotebookRuntimeAsync", "deleteNotebookRuntimeAsync", "deleteNotebookRuntimeAsync", "deleteNotebookRuntimeOperationCallable", "deleteNotebookRuntimeCallable"]
},
Expand All @@ -1153,6 +1156,9 @@
"GetLocation": {
"methods": ["getLocation", "getLocationCallable"]
},
"GetNotebookExecutionJob": {
"methods": ["getNotebookExecutionJob", "getNotebookExecutionJob", "getNotebookExecutionJob", "getNotebookExecutionJobCallable"]
},
"GetNotebookRuntime": {
"methods": ["getNotebookRuntime", "getNotebookRuntime", "getNotebookRuntime", "getNotebookRuntimeCallable"]
},
Expand All @@ -1162,6 +1168,9 @@
"ListLocations": {
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
},
"ListNotebookExecutionJobs": {
"methods": ["listNotebookExecutionJobs", "listNotebookExecutionJobs", "listNotebookExecutionJobs", "listNotebookExecutionJobsPagedCallable", "listNotebookExecutionJobsCallable"]
},
"ListNotebookRuntimeTemplates": {
"methods": ["listNotebookRuntimeTemplates", "listNotebookRuntimeTemplates", "listNotebookRuntimeTemplates", "listNotebookRuntimeTemplatesPagedCallable", "listNotebookRuntimeTemplatesCallable"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.google.cloud.aiplatform.v1beta1.stub;

import static com.google.cloud.aiplatform.v1beta1.NotebookServiceClient.ListLocationsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.NotebookServiceClient.ListNotebookExecutionJobsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.NotebookServiceClient.ListNotebookRuntimeTemplatesPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.NotebookServiceClient.ListNotebookRuntimesPagedResponse;

Expand All @@ -33,15 +34,20 @@
import com.google.cloud.aiplatform.v1beta1.AssignNotebookRuntimeRequest;
import com.google.cloud.aiplatform.v1beta1.CreateNotebookRuntimeTemplateOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.CreateNotebookRuntimeTemplateRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteNotebookRuntimeRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteNotebookRuntimeTemplateRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest;
import com.google.cloud.aiplatform.v1beta1.GetNotebookRuntimeRequest;
import com.google.cloud.aiplatform.v1beta1.GetNotebookRuntimeTemplateRequest;
import com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest;
import com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse;
import com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimeTemplatesRequest;
import com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimeTemplatesResponse;
import com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimesRequest;
import com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimesResponse;
import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob;
import com.google.cloud.aiplatform.v1beta1.NotebookRuntime;
import com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate;
import com.google.cloud.aiplatform.v1beta1.StartNotebookRuntimeOperationMetadata;
Expand Down Expand Up @@ -193,6 +199,43 @@ public class GrpcNotebookServiceStub extends NotebookServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();

private static final MethodDescriptor<GetNotebookExecutionJobRequest, NotebookExecutionJob>
getNotebookExecutionJobMethodDescriptor =
MethodDescriptor.<GetNotebookExecutionJobRequest, NotebookExecutionJob>newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.NotebookService/GetNotebookExecutionJob")
.setRequestMarshaller(
ProtoUtils.marshaller(GetNotebookExecutionJobRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(NotebookExecutionJob.getDefaultInstance()))
.build();

private static final MethodDescriptor<
ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsResponse>
listNotebookExecutionJobsMethodDescriptor =
MethodDescriptor
.<ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsResponse>newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.NotebookService/ListNotebookExecutionJobs")
.setRequestMarshaller(
ProtoUtils.marshaller(ListNotebookExecutionJobsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListNotebookExecutionJobsResponse.getDefaultInstance()))
.build();

private static final MethodDescriptor<DeleteNotebookExecutionJobRequest, Operation>
deleteNotebookExecutionJobMethodDescriptor =
MethodDescriptor.<DeleteNotebookExecutionJobRequest, Operation>newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.NotebookService/DeleteNotebookExecutionJob")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteNotebookExecutionJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();

private static final MethodDescriptor<ListLocationsRequest, ListLocationsResponse>
listLocationsMethodDescriptor =
MethodDescriptor.<ListLocationsRequest, ListLocationsResponse>newBuilder()
Expand Down Expand Up @@ -287,6 +330,17 @@ public class GrpcNotebookServiceStub extends NotebookServiceStub {
StartNotebookRuntimeResponse,
StartNotebookRuntimeOperationMetadata>
startNotebookRuntimeOperationCallable;
private final UnaryCallable<GetNotebookExecutionJobRequest, NotebookExecutionJob>
getNotebookExecutionJobCallable;
private final UnaryCallable<ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsResponse>
listNotebookExecutionJobsCallable;
private final UnaryCallable<
ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsPagedResponse>
listNotebookExecutionJobsPagedCallable;
private final UnaryCallable<DeleteNotebookExecutionJobRequest, Operation>
deleteNotebookExecutionJobCallable;
private final OperationCallable<DeleteNotebookExecutionJobRequest, Empty, DeleteOperationMetadata>
deleteNotebookExecutionJobOperationCallable;
private final UnaryCallable<ListLocationsRequest, ListLocationsResponse> listLocationsCallable;
private final UnaryCallable<ListLocationsRequest, ListLocationsPagedResponse>
listLocationsPagedCallable;
Expand Down Expand Up @@ -452,6 +506,40 @@ protected GrpcNotebookServiceStub(
return builder.build();
})
.build();
GrpcCallSettings<GetNotebookExecutionJobRequest, NotebookExecutionJob>
getNotebookExecutionJobTransportSettings =
GrpcCallSettings.<GetNotebookExecutionJobRequest, NotebookExecutionJob>newBuilder()
.setMethodDescriptor(getNotebookExecutionJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings<ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsResponse>
listNotebookExecutionJobsTransportSettings =
GrpcCallSettings
.<ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsResponse>newBuilder()
.setMethodDescriptor(listNotebookExecutionJobsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings<DeleteNotebookExecutionJobRequest, Operation>
deleteNotebookExecutionJobTransportSettings =
GrpcCallSettings.<DeleteNotebookExecutionJobRequest, Operation>newBuilder()
.setMethodDescriptor(deleteNotebookExecutionJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings<ListLocationsRequest, ListLocationsResponse> listLocationsTransportSettings =
GrpcCallSettings.<ListLocationsRequest, ListLocationsResponse>newBuilder()
.setMethodDescriptor(listLocationsMethodDescriptor)
Expand Down Expand Up @@ -600,6 +688,32 @@ protected GrpcNotebookServiceStub(
settings.startNotebookRuntimeOperationSettings(),
clientContext,
operationsStub);
this.getNotebookExecutionJobCallable =
callableFactory.createUnaryCallable(
getNotebookExecutionJobTransportSettings,
settings.getNotebookExecutionJobSettings(),
clientContext);
this.listNotebookExecutionJobsCallable =
callableFactory.createUnaryCallable(
listNotebookExecutionJobsTransportSettings,
settings.listNotebookExecutionJobsSettings(),
clientContext);
this.listNotebookExecutionJobsPagedCallable =
callableFactory.createPagedCallable(
listNotebookExecutionJobsTransportSettings,
settings.listNotebookExecutionJobsSettings(),
clientContext);
this.deleteNotebookExecutionJobCallable =
callableFactory.createUnaryCallable(
deleteNotebookExecutionJobTransportSettings,
settings.deleteNotebookExecutionJobSettings(),
clientContext);
this.deleteNotebookExecutionJobOperationCallable =
callableFactory.createOperationCallable(
deleteNotebookExecutionJobTransportSettings,
settings.deleteNotebookExecutionJobOperationSettings(),
clientContext,
operationsStub);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
Expand Down Expand Up @@ -743,6 +857,36 @@ public UnaryCallable<StartNotebookRuntimeRequest, Operation> startNotebookRuntim
return startNotebookRuntimeOperationCallable;
}

@Override
public UnaryCallable<GetNotebookExecutionJobRequest, NotebookExecutionJob>
getNotebookExecutionJobCallable() {
return getNotebookExecutionJobCallable;
}

@Override
public UnaryCallable<ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsResponse>
listNotebookExecutionJobsCallable() {
return listNotebookExecutionJobsCallable;
}

@Override
public UnaryCallable<ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsPagedResponse>
listNotebookExecutionJobsPagedCallable() {
return listNotebookExecutionJobsPagedCallable;
}

@Override
public UnaryCallable<DeleteNotebookExecutionJobRequest, Operation>
deleteNotebookExecutionJobCallable() {
return deleteNotebookExecutionJobCallable;
}

@Override
public OperationCallable<DeleteNotebookExecutionJobRequest, Empty, DeleteOperationMetadata>
deleteNotebookExecutionJobOperationCallable() {
return deleteNotebookExecutionJobOperationCallable;
}

@Override
public UnaryCallable<ListLocationsRequest, ListLocationsResponse> listLocationsCallable() {
return listLocationsCallable;
Expand Down
Loading
Loading