Skip to content

Commit cd7161b

Browse files
1 parent 592e28c commit cd7161b

File tree

7 files changed

+249
-9
lines changed

7 files changed

+249
-9
lines changed

clients/google-api-services-analyticshub/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-analyticshub</artifactId>
25-
<version>v1-rev20250126-2.0.0</version>
25+
<version>v1-rev20250203-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-analyticshub:v1-rev20250126-2.0.0'
38+
implementation 'com.google.apis:google-api-services-analyticshub:v1-rev20250203-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-analyticshub/v1/2.0.0/com/google/api/services/analyticshub/v1/model/BigQueryDatasetSource.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
public final class BigQueryDatasetSource extends com.google.api.client.json.GenericJson {
3434

3535
/**
36-
* Resource name of the dataset source for this listing. e.g. `projects/myproject/datasets/123`
36+
* Optional. Resource name of the dataset source for this listing. e.g.
37+
* `projects/myproject/datasets/123`
3738
* The value may be {@code null}.
3839
*/
3940
@com.google.api.client.util.Key
@@ -56,15 +57,17 @@ public final class BigQueryDatasetSource extends com.google.api.client.json.Gene
5657
private java.util.List<SelectedResource> selectedResources;
5758

5859
/**
59-
* Resource name of the dataset source for this listing. e.g. `projects/myproject/datasets/123`
60+
* Optional. Resource name of the dataset source for this listing. e.g.
61+
* `projects/myproject/datasets/123`
6062
* @return value or {@code null} for none
6163
*/
6264
public java.lang.String getDataset() {
6365
return dataset;
6466
}
6567

6668
/**
67-
* Resource name of the dataset source for this listing. e.g. `projects/myproject/datasets/123`
69+
* Optional. Resource name of the dataset source for this listing. e.g.
70+
* `projects/myproject/datasets/123`
6871
* @param dataset dataset or {@code null} for none
6972
*/
7073
public BigQueryDatasetSource setDataset(java.lang.String dataset) {

clients/google-api-services-analyticshub/v1/2.0.0/com/google/api/services/analyticshub/v1/model/GooglePubsubV1Subscription.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,14 @@ public final class GooglePubsubV1Subscription extends com.google.api.client.json
155155
@com.google.api.client.util.Key
156156
private String messageRetentionDuration;
157157

158+
/**
159+
* Optional. Transforms to be applied to messages before they are delivered to subscribers.
160+
* Transforms are applied in the order specified.
161+
* The value may be {@code null}.
162+
*/
163+
@com.google.api.client.util.Key
164+
private java.util.List<MessageTransform> messageTransforms;
165+
158166
/**
159167
* Required. Name of the subscription. Format is `projects/{project}/subscriptions/{sub}`.
160168
* The value may be {@code null}.
@@ -493,6 +501,25 @@ public GooglePubsubV1Subscription setMessageRetentionDuration(String messageRete
493501
return this;
494502
}
495503

504+
/**
505+
* Optional. Transforms to be applied to messages before they are delivered to subscribers.
506+
* Transforms are applied in the order specified.
507+
* @return value or {@code null} for none
508+
*/
509+
public java.util.List<MessageTransform> getMessageTransforms() {
510+
return messageTransforms;
511+
}
512+
513+
/**
514+
* Optional. Transforms to be applied to messages before they are delivered to subscribers.
515+
* Transforms are applied in the order specified.
516+
* @param messageTransforms messageTransforms or {@code null} for none
517+
*/
518+
public GooglePubsubV1Subscription setMessageTransforms(java.util.List<MessageTransform> messageTransforms) {
519+
this.messageTransforms = messageTransforms;
520+
return this;
521+
}
522+
496523
/**
497524
* Required. Name of the subscription. Format is `projects/{project}/subscriptions/{sub}`.
498525
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
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.analyticshub.v1.model;
18+
19+
/**
20+
* User-defined JavaScript function that can transform or filter a Pub/Sub message.
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 Analytics Hub 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 JavaScriptUDF extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. JavaScript code that contains a function `function_name` with the below signature:
34+
* ``` * * Transforms a Pub/Sub message. * @return {(Object)>|null)} - To * filter a message,
35+
* return `null`. To transform a message return a map * with the following keys: * - (required)
36+
* 'data' : {string} * - (optional) 'attributes' : {Object} * Returning empty `attributes` will
37+
* remove all attributes from the * message. * * @param {(Object)>} Pub/Sub * message. Keys: * -
38+
* (required) 'data' : {string} * - (required) 'attributes' : {Object} * * @param {Object}
39+
* metadata - Pub/Sub message metadata. * Keys: * - (required) 'message_id' : {string} * -
40+
* (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) 'ordering_key':
41+
* {string} function (message, metadata) { } ```
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String code;
46+
47+
/**
48+
* Required. Name of the JavasScript function that should applied to Pub/Sub messages.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.lang.String functionName;
53+
54+
/**
55+
* Required. JavaScript code that contains a function `function_name` with the below signature:
56+
* ``` * * Transforms a Pub/Sub message. * @return {(Object)>|null)} - To * filter a message,
57+
* return `null`. To transform a message return a map * with the following keys: * - (required)
58+
* 'data' : {string} * - (optional) 'attributes' : {Object} * Returning empty `attributes` will
59+
* remove all attributes from the * message. * * @param {(Object)>} Pub/Sub * message. Keys: * -
60+
* (required) 'data' : {string} * - (required) 'attributes' : {Object} * * @param {Object}
61+
* metadata - Pub/Sub message metadata. * Keys: * - (required) 'message_id' : {string} * -
62+
* (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) 'ordering_key':
63+
* {string} function (message, metadata) { } ```
64+
* @return value or {@code null} for none
65+
*/
66+
public java.lang.String getCode() {
67+
return code;
68+
}
69+
70+
/**
71+
* Required. JavaScript code that contains a function `function_name` with the below signature:
72+
* ``` * * Transforms a Pub/Sub message. * @return {(Object)>|null)} - To * filter a message,
73+
* return `null`. To transform a message return a map * with the following keys: * - (required)
74+
* 'data' : {string} * - (optional) 'attributes' : {Object} * Returning empty `attributes` will
75+
* remove all attributes from the * message. * * @param {(Object)>} Pub/Sub * message. Keys: * -
76+
* (required) 'data' : {string} * - (required) 'attributes' : {Object} * * @param {Object}
77+
* metadata - Pub/Sub message metadata. * Keys: * - (required) 'message_id' : {string} * -
78+
* (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) 'ordering_key':
79+
* {string} function (message, metadata) { } ```
80+
* @param code code or {@code null} for none
81+
*/
82+
public JavaScriptUDF setCode(java.lang.String code) {
83+
this.code = code;
84+
return this;
85+
}
86+
87+
/**
88+
* Required. Name of the JavasScript function that should applied to Pub/Sub messages.
89+
* @return value or {@code null} for none
90+
*/
91+
public java.lang.String getFunctionName() {
92+
return functionName;
93+
}
94+
95+
/**
96+
* Required. Name of the JavasScript function that should applied to Pub/Sub messages.
97+
* @param functionName functionName or {@code null} for none
98+
*/
99+
public JavaScriptUDF setFunctionName(java.lang.String functionName) {
100+
this.functionName = functionName;
101+
return this;
102+
}
103+
104+
@Override
105+
public JavaScriptUDF set(String fieldName, Object value) {
106+
return (JavaScriptUDF) super.set(fieldName, value);
107+
}
108+
109+
@Override
110+
public JavaScriptUDF clone() {
111+
return (JavaScriptUDF) super.clone();
112+
}
113+
114+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
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.analyticshub.v1.model;
18+
19+
/**
20+
* All supported message transforms types.
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 Analytics Hub 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 MessageTransform extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. If set to true, the transform is enabled. If false, the transform is disabled and
34+
* will not be applied to messages. Defaults to `true`.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.Boolean enabled;
39+
40+
/**
41+
* Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's are specified on a
42+
* resource, each must have a unique `function_name`.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private JavaScriptUDF javascriptUdf;
47+
48+
/**
49+
* Optional. If set to true, the transform is enabled. If false, the transform is disabled and
50+
* will not be applied to messages. Defaults to `true`.
51+
* @return value or {@code null} for none
52+
*/
53+
public java.lang.Boolean getEnabled() {
54+
return enabled;
55+
}
56+
57+
/**
58+
* Optional. If set to true, the transform is enabled. If false, the transform is disabled and
59+
* will not be applied to messages. Defaults to `true`.
60+
* @param enabled enabled or {@code null} for none
61+
*/
62+
public MessageTransform setEnabled(java.lang.Boolean enabled) {
63+
this.enabled = enabled;
64+
return this;
65+
}
66+
67+
/**
68+
* Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's are specified on a
69+
* resource, each must have a unique `function_name`.
70+
* @return value or {@code null} for none
71+
*/
72+
public JavaScriptUDF getJavascriptUdf() {
73+
return javascriptUdf;
74+
}
75+
76+
/**
77+
* Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's are specified on a
78+
* resource, each must have a unique `function_name`.
79+
* @param javascriptUdf javascriptUdf or {@code null} for none
80+
*/
81+
public MessageTransform setJavascriptUdf(JavaScriptUDF javascriptUdf) {
82+
this.javascriptUdf = javascriptUdf;
83+
return this;
84+
}
85+
86+
@Override
87+
public MessageTransform set(String fieldName, Object value) {
88+
return (MessageTransform) super.set(fieldName, value);
89+
}
90+
91+
@Override
92+
public MessageTransform clone() {
93+
return (MessageTransform) super.clone();
94+
}
95+
96+
}

clients/google-api-services-analyticshub/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-analyticshub</artifactId>
11-
<version>v1-rev20250126-2.0.0</version>
12-
<name>Analytics Hub API v1-rev20250126-2.0.0</name>
11+
<version>v1-rev20250203-2.0.0</version>
12+
<name>Analytics Hub API v1-rev20250203-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-analyticshub/v1/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-analyticshub</artifactId>
25-
<version>v1-rev20250126-2.0.0</version>
25+
<version>v1-rev20250203-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-analyticshub:v1-rev20250126-2.0.0'
38+
implementation 'com.google.apis:google-api-services-analyticshub:v1-rev20250203-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)