Skip to content

Commit f2b2305

Browse files
1 parent b161cf7 commit f2b2305

File tree

9 files changed

+502
-6
lines changed

9 files changed

+502
-6
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-rev20240912-2.0.0</version>
25+
<version>v1-rev20240918-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-rev20240912-2.0.0'
38+
implementation 'com.google.apis:google-api-services-pubsub:v1-rev20240918-2.0.0'
3939
}
4040
```
4141

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 reading Cloud Storage data in Avro binary format. The bytes of each object will
21+
* be set to the `data` field of a Pub/Sub message.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Cloud Pub/Sub API. For a detailed explanation see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class AvroFormat extends com.google.api.client.json.GenericJson {
32+
33+
@Override
34+
public AvroFormat set(String fieldName, Object value) {
35+
return (AvroFormat) super.set(fieldName, value);
36+
}
37+
38+
@Override
39+
public AvroFormat clone() {
40+
return (AvroFormat) super.clone();
41+
}
42+
43+
}
Lines changed: 228 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,228 @@
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+
* Ingestion settings for Cloud Storage.
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 CloudStorage extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. Data from Cloud Storage will be interpreted in Avro format.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private AvroFormat avroFormat;
38+
39+
/**
40+
* Optional. Cloud Storage bucket. The bucket name must be without any prefix like "gs://". See
41+
* the [bucket naming requirements] (https://cloud.google.com/storage/docs/buckets#naming).
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String bucket;
46+
47+
/**
48+
* Optional. Glob pattern used to match objects that will be ingested. If unset, all objects will
49+
* be ingested. See the [supported
50+
* patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-
51+
* prefixes-using-glob).
52+
* The value may be {@code null}.
53+
*/
54+
@com.google.api.client.util.Key
55+
private java.lang.String matchGlob;
56+
57+
/**
58+
* Optional. Only objects with a larger or equal creation timestamp will be ingested.
59+
* The value may be {@code null}.
60+
*/
61+
@com.google.api.client.util.Key
62+
private String minimumObjectCreateTime;
63+
64+
/**
65+
* Optional. It will be assumed data from Cloud Storage was written via [Cloud Storage
66+
* subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
67+
* The value may be {@code null}.
68+
*/
69+
@com.google.api.client.util.Key
70+
private PubSubAvroFormat pubsubAvroFormat;
71+
72+
/**
73+
* Output only. An output-only field that indicates the state of the Cloud Storage ingestion
74+
* source.
75+
* The value may be {@code null}.
76+
*/
77+
@com.google.api.client.util.Key
78+
private java.lang.String state;
79+
80+
/**
81+
* Optional. Data from Cloud Storage will be interpreted as text.
82+
* The value may be {@code null}.
83+
*/
84+
@com.google.api.client.util.Key
85+
private TextFormat textFormat;
86+
87+
/**
88+
* Optional. Data from Cloud Storage will be interpreted in Avro format.
89+
* @return value or {@code null} for none
90+
*/
91+
public AvroFormat getAvroFormat() {
92+
return avroFormat;
93+
}
94+
95+
/**
96+
* Optional. Data from Cloud Storage will be interpreted in Avro format.
97+
* @param avroFormat avroFormat or {@code null} for none
98+
*/
99+
public CloudStorage setAvroFormat(AvroFormat avroFormat) {
100+
this.avroFormat = avroFormat;
101+
return this;
102+
}
103+
104+
/**
105+
* Optional. Cloud Storage bucket. The bucket name must be without any prefix like "gs://". See
106+
* the [bucket naming requirements] (https://cloud.google.com/storage/docs/buckets#naming).
107+
* @return value or {@code null} for none
108+
*/
109+
public java.lang.String getBucket() {
110+
return bucket;
111+
}
112+
113+
/**
114+
* Optional. Cloud Storage bucket. The bucket name must be without any prefix like "gs://". See
115+
* the [bucket naming requirements] (https://cloud.google.com/storage/docs/buckets#naming).
116+
* @param bucket bucket or {@code null} for none
117+
*/
118+
public CloudStorage setBucket(java.lang.String bucket) {
119+
this.bucket = bucket;
120+
return this;
121+
}
122+
123+
/**
124+
* Optional. Glob pattern used to match objects that will be ingested. If unset, all objects will
125+
* be ingested. See the [supported
126+
* patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-
127+
* prefixes-using-glob).
128+
* @return value or {@code null} for none
129+
*/
130+
public java.lang.String getMatchGlob() {
131+
return matchGlob;
132+
}
133+
134+
/**
135+
* Optional. Glob pattern used to match objects that will be ingested. If unset, all objects will
136+
* be ingested. See the [supported
137+
* patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-
138+
* prefixes-using-glob).
139+
* @param matchGlob matchGlob or {@code null} for none
140+
*/
141+
public CloudStorage setMatchGlob(java.lang.String matchGlob) {
142+
this.matchGlob = matchGlob;
143+
return this;
144+
}
145+
146+
/**
147+
* Optional. Only objects with a larger or equal creation timestamp will be ingested.
148+
* @return value or {@code null} for none
149+
*/
150+
public String getMinimumObjectCreateTime() {
151+
return minimumObjectCreateTime;
152+
}
153+
154+
/**
155+
* Optional. Only objects with a larger or equal creation timestamp will be ingested.
156+
* @param minimumObjectCreateTime minimumObjectCreateTime or {@code null} for none
157+
*/
158+
public CloudStorage setMinimumObjectCreateTime(String minimumObjectCreateTime) {
159+
this.minimumObjectCreateTime = minimumObjectCreateTime;
160+
return this;
161+
}
162+
163+
/**
164+
* Optional. It will be assumed data from Cloud Storage was written via [Cloud Storage
165+
* subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
166+
* @return value or {@code null} for none
167+
*/
168+
public PubSubAvroFormat getPubsubAvroFormat() {
169+
return pubsubAvroFormat;
170+
}
171+
172+
/**
173+
* Optional. It will be assumed data from Cloud Storage was written via [Cloud Storage
174+
* subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
175+
* @param pubsubAvroFormat pubsubAvroFormat or {@code null} for none
176+
*/
177+
public CloudStorage setPubsubAvroFormat(PubSubAvroFormat pubsubAvroFormat) {
178+
this.pubsubAvroFormat = pubsubAvroFormat;
179+
return this;
180+
}
181+
182+
/**
183+
* Output only. An output-only field that indicates the state of the Cloud Storage ingestion
184+
* source.
185+
* @return value or {@code null} for none
186+
*/
187+
public java.lang.String getState() {
188+
return state;
189+
}
190+
191+
/**
192+
* Output only. An output-only field that indicates the state of the Cloud Storage ingestion
193+
* source.
194+
* @param state state or {@code null} for none
195+
*/
196+
public CloudStorage setState(java.lang.String state) {
197+
this.state = state;
198+
return this;
199+
}
200+
201+
/**
202+
* Optional. Data from Cloud Storage will be interpreted as text.
203+
* @return value or {@code null} for none
204+
*/
205+
public TextFormat getTextFormat() {
206+
return textFormat;
207+
}
208+
209+
/**
210+
* Optional. Data from Cloud Storage will be interpreted as text.
211+
* @param textFormat textFormat or {@code null} for none
212+
*/
213+
public CloudStorage setTextFormat(TextFormat textFormat) {
214+
this.textFormat = textFormat;
215+
return this;
216+
}
217+
218+
@Override
219+
public CloudStorage set(String fieldName, Object value) {
220+
return (CloudStorage) super.set(fieldName, value);
221+
}
222+
223+
@Override
224+
public CloudStorage clone() {
225+
return (CloudStorage) super.clone();
226+
}
227+
228+
}

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,20 @@ public final class IngestionDataSourceSettings extends com.google.api.client.jso
3636
@com.google.api.client.util.Key
3737
private AwsKinesis awsKinesis;
3838

39+
/**
40+
* Optional. Cloud Storage.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private CloudStorage cloudStorage;
45+
46+
/**
47+
* Optional. Platform Logs settings. If unset, no Platform Logs will be generated.
48+
* The value may be {@code null}.
49+
*/
50+
@com.google.api.client.util.Key
51+
private PlatformLogsSettings platformLogsSettings;
52+
3953
/**
4054
* Optional. Amazon Kinesis Data Streams.
4155
* @return value or {@code null} for none
@@ -53,6 +67,40 @@ public IngestionDataSourceSettings setAwsKinesis(AwsKinesis awsKinesis) {
5367
return this;
5468
}
5569

70+
/**
71+
* Optional. Cloud Storage.
72+
* @return value or {@code null} for none
73+
*/
74+
public CloudStorage getCloudStorage() {
75+
return cloudStorage;
76+
}
77+
78+
/**
79+
* Optional. Cloud Storage.
80+
* @param cloudStorage cloudStorage or {@code null} for none
81+
*/
82+
public IngestionDataSourceSettings setCloudStorage(CloudStorage cloudStorage) {
83+
this.cloudStorage = cloudStorage;
84+
return this;
85+
}
86+
87+
/**
88+
* Optional. Platform Logs settings. If unset, no Platform Logs will be generated.
89+
* @return value or {@code null} for none
90+
*/
91+
public PlatformLogsSettings getPlatformLogsSettings() {
92+
return platformLogsSettings;
93+
}
94+
95+
/**
96+
* Optional. Platform Logs settings. If unset, no Platform Logs will be generated.
97+
* @param platformLogsSettings platformLogsSettings or {@code null} for none
98+
*/
99+
public IngestionDataSourceSettings setPlatformLogsSettings(PlatformLogsSettings platformLogsSettings) {
100+
this.platformLogsSettings = platformLogsSettings;
101+
return this;
102+
}
103+
56104
@Override
57105
public IngestionDataSourceSettings set(String fieldName, Object value) {
58106
return (IngestionDataSourceSettings) super.set(fieldName, value);

0 commit comments

Comments
 (0)