Skip to content

Commit 9349100

Browse files
chore: update protobuf v3.15.3 (#551)
This release makes --experimental_allow_proto3_optional no longer necessary. PiperOrigin-RevId: 359781040 Source-Author: Google APIs <noreply@google.com> Source-Date: Fri Feb 26 09:59:49 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: f6dd7e47620566925a4b3f1ce029e74e1b2f2516 Source-Link: googleapis/googleapis@f6dd7e4
1 parent b56d5f5 commit 9349100

5 files changed

Lines changed: 94 additions & 4 deletions

File tree

java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,22 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
313313
}
314314

315315
public static final int SNAPSHOT_FIELD_NUMBER = 3;
316+
/**
317+
*
318+
*
319+
* <pre>
320+
* The snapshot to seek to. The snapshot's topic must be the same as that of
321+
* the provided subscription.
322+
* Format is `projects/{project}/snapshots/{snap}`.
323+
* </pre>
324+
*
325+
* <code>string snapshot = 3 [(.google.api.resource_reference) = { ... }</code>
326+
*
327+
* @return Whether the snapshot field is set.
328+
*/
329+
public boolean hasSnapshot() {
330+
return targetCase_ == 3;
331+
}
316332
/**
317333
*
318334
*
@@ -1177,6 +1193,23 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
11771193
return timeBuilder_;
11781194
}
11791195

1196+
/**
1197+
*
1198+
*
1199+
* <pre>
1200+
* The snapshot to seek to. The snapshot's topic must be the same as that of
1201+
* the provided subscription.
1202+
* Format is `projects/{project}/snapshots/{snap}`.
1203+
* </pre>
1204+
*
1205+
* <code>string snapshot = 3 [(.google.api.resource_reference) = { ... }</code>
1206+
*
1207+
* @return Whether the snapshot field is set.
1208+
*/
1209+
@java.lang.Override
1210+
public boolean hasSnapshot() {
1211+
return targetCase_ == 3;
1212+
}
11801213
/**
11811214
*
11821215
*

java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,20 @@ public interface SeekRequestOrBuilder
117117
*/
118118
com.google.protobuf.TimestampOrBuilder getTimeOrBuilder();
119119

120+
/**
121+
*
122+
*
123+
* <pre>
124+
* The snapshot to seek to. The snapshot's topic must be the same as that of
125+
* the provided subscription.
126+
* Format is `projects/{project}/snapshots/{snap}`.
127+
* </pre>
128+
*
129+
* <code>string snapshot = 3 [(.google.api.resource_reference) = { ... }</code>
130+
*
131+
* @return Whether the snapshot field is set.
132+
*/
133+
boolean hasSnapshot();
120134
/**
121135
*
122136
*

java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,21 @@ public com.google.protobuf.ByteString getParentBytes() {
250250
}
251251

252252
public static final int NAME_FIELD_NUMBER = 2;
253+
/**
254+
*
255+
*
256+
* <pre>
257+
* Name of the schema against which to validate.
258+
* Format is `projects/{project}/schemas/{schema}`.
259+
* </pre>
260+
*
261+
* <code>string name = 2 [(.google.api.resource_reference) = { ... }</code>
262+
*
263+
* @return Whether the name field is set.
264+
*/
265+
public boolean hasName() {
266+
return schemaSpecCase_ == 2;
267+
}
253268
/**
254269
*
255270
*
@@ -960,6 +975,22 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
960975
return this;
961976
}
962977

978+
/**
979+
*
980+
*
981+
* <pre>
982+
* Name of the schema against which to validate.
983+
* Format is `projects/{project}/schemas/{schema}`.
984+
* </pre>
985+
*
986+
* <code>string name = 2 [(.google.api.resource_reference) = { ... }</code>
987+
*
988+
* @return Whether the name field is set.
989+
*/
990+
@java.lang.Override
991+
public boolean hasName() {
992+
return schemaSpecCase_ == 2;
993+
}
963994
/**
964995
*
965996
*

java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,19 @@ public interface ValidateMessageRequestOrBuilder
5454
*/
5555
com.google.protobuf.ByteString getParentBytes();
5656

57+
/**
58+
*
59+
*
60+
* <pre>
61+
* Name of the schema against which to validate.
62+
* Format is `projects/{project}/schemas/{schema}`.
63+
* </pre>
64+
*
65+
* <code>string name = 2 [(.google.api.resource_reference) = { ... }</code>
66+
*
67+
* @return Whether the name field is set.
68+
*/
69+
boolean hasName();
5770
/**
5871
*
5972
*

java-pubsub/synth.metadata

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-pubsub.git",
7-
"sha": "3c478ec68afb8426ba5e670c563a7a925e431d85"
7+
"sha": "ed6b798c3908dfffe67a160d0cf38ef775081834"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "41d8fbfec9d4bc4a8859f78185713950913b4bf3",
15-
"internalRef": "348038736"
14+
"sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516",
15+
"internalRef": "359781040"
1616
}
1717
},
1818
{
@@ -49,7 +49,6 @@
4949
".github/workflows/approve-readme.yaml",
5050
".github/workflows/auto-release.yaml",
5151
".github/workflows/ci.yaml",
52-
".github/workflows/samples.yaml",
5352
".kokoro/build.bat",
5453
".kokoro/build.sh",
5554
".kokoro/coerce_logs.sh",

0 commit comments

Comments
 (0)