Skip to content

Commit 1a60812

Browse files
chore(bazel): update protobuf, rules_go, gazelle, and gapic-generator-go versions (#141)
- protobuf v3.12.1 - rules_go v0.23.0 - gazelle v0.21.0 - gapic-generator-go v0.14.1 PiperOrigin-RevId: 313460921 Source-Author: Google APIs <[email protected]> Source-Date: Wed May 27 14:10:16 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: c4e37010d74071851ff24121f522e802231ac86e Source-Link: googleapis/googleapis@c4e3701
1 parent 660f216 commit 1a60812

34 files changed

+396
-3
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
138138
*
139139
* @return The projectId.
140140
*/
141+
@java.lang.Override
141142
public java.lang.String getProjectId() {
142143
java.lang.Object ref = projectId_;
143144
if (ref instanceof java.lang.String) {
@@ -160,6 +161,7 @@ public java.lang.String getProjectId() {
160161
*
161162
* @return The bytes for projectId.
162163
*/
164+
@java.lang.Override
163165
public com.google.protobuf.ByteString getProjectIdBytes() {
164166
java.lang.Object ref = projectId_;
165167
if (ref instanceof java.lang.String) {
@@ -185,6 +187,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
185187
* <code>repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
186188
* </code>
187189
*/
190+
@java.lang.Override
188191
public java.util.List<com.google.datastore.v1.Key> getKeysList() {
189192
return keys_;
190193
}
@@ -199,6 +202,7 @@ public java.util.List<com.google.datastore.v1.Key> getKeysList() {
199202
* <code>repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
200203
* </code>
201204
*/
205+
@java.lang.Override
202206
public java.util.List<? extends com.google.datastore.v1.KeyOrBuilder> getKeysOrBuilderList() {
203207
return keys_;
204208
}
@@ -213,6 +217,7 @@ public java.util.List<? extends com.google.datastore.v1.KeyOrBuilder> getKeysOrB
213217
* <code>repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
214218
* </code>
215219
*/
220+
@java.lang.Override
216221
public int getKeysCount() {
217222
return keys_.size();
218223
}
@@ -227,6 +232,7 @@ public int getKeysCount() {
227232
* <code>repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
228233
* </code>
229234
*/
235+
@java.lang.Override
230236
public com.google.datastore.v1.Key getKeys(int index) {
231237
return keys_.get(index);
232238
}
@@ -241,6 +247,7 @@ public com.google.datastore.v1.Key getKeys(int index) {
241247
* <code>repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
242248
* </code>
243249
*/
250+
@java.lang.Override
244251
public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) {
245252
return keys_.get(index);
246253
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
129129
*
130130
* <code>repeated .google.datastore.v1.Key keys = 1;</code>
131131
*/
132+
@java.lang.Override
132133
public java.util.List<com.google.datastore.v1.Key> getKeysList() {
133134
return keys_;
134135
}
@@ -142,6 +143,7 @@ public java.util.List<com.google.datastore.v1.Key> getKeysList() {
142143
*
143144
* <code>repeated .google.datastore.v1.Key keys = 1;</code>
144145
*/
146+
@java.lang.Override
145147
public java.util.List<? extends com.google.datastore.v1.KeyOrBuilder> getKeysOrBuilderList() {
146148
return keys_;
147149
}
@@ -155,6 +157,7 @@ public java.util.List<? extends com.google.datastore.v1.KeyOrBuilder> getKeysOrB
155157
*
156158
* <code>repeated .google.datastore.v1.Key keys = 1;</code>
157159
*/
160+
@java.lang.Override
158161
public int getKeysCount() {
159162
return keys_.size();
160163
}
@@ -168,6 +171,7 @@ public int getKeysCount() {
168171
*
169172
* <code>repeated .google.datastore.v1.Key keys = 1;</code>
170173
*/
174+
@java.lang.Override
171175
public com.google.datastore.v1.Key getKeys(int index) {
172176
return keys_.get(index);
173177
}
@@ -181,6 +185,7 @@ public com.google.datastore.v1.Key getKeys(int index) {
181185
*
182186
* <code>repeated .google.datastore.v1.Key keys = 1;</code>
183187
*/
188+
@java.lang.Override
184189
public com.google.datastore.v1.KeyOrBuilder getKeysOrBuilder(int index) {
185190
return keys_.get(index);
186191
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
131131
*
132132
* <code>repeated .google.datastore.v1.Value values = 1;</code>
133133
*/
134+
@java.lang.Override
134135
public java.util.List<com.google.datastore.v1.Value> getValuesList() {
135136
return values_;
136137
}
@@ -145,6 +146,7 @@ public java.util.List<com.google.datastore.v1.Value> getValuesList() {
145146
*
146147
* <code>repeated .google.datastore.v1.Value values = 1;</code>
147148
*/
149+
@java.lang.Override
148150
public java.util.List<? extends com.google.datastore.v1.ValueOrBuilder> getValuesOrBuilderList() {
149151
return values_;
150152
}
@@ -159,6 +161,7 @@ public java.util.List<? extends com.google.datastore.v1.ValueOrBuilder> getValue
159161
*
160162
* <code>repeated .google.datastore.v1.Value values = 1;</code>
161163
*/
164+
@java.lang.Override
162165
public int getValuesCount() {
163166
return values_.size();
164167
}
@@ -173,6 +176,7 @@ public int getValuesCount() {
173176
*
174177
* <code>repeated .google.datastore.v1.Value values = 1;</code>
175178
*/
179+
@java.lang.Override
176180
public com.google.datastore.v1.Value getValues(int index) {
177181
return values_.get(index);
178182
}
@@ -187,6 +191,7 @@ public com.google.datastore.v1.Value getValues(int index) {
187191
*
188192
* <code>repeated .google.datastore.v1.Value values = 1;</code>
189193
*/
194+
@java.lang.Override
190195
public com.google.datastore.v1.ValueOrBuilder getValuesOrBuilder(int index) {
191196
return values_.get(index);
192197
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
140140
*
141141
* @return The projectId.
142142
*/
143+
@java.lang.Override
143144
public java.lang.String getProjectId() {
144145
java.lang.Object ref = projectId_;
145146
if (ref instanceof java.lang.String) {
@@ -162,6 +163,7 @@ public java.lang.String getProjectId() {
162163
*
163164
* @return The bytes for projectId.
164165
*/
166+
@java.lang.Override
165167
public com.google.protobuf.ByteString getProjectIdBytes() {
166168
java.lang.Object ref = projectId_;
167169
if (ref instanceof java.lang.String) {
@@ -187,6 +189,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
187189
*
188190
* @return Whether the transactionOptions field is set.
189191
*/
192+
@java.lang.Override
190193
public boolean hasTransactionOptions() {
191194
return transactionOptions_ != null;
192195
}
@@ -201,6 +204,7 @@ public boolean hasTransactionOptions() {
201204
*
202205
* @return The transactionOptions.
203206
*/
207+
@java.lang.Override
204208
public com.google.datastore.v1.TransactionOptions getTransactionOptions() {
205209
return transactionOptions_ == null
206210
? com.google.datastore.v1.TransactionOptions.getDefaultInstance()
@@ -215,6 +219,7 @@ public com.google.datastore.v1.TransactionOptions getTransactionOptions() {
215219
*
216220
* <code>.google.datastore.v1.TransactionOptions transaction_options = 10;</code>
217221
*/
222+
@java.lang.Override
218223
public com.google.datastore.v1.TransactionOptionsOrBuilder getTransactionOptionsOrBuilder() {
219224
return getTransactionOptions();
220225
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
122122
*
123123
* @return The transaction.
124124
*/
125+
@java.lang.Override
125126
public com.google.protobuf.ByteString getTransaction() {
126127
return transaction_;
127128
}
@@ -454,6 +455,7 @@ public Builder mergeFrom(
454455
*
455456
* @return The transaction.
456457
*/
458+
@java.lang.Override
457459
public com.google.protobuf.ByteString getTransaction() {
458460
return transaction_;
459461
}

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,10 @@ public Mode findValueByNumber(int number) {
265265
};
266266

267267
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
268+
if (this == UNRECOGNIZED) {
269+
throw new java.lang.IllegalStateException(
270+
"Can't get the descriptor of an unrecognized enum value.");
271+
}
268272
return getDescriptor().getValues().get(ordinal());
269273
}
270274

@@ -354,6 +358,7 @@ public TransactionSelectorCase getTransactionSelectorCase() {
354358
*
355359
* @return The projectId.
356360
*/
361+
@java.lang.Override
357362
public java.lang.String getProjectId() {
358363
java.lang.Object ref = projectId_;
359364
if (ref instanceof java.lang.String) {
@@ -376,6 +381,7 @@ public java.lang.String getProjectId() {
376381
*
377382
* @return The bytes for projectId.
378383
*/
384+
@java.lang.Override
379385
public com.google.protobuf.ByteString getProjectIdBytes() {
380386
java.lang.Object ref = projectId_;
381387
if (ref instanceof java.lang.String) {
@@ -401,6 +407,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
401407
*
402408
* @return The enum numeric value on the wire for mode.
403409
*/
410+
@java.lang.Override
404411
public int getModeValue() {
405412
return mode_;
406413
}
@@ -415,6 +422,7 @@ public int getModeValue() {
415422
*
416423
* @return The mode.
417424
*/
425+
@java.lang.Override
418426
public com.google.datastore.v1.CommitRequest.Mode getMode() {
419427
@SuppressWarnings("deprecation")
420428
com.google.datastore.v1.CommitRequest.Mode result =
@@ -436,6 +444,7 @@ public com.google.datastore.v1.CommitRequest.Mode getMode() {
436444
*
437445
* @return The transaction.
438446
*/
447+
@java.lang.Override
439448
public com.google.protobuf.ByteString getTransaction() {
440449
if (transactionSelectorCase_ == 1) {
441450
return (com.google.protobuf.ByteString) transactionSelector_;
@@ -463,6 +472,7 @@ public com.google.protobuf.ByteString getTransaction() {
463472
*
464473
* <code>repeated .google.datastore.v1.Mutation mutations = 6;</code>
465474
*/
475+
@java.lang.Override
466476
public java.util.List<com.google.datastore.v1.Mutation> getMutationsList() {
467477
return mutations_;
468478
}
@@ -484,6 +494,7 @@ public java.util.List<com.google.datastore.v1.Mutation> getMutationsList() {
484494
*
485495
* <code>repeated .google.datastore.v1.Mutation mutations = 6;</code>
486496
*/
497+
@java.lang.Override
487498
public java.util.List<? extends com.google.datastore.v1.MutationOrBuilder>
488499
getMutationsOrBuilderList() {
489500
return mutations_;
@@ -506,6 +517,7 @@ public java.util.List<com.google.datastore.v1.Mutation> getMutationsList() {
506517
*
507518
* <code>repeated .google.datastore.v1.Mutation mutations = 6;</code>
508519
*/
520+
@java.lang.Override
509521
public int getMutationsCount() {
510522
return mutations_.size();
511523
}
@@ -527,6 +539,7 @@ public int getMutationsCount() {
527539
*
528540
* <code>repeated .google.datastore.v1.Mutation mutations = 6;</code>
529541
*/
542+
@java.lang.Override
530543
public com.google.datastore.v1.Mutation getMutations(int index) {
531544
return mutations_.get(index);
532545
}
@@ -548,6 +561,7 @@ public com.google.datastore.v1.Mutation getMutations(int index) {
548561
*
549562
* <code>repeated .google.datastore.v1.Mutation mutations = 6;</code>
550563
*/
564+
@java.lang.Override
551565
public com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(int index) {
552566
return mutations_.get(index);
553567
}
@@ -1112,6 +1126,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
11121126
*
11131127
* @return The enum numeric value on the wire for mode.
11141128
*/
1129+
@java.lang.Override
11151130
public int getModeValue() {
11161131
return mode_;
11171132
}
@@ -1128,6 +1143,7 @@ public int getModeValue() {
11281143
* @return This builder for chaining.
11291144
*/
11301145
public Builder setModeValue(int value) {
1146+
11311147
mode_ = value;
11321148
onChanged();
11331149
return this;
@@ -1143,6 +1159,7 @@ public Builder setModeValue(int value) {
11431159
*
11441160
* @return The mode.
11451161
*/
1162+
@java.lang.Override
11461163
public com.google.datastore.v1.CommitRequest.Mode getMode() {
11471164
@SuppressWarnings("deprecation")
11481165
com.google.datastore.v1.CommitRequest.Mode result =

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
137137
*
138138
* <code>repeated .google.datastore.v1.MutationResult mutation_results = 3;</code>
139139
*/
140+
@java.lang.Override
140141
public java.util.List<com.google.datastore.v1.MutationResult> getMutationResultsList() {
141142
return mutationResults_;
142143
}
@@ -150,6 +151,7 @@ public java.util.List<com.google.datastore.v1.MutationResult> getMutationResults
150151
*
151152
* <code>repeated .google.datastore.v1.MutationResult mutation_results = 3;</code>
152153
*/
154+
@java.lang.Override
153155
public java.util.List<? extends com.google.datastore.v1.MutationResultOrBuilder>
154156
getMutationResultsOrBuilderList() {
155157
return mutationResults_;
@@ -164,6 +166,7 @@ public java.util.List<com.google.datastore.v1.MutationResult> getMutationResults
164166
*
165167
* <code>repeated .google.datastore.v1.MutationResult mutation_results = 3;</code>
166168
*/
169+
@java.lang.Override
167170
public int getMutationResultsCount() {
168171
return mutationResults_.size();
169172
}
@@ -177,6 +180,7 @@ public int getMutationResultsCount() {
177180
*
178181
* <code>repeated .google.datastore.v1.MutationResult mutation_results = 3;</code>
179182
*/
183+
@java.lang.Override
180184
public com.google.datastore.v1.MutationResult getMutationResults(int index) {
181185
return mutationResults_.get(index);
182186
}
@@ -190,6 +194,7 @@ public com.google.datastore.v1.MutationResult getMutationResults(int index) {
190194
*
191195
* <code>repeated .google.datastore.v1.MutationResult mutation_results = 3;</code>
192196
*/
197+
@java.lang.Override
193198
public com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuilder(int index) {
194199
return mutationResults_.get(index);
195200
}
@@ -208,6 +213,7 @@ public com.google.datastore.v1.MutationResultOrBuilder getMutationResultsOrBuild
208213
*
209214
* @return The indexUpdates.
210215
*/
216+
@java.lang.Override
211217
public int getIndexUpdates() {
212218
return indexUpdates_;
213219
}
@@ -969,6 +975,7 @@ public com.google.datastore.v1.MutationResult.Builder addMutationResultsBuilder(
969975
*
970976
* @return The indexUpdates.
971977
*/
978+
@java.lang.Override
972979
public int getIndexUpdates() {
973980
return indexUpdates_;
974981
}

0 commit comments

Comments
 (0)