Skip to content

Commit 0d57074

Browse files
chore: regenerate pubsub client
1 parent 5ec85f7 commit 0d57074

File tree

9 files changed

+339
-134
lines changed

9 files changed

+339
-134
lines changed

clients/google-api-services-pubsub/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-pubsub</artifactId>
25-
<version>v1-rev20251212-2.0.0</version>
25+
<version>v1-rev20260116-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-pubsub:v1-rev20251212-2.0.0'
38+
implementation 'com.google.apis:google-api-services-pubsub:v1-rev20260116-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-pubsub/v1/2.0.0/com/google/api/services/pubsub/Pubsub.java

Lines changed: 72 additions & 98 deletions
Large diffs are not rendered by default.
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.pubsub.model;
18+
19+
/**
20+
* Configuration for making inference requests against Vertex AI models.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Pub/Sub API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class AIInference extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. An endpoint to a Vertex AI model of the form
34+
* `projects/{project}/locations/{location}/endpoints/{endpoint}` or
35+
* `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`. Vertex AI API
36+
* requests will be sent to this endpoint.
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.lang.String endpoint;
41+
42+
/**
43+
* Optional. The service account to use to make prediction requests against endpoints. The
44+
* resource creator or updater that specifies this field must have `iam.serviceAccounts.actAs`
45+
* permission on the service account. If not specified, the Pub/Sub [service
46+
* agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents),
47+
* service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
48+
* The value may be {@code null}.
49+
*/
50+
@com.google.api.client.util.Key
51+
private java.lang.String serviceAccountEmail;
52+
53+
/**
54+
* Optional. Requests and responses can be any arbitrary JSON object.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private UnstructuredInference unstructuredInference;
59+
60+
/**
61+
* Required. An endpoint to a Vertex AI model of the form
62+
* `projects/{project}/locations/{location}/endpoints/{endpoint}` or
63+
* `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`. Vertex AI API
64+
* requests will be sent to this endpoint.
65+
* @return value or {@code null} for none
66+
*/
67+
public java.lang.String getEndpoint() {
68+
return endpoint;
69+
}
70+
71+
/**
72+
* Required. An endpoint to a Vertex AI model of the form
73+
* `projects/{project}/locations/{location}/endpoints/{endpoint}` or
74+
* `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`. Vertex AI API
75+
* requests will be sent to this endpoint.
76+
* @param endpoint endpoint or {@code null} for none
77+
*/
78+
public AIInference setEndpoint(java.lang.String endpoint) {
79+
this.endpoint = endpoint;
80+
return this;
81+
}
82+
83+
/**
84+
* Optional. The service account to use to make prediction requests against endpoints. The
85+
* resource creator or updater that specifies this field must have `iam.serviceAccounts.actAs`
86+
* permission on the service account. If not specified, the Pub/Sub [service
87+
* agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents),
88+
* service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
89+
* @return value or {@code null} for none
90+
*/
91+
public java.lang.String getServiceAccountEmail() {
92+
return serviceAccountEmail;
93+
}
94+
95+
/**
96+
* Optional. The service account to use to make prediction requests against endpoints. The
97+
* resource creator or updater that specifies this field must have `iam.serviceAccounts.actAs`
98+
* permission on the service account. If not specified, the Pub/Sub [service
99+
* agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents),
100+
* service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
101+
* @param serviceAccountEmail serviceAccountEmail or {@code null} for none
102+
*/
103+
public AIInference setServiceAccountEmail(java.lang.String serviceAccountEmail) {
104+
this.serviceAccountEmail = serviceAccountEmail;
105+
return this;
106+
}
107+
108+
/**
109+
* Optional. Requests and responses can be any arbitrary JSON object.
110+
* @return value or {@code null} for none
111+
*/
112+
public UnstructuredInference getUnstructuredInference() {
113+
return unstructuredInference;
114+
}
115+
116+
/**
117+
* Optional. Requests and responses can be any arbitrary JSON object.
118+
* @param unstructuredInference unstructuredInference or {@code null} for none
119+
*/
120+
public AIInference setUnstructuredInference(UnstructuredInference unstructuredInference) {
121+
this.unstructuredInference = unstructuredInference;
122+
return this;
123+
}
124+
125+
@Override
126+
public AIInference set(String fieldName, Object value) {
127+
return (AIInference) super.set(fieldName, value);
128+
}
129+
130+
@Override
131+
public AIInference clone() {
132+
return (AIInference) super.clone();
133+
}
134+
135+
}

clients/google-api-services-pubsub/v1/2.0.0/com/google/api/services/pubsub/model/CreateSnapshotRequest.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ public final class CreateSnapshotRequest extends com.google.api.client.json.Gene
3737
private java.util.Map<String, java.lang.String> labels;
3838

3939
/**
40-
* Required. Identifier. The subscription whose backlog the snapshot retains. Specifically, the
41-
* created snapshot is guaranteed to retain: (a) The existing backlog on the subscription. More
42-
* precisely, this is defined as the messages in the subscription's backlog that are
43-
* unacknowledged upon the successful completion of the `CreateSnapshot` request; as well as: (b)
44-
* Any messages published to the subscription's topic following the successful completion of the
45-
* CreateSnapshot request. Format is `projects/{project}/subscriptions/{sub}`.
40+
* Required. The subscription whose backlog the snapshot retains. Specifically, the created
41+
* snapshot is guaranteed to retain: (a) The existing backlog on the subscription. More precisely,
42+
* this is defined as the messages in the subscription's backlog that are unacknowledged upon the
43+
* successful completion of the `CreateSnapshot` request; as well as: (b) Any messages published
44+
* to the subscription's topic following the successful completion of the CreateSnapshot request.
45+
* Format is `projects/{project}/subscriptions/{sub}`.
4646
* The value may be {@code null}.
4747
*/
4848
@com.google.api.client.util.Key
@@ -74,25 +74,25 @@ public CreateSnapshotRequest setLabels(java.util.Map<String, java.lang.String> l
7474
}
7575

7676
/**
77-
* Required. Identifier. The subscription whose backlog the snapshot retains. Specifically, the
78-
* created snapshot is guaranteed to retain: (a) The existing backlog on the subscription. More
79-
* precisely, this is defined as the messages in the subscription's backlog that are
80-
* unacknowledged upon the successful completion of the `CreateSnapshot` request; as well as: (b)
81-
* Any messages published to the subscription's topic following the successful completion of the
82-
* CreateSnapshot request. Format is `projects/{project}/subscriptions/{sub}`.
77+
* Required. The subscription whose backlog the snapshot retains. Specifically, the created
78+
* snapshot is guaranteed to retain: (a) The existing backlog on the subscription. More precisely,
79+
* this is defined as the messages in the subscription's backlog that are unacknowledged upon the
80+
* successful completion of the `CreateSnapshot` request; as well as: (b) Any messages published
81+
* to the subscription's topic following the successful completion of the CreateSnapshot request.
82+
* Format is `projects/{project}/subscriptions/{sub}`.
8383
* @return value or {@code null} for none
8484
*/
8585
public java.lang.String getSubscription() {
8686
return subscription;
8787
}
8888

8989
/**
90-
* Required. Identifier. The subscription whose backlog the snapshot retains. Specifically, the
91-
* created snapshot is guaranteed to retain: (a) The existing backlog on the subscription. More
92-
* precisely, this is defined as the messages in the subscription's backlog that are
93-
* unacknowledged upon the successful completion of the `CreateSnapshot` request; as well as: (b)
94-
* Any messages published to the subscription's topic following the successful completion of the
95-
* CreateSnapshot request. Format is `projects/{project}/subscriptions/{sub}`.
90+
* Required. The subscription whose backlog the snapshot retains. Specifically, the created
91+
* snapshot is guaranteed to retain: (a) The existing backlog on the subscription. More precisely,
92+
* this is defined as the messages in the subscription's backlog that are unacknowledged upon the
93+
* successful completion of the `CreateSnapshot` request; as well as: (b) Any messages published
94+
* to the subscription's topic following the successful completion of the CreateSnapshot request.
95+
* Format is `projects/{project}/subscriptions/{sub}`.
9696
* @param subscription subscription or {@code null} for none
9797
*/
9898
public CreateSnapshotRequest setSubscription(java.lang.String subscription) {

clients/google-api-services-pubsub/v1/2.0.0/com/google/api/services/pubsub/model/MessageTransform.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@
2929
@SuppressWarnings("javadoc")
3030
public final class MessageTransform extends com.google.api.client.json.GenericJson {
3131

32+
/**
33+
* Optional. AI Inference. Specifies the Vertex AI endpoint that inference requests built from the
34+
* Pub/Sub message data and provided parameters will be sent to.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private AIInference aiInference;
39+
3240
/**
3341
* Optional. If true, the transform is disabled and will not be applied to messages. Defaults to
3442
* `false`.
@@ -52,6 +60,25 @@ public final class MessageTransform extends com.google.api.client.json.GenericJs
5260
@com.google.api.client.util.Key
5361
private JavaScriptUDF javascriptUdf;
5462

63+
/**
64+
* Optional. AI Inference. Specifies the Vertex AI endpoint that inference requests built from the
65+
* Pub/Sub message data and provided parameters will be sent to.
66+
* @return value or {@code null} for none
67+
*/
68+
public AIInference getAiInference() {
69+
return aiInference;
70+
}
71+
72+
/**
73+
* Optional. AI Inference. Specifies the Vertex AI endpoint that inference requests built from the
74+
* Pub/Sub message data and provided parameters will be sent to.
75+
* @param aiInference aiInference or {@code null} for none
76+
*/
77+
public MessageTransform setAiInference(AIInference aiInference) {
78+
this.aiInference = aiInference;
79+
return this;
80+
}
81+
5582
/**
5683
* Optional. If true, the transform is disabled and will not be applied to messages. Defaults to
5784
* `false`.

clients/google-api-services-pubsub/v1/2.0.0/com/google/api/services/pubsub/model/Subscription.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public final class Subscription extends com.google.api.client.json.GenericJson {
5151

5252
/**
5353
* Output only. Information about the associated Analytics Hub subscription. Only set if the
54-
* subscritpion is created by Analytics Hub.
54+
* subscription is created by Analytics Hub.
5555
* The value may be {@code null}.
5656
*/
5757
@com.google.api.client.util.Key
@@ -225,9 +225,9 @@ public final class Subscription extends com.google.api.client.json.GenericJson {
225225
private java.util.Map<String, java.lang.String> tags;
226226

227227
/**
228-
* Required. Identifier. The name of the topic from which this subscription is receiving messages.
229-
* Format is `projects/{project}/topics/{topic}`. The value of this field will be `_deleted-
230-
* topic_` if the topic has been deleted.
228+
* Required. The name of the topic from which this subscription is receiving messages. Format is
229+
* `projects/{project}/topics/{topic}`. The value of this field will be `_deleted-topic_` if the
230+
* topic has been deleted.
231231
* The value may be {@code null}.
232232
*/
233233
@com.google.api.client.util.Key
@@ -285,7 +285,7 @@ public Subscription setAckDeadlineSeconds(java.lang.Integer ackDeadlineSeconds)
285285

286286
/**
287287
* Output only. Information about the associated Analytics Hub subscription. Only set if the
288-
* subscritpion is created by Analytics Hub.
288+
* subscription is created by Analytics Hub.
289289
* @return value or {@code null} for none
290290
*/
291291
public AnalyticsHubSubscriptionInfo getAnalyticsHubSubscriptionInfo() {
@@ -294,7 +294,7 @@ public AnalyticsHubSubscriptionInfo getAnalyticsHubSubscriptionInfo() {
294294

295295
/**
296296
* Output only. Information about the associated Analytics Hub subscription. Only set if the
297-
* subscritpion is created by Analytics Hub.
297+
* subscription is created by Analytics Hub.
298298
* @param analyticsHubSubscriptionInfo analyticsHubSubscriptionInfo or {@code null} for none
299299
*/
300300
public Subscription setAnalyticsHubSubscriptionInfo(AnalyticsHubSubscriptionInfo analyticsHubSubscriptionInfo) {
@@ -676,19 +676,19 @@ public Subscription setTags(java.util.Map<String, java.lang.String> tags) {
676676
}
677677

678678
/**
679-
* Required. Identifier. The name of the topic from which this subscription is receiving messages.
680-
* Format is `projects/{project}/topics/{topic}`. The value of this field will be `_deleted-
681-
* topic_` if the topic has been deleted.
679+
* Required. The name of the topic from which this subscription is receiving messages. Format is
680+
* `projects/{project}/topics/{topic}`. The value of this field will be `_deleted-topic_` if the
681+
* topic has been deleted.
682682
* @return value or {@code null} for none
683683
*/
684684
public java.lang.String getTopic() {
685685
return topic;
686686
}
687687

688688
/**
689-
* Required. Identifier. The name of the topic from which this subscription is receiving messages.
690-
* Format is `projects/{project}/topics/{topic}`. The value of this field will be `_deleted-
691-
* topic_` if the topic has been deleted.
689+
* Required. The name of the topic from which this subscription is receiving messages. Format is
690+
* `projects/{project}/topics/{topic}`. The value of this field will be `_deleted-topic_` if the
691+
* topic has been deleted.
692692
* @param topic topic or {@code null} for none
693693
*/
694694
public Subscription setTopic(java.lang.String topic) {
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.pubsub.model;
18+
19+
/**
20+
* Configuration for making inferences using arbitrary JSON payloads.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Pub/Sub API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class UnstructuredInference extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. A parameters object to be included in each inference request. The parameters object
34+
* is combined with the data field of the Pub/Sub message to form the inference request.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.Map<String, java.lang.Object> parameters;
39+
40+
/**
41+
* Optional. A parameters object to be included in each inference request. The parameters object
42+
* is combined with the data field of the Pub/Sub message to form the inference request.
43+
* @return value or {@code null} for none
44+
*/
45+
public java.util.Map<String, java.lang.Object> getParameters() {
46+
return parameters;
47+
}
48+
49+
/**
50+
* Optional. A parameters object to be included in each inference request. The parameters object
51+
* is combined with the data field of the Pub/Sub message to form the inference request.
52+
* @param parameters parameters or {@code null} for none
53+
*/
54+
public UnstructuredInference setParameters(java.util.Map<String, java.lang.Object> parameters) {
55+
this.parameters = parameters;
56+
return this;
57+
}
58+
59+
@Override
60+
public UnstructuredInference set(String fieldName, Object value) {
61+
return (UnstructuredInference) super.set(fieldName, value);
62+
}
63+
64+
@Override
65+
public UnstructuredInference clone() {
66+
return (UnstructuredInference) super.clone();
67+
}
68+
69+
}

clients/google-api-services-pubsub/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-pubsub</artifactId>
11-
<version>v1-rev20251212-2.0.0</version>
12-
<name>Cloud Pub/Sub API v1-rev20251212-2.0.0</name>
11+
<version>v1-rev20260116-2.0.0</version>
12+
<name>Cloud Pub/Sub API v1-rev20260116-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

0 commit comments

Comments
 (0)