Skip to content

Commit 71da2ca

Browse files
chore: protobuf 3.18.1 (#555)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/6c36d33a-e118-40fa-be81-d54f579fe14f/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 403132955 Source-Link: googleapis/googleapis@d2977af
1 parent 238f73c commit 71da2ca

File tree

13 files changed

+30
-30
lines changed

13 files changed

+30
-30
lines changed

proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
269269
for (int i = 0; i < keys_.size(); i++) {
270270
output.writeMessage(1, keys_.get(i));
271271
}
272-
if (!getProjectIdBytes().isEmpty()) {
272+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
273273
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, projectId_);
274274
}
275275
unknownFields.writeTo(output);
@@ -284,7 +284,7 @@ public int getSerializedSize() {
284284
for (int i = 0; i < keys_.size(); i++) {
285285
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, keys_.get(i));
286286
}
287-
if (!getProjectIdBytes().isEmpty()) {
287+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
288288
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_);
289289
}
290290
size += unknownFields.getSerializedSize();

proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public final boolean isInitialized() {
238238

239239
@java.lang.Override
240240
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
241-
if (!getProjectIdBytes().isEmpty()) {
241+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
242242
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, projectId_);
243243
}
244244
if (transactionOptions_ != null) {
@@ -253,7 +253,7 @@ public int getSerializedSize() {
253253
if (size != -1) return size;
254254

255255
size = 0;
256-
if (!getProjectIdBytes().isEmpty()) {
256+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
257257
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_);
258258
}
259259
if (transactionOptions_ != null) {

proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
606606
for (int i = 0; i < mutations_.size(); i++) {
607607
output.writeMessage(6, mutations_.get(i));
608608
}
609-
if (!getProjectIdBytes().isEmpty()) {
609+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
610610
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, projectId_);
611611
}
612612
unknownFields.writeTo(output);
@@ -629,7 +629,7 @@ public int getSerializedSize() {
629629
for (int i = 0; i < mutations_.size(); i++) {
630630
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, mutations_.get(i));
631631
}
632-
if (!getProjectIdBytes().isEmpty()) {
632+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
633633
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_);
634634
}
635635
size += unknownFields.getSerializedSize();

proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQuery.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ public final boolean isInitialized() {
455455

456456
@java.lang.Override
457457
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
458-
if (!getQueryStringBytes().isEmpty()) {
458+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryString_)) {
459459
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryString_);
460460
}
461461
if (allowLiterals_ != false) {
@@ -475,7 +475,7 @@ public int getSerializedSize() {
475475
if (size != -1) return size;
476476

477477
size = 0;
478-
if (!getQueryStringBytes().isEmpty()) {
478+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryString_)) {
479479
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queryString_);
480480
}
481481
if (allowLiterals_ != false) {

proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Key.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ public final boolean isInitialized() {
591591

592592
@java.lang.Override
593593
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
594-
if (!getKindBytes().isEmpty()) {
594+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) {
595595
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_);
596596
}
597597
if (idTypeCase_ == 2) {
@@ -609,7 +609,7 @@ public int getSerializedSize() {
609609
if (size != -1) return size;
610610

611611
size = 0;
612-
if (!getKindBytes().isEmpty()) {
612+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) {
613613
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kind_);
614614
}
615615
if (idTypeCase_ == 2) {

proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/KindExpression.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public final boolean isInitialized() {
174174

175175
@java.lang.Override
176176
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
177-
if (!getNameBytes().isEmpty()) {
177+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
178178
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
179179
}
180180
unknownFields.writeTo(output);
@@ -186,7 +186,7 @@ public int getSerializedSize() {
186186
if (size != -1) return size;
187187

188188
size = 0;
189-
if (!getNameBytes().isEmpty()) {
189+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
190190
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
191191
}
192192
size += unknownFields.getSerializedSize();

proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/LookupRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
331331
for (int i = 0; i < keys_.size(); i++) {
332332
output.writeMessage(3, keys_.get(i));
333333
}
334-
if (!getProjectIdBytes().isEmpty()) {
334+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
335335
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, projectId_);
336336
}
337337
unknownFields.writeTo(output);
@@ -349,7 +349,7 @@ public int getSerializedSize() {
349349
for (int i = 0; i < keys_.size(); i++) {
350350
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, keys_.get(i));
351351
}
352-
if (!getProjectIdBytes().isEmpty()) {
352+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
353353
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_);
354354
}
355355
size += unknownFields.getSerializedSize();

proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionId.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,10 @@ public final boolean isInitialized() {
246246

247247
@java.lang.Override
248248
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
249-
if (!getProjectIdBytes().isEmpty()) {
249+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
250250
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_);
251251
}
252-
if (!getNamespaceIdBytes().isEmpty()) {
252+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespaceId_)) {
253253
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, namespaceId_);
254254
}
255255
unknownFields.writeTo(output);
@@ -261,10 +261,10 @@ public int getSerializedSize() {
261261
if (size != -1) return size;
262262

263263
size = 0;
264-
if (!getProjectIdBytes().isEmpty()) {
264+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
265265
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_);
266266
}
267-
if (!getNamespaceIdBytes().isEmpty()) {
267+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespaceId_)) {
268268
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, namespaceId_);
269269
}
270270
size += unknownFields.getSerializedSize();

proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReference.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public final boolean isInitialized() {
176176

177177
@java.lang.Override
178178
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
179-
if (!getNameBytes().isEmpty()) {
179+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
180180
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
181181
}
182182
unknownFields.writeTo(output);
@@ -188,7 +188,7 @@ public int getSerializedSize() {
188188
if (size != -1) return size;
189189

190190
size = 0;
191-
if (!getNameBytes().isEmpty()) {
191+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
192192
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
193193
}
194194
size += unknownFields.getSerializedSize();

proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReserveIdsRequest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
326326
for (int i = 0; i < keys_.size(); i++) {
327327
output.writeMessage(1, keys_.get(i));
328328
}
329-
if (!getProjectIdBytes().isEmpty()) {
329+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
330330
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, projectId_);
331331
}
332-
if (!getDatabaseIdBytes().isEmpty()) {
332+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) {
333333
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, databaseId_);
334334
}
335335
unknownFields.writeTo(output);
@@ -344,10 +344,10 @@ public int getSerializedSize() {
344344
for (int i = 0; i < keys_.size(); i++) {
345345
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, keys_.get(i));
346346
}
347-
if (!getProjectIdBytes().isEmpty()) {
347+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
348348
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_);
349349
}
350-
if (!getDatabaseIdBytes().isEmpty()) {
350+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) {
351351
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, databaseId_);
352352
}
353353
size += unknownFields.getSerializedSize();

0 commit comments

Comments
 (0)