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 generation configuration at Tue Jun 25 02:14:01 UTC 2024 #10968

Merged
merged 13 commits into from
Jun 25, 2024
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions generation_config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
gapic_generator_version: 2.41.0
protoc_version: '25.3'
googleapis_commitish: ac90fa9958bd6f7622674f52f77e4dc01d98bee8
libraries_bom_version: 26.40.0
googleapis_commitish: e4e39feea63b5f0d646fc193acbf536b5d292b64
libraries_bom_version: 26.42.0
template_excludes:
- .github/*
- .kokoro/*
Expand Down
4 changes: 2 additions & 2 deletions java-accessapproval/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.40.0</version>
<version>26.42.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down 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-accessapproval.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.45.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.46.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
4 changes: 2 additions & 2 deletions java-accesscontextmanager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.40.0</version>
<version>26.42.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down 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-identity-accesscontextmanager.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.45.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.46.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
4 changes: 2 additions & 2 deletions java-admanager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.40.0</version>
<version>26.42.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -201,7 +201,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-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/ad-manager.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.3.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.4.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
4 changes: 2 additions & 2 deletions java-advisorynotifications/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.40.0</version>
<version>26.42.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down 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-advisorynotifications.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.33.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.34.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
4 changes: 2 additions & 2 deletions java-aiplatform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.40.0</version>
<version>26.42.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down 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.45.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.46.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 @@ -385,24 +385,12 @@ protected GrpcPredictionServiceStub(
streamDirectPredictTransportSettings =
GrpcCallSettings.<StreamDirectPredictRequest, StreamDirectPredictResponse>newBuilder()
.setMethodDescriptor(streamDirectPredictMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("endpoint", String.valueOf(request.getEndpoint()));
return builder.build();
})
.build();
GrpcCallSettings<StreamDirectRawPredictRequest, StreamDirectRawPredictResponse>
streamDirectRawPredictTransportSettings =
GrpcCallSettings
.<StreamDirectRawPredictRequest, StreamDirectRawPredictResponse>newBuilder()
.setMethodDescriptor(streamDirectRawPredictMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("endpoint", String.valueOf(request.getEndpoint()));
return builder.build();
})
.build();
GrpcCallSettings<StreamingPredictRequest, StreamingPredictResponse>
streamingPredictTransportSettings =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,16 @@
* </td>
* </tr>
* <tr>
* <td><p> StreamRawPredict</td>
* <td><p> Perform a streaming online prediction with an arbitrary HTTP payload.</td>
* <td>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> streamRawPredictCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> DirectPredict</td>
* <td><p> Perform an unary online prediction request to a gRPC model server for Vertex first-party products and frameworks.</td>
* <td>
Expand Down Expand Up @@ -813,6 +823,40 @@ public final UnaryCallable<RawPredictRequest, HttpBody> rawPredictCallable() {
return stub.rawPredictCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Perform a streaming online prediction with an arbitrary HTTP payload.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
* StreamRawPredictRequest request =
* StreamRawPredictRequest.newBuilder()
* .setEndpoint(
* EndpointName.ofProjectLocationEndpointName(
* "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
* .toString())
* .setHttpBody(HttpBody.newBuilder().build())
* .build();
* ServerStream<HttpBody> stream =
* predictionServiceClient.streamRawPredictCallable().call(request);
* for (HttpBody response : stream) {
* // Do something when a response is received.
* }
* }
* }</pre>
*/
public final ServerStreamingCallable<StreamRawPredictRequest, HttpBody>
streamRawPredictCallable() {
return stub.streamRawPredictCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Perform an unary online prediction request to a gRPC model server for Vertex first-party
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ public UnaryCallSettings<RawPredictRequest, HttpBody> rawPredictSettings() {
return ((PredictionServiceStubSettings) getStubSettings()).rawPredictSettings();
}

/** Returns the object with the settings used for calls to streamRawPredict. */
public ServerStreamingCallSettings<StreamRawPredictRequest, HttpBody> streamRawPredictSettings() {
return ((PredictionServiceStubSettings) getStubSettings()).streamRawPredictSettings();
}

/** Returns the object with the settings used for calls to directPredict. */
public UnaryCallSettings<DirectPredictRequest, DirectPredictResponse> directPredictSettings() {
return ((PredictionServiceStubSettings) getStubSettings()).directPredictSettings();
Expand Down Expand Up @@ -298,6 +303,12 @@ public UnaryCallSettings.Builder<RawPredictRequest, HttpBody> rawPredictSettings
return getStubSettingsBuilder().rawPredictSettings();
}

/** Returns the builder for the settings used for calls to streamRawPredict. */
public ServerStreamingCallSettings.Builder<StreamRawPredictRequest, HttpBody>
streamRawPredictSettings() {
return getStubSettingsBuilder().streamRawPredictSettings();
}

/** Returns the builder for the settings used for calls to directPredict. */
public UnaryCallSettings.Builder<DirectPredictRequest, DirectPredictResponse>
directPredictSettings() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1432,6 +1432,9 @@
"StreamGenerateContent": {
"methods": ["streamGenerateContentCallable"]
},
"StreamRawPredict": {
"methods": ["streamRawPredictCallable"]
},
"StreamingPredict": {
"methods": ["streamingPredictCallable"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import com.google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse;
import com.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest;
import com.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse;
import com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest;
import com.google.cloud.aiplatform.v1beta1.StreamingPredictRequest;
import com.google.cloud.aiplatform.v1beta1.StreamingPredictResponse;
import com.google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest;
Expand Down Expand Up @@ -92,6 +93,17 @@ public class GrpcPredictionServiceStub extends PredictionServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(HttpBody.getDefaultInstance()))
.build();

private static final MethodDescriptor<StreamRawPredictRequest, HttpBody>
streamRawPredictMethodDescriptor =
MethodDescriptor.<StreamRawPredictRequest, HttpBody>newBuilder()
.setType(MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.PredictionService/StreamRawPredict")
.setRequestMarshaller(
ProtoUtils.marshaller(StreamRawPredictRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(HttpBody.getDefaultInstance()))
.build();

private static final MethodDescriptor<DirectPredictRequest, DirectPredictResponse>
directPredictMethodDescriptor =
MethodDescriptor.<DirectPredictRequest, DirectPredictResponse>newBuilder()
Expand Down Expand Up @@ -278,6 +290,7 @@ public class GrpcPredictionServiceStub extends PredictionServiceStub {

private final UnaryCallable<PredictRequest, PredictResponse> predictCallable;
private final UnaryCallable<RawPredictRequest, HttpBody> rawPredictCallable;
private final ServerStreamingCallable<StreamRawPredictRequest, HttpBody> streamRawPredictCallable;
private final UnaryCallable<DirectPredictRequest, DirectPredictResponse> directPredictCallable;
private final UnaryCallable<DirectRawPredictRequest, DirectRawPredictResponse>
directRawPredictCallable;
Expand Down Expand Up @@ -371,6 +384,16 @@ protected GrpcPredictionServiceStub(
return builder.build();
})
.build();
GrpcCallSettings<StreamRawPredictRequest, HttpBody> streamRawPredictTransportSettings =
GrpcCallSettings.<StreamRawPredictRequest, HttpBody>newBuilder()
.setMethodDescriptor(streamRawPredictMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("endpoint", String.valueOf(request.getEndpoint()));
return builder.build();
})
.build();
GrpcCallSettings<DirectPredictRequest, DirectPredictResponse> directPredictTransportSettings =
GrpcCallSettings.<DirectPredictRequest, DirectPredictResponse>newBuilder()
.setMethodDescriptor(directPredictMethodDescriptor)
Expand Down Expand Up @@ -534,6 +557,9 @@ protected GrpcPredictionServiceStub(
this.rawPredictCallable =
callableFactory.createUnaryCallable(
rawPredictTransportSettings, settings.rawPredictSettings(), clientContext);
this.streamRawPredictCallable =
callableFactory.createServerStreamingCallable(
streamRawPredictTransportSettings, settings.streamRawPredictSettings(), clientContext);
this.directPredictCallable =
callableFactory.createUnaryCallable(
directPredictTransportSettings, settings.directPredictSettings(), clientContext);
Expand Down Expand Up @@ -619,6 +645,11 @@ public UnaryCallable<RawPredictRequest, HttpBody> rawPredictCallable() {
return rawPredictCallable;
}

@Override
public ServerStreamingCallable<StreamRawPredictRequest, HttpBody> streamRawPredictCallable() {
return streamRawPredictCallable;
}

@Override
public UnaryCallable<DirectPredictRequest, DirectPredictResponse> directPredictCallable() {
return directPredictCallable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import com.google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse;
import com.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest;
import com.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse;
import com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest;
import com.google.cloud.aiplatform.v1beta1.StreamingPredictRequest;
import com.google.cloud.aiplatform.v1beta1.StreamingPredictResponse;
import com.google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest;
Expand Down Expand Up @@ -75,6 +76,10 @@ public UnaryCallable<RawPredictRequest, HttpBody> rawPredictCallable() {
throw new UnsupportedOperationException("Not implemented: rawPredictCallable()");
}

public ServerStreamingCallable<StreamRawPredictRequest, HttpBody> streamRawPredictCallable() {
throw new UnsupportedOperationException("Not implemented: streamRawPredictCallable()");
}

public UnaryCallable<DirectPredictRequest, DirectPredictResponse> directPredictCallable() {
throw new UnsupportedOperationException("Not implemented: directPredictCallable()");
}
Expand Down
Loading
Loading