Skip to content
This repository was archived by the owner on Sep 9, 2023. It is now read-only.

Commit 5ece66d

Browse files
fix: Remove invalid resource annotations (#699)
* fix: Remove invalid resource annotations Note: normally removing an annotation is a breaking change. However, the annotation here is invalid as it doesn't refer to a string field. Any generator which actually tried to use it in a meaningful way would either generate invalid code or fail to generate at all. Therefore removing it can't break anything. PiperOrigin-RevId: 404455880 Source-Link: googleapis/googleapis@dc83df8 Source-Link: https://github.com/googleapis/googleapis-gen/commit/f0d78f497979b0d7d6b93587d904c8464512853e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjBkNzhmNDk3OTc5YjBkN2Q2YjkzNTg3ZDkwNGM4NDY0NTEyODUzZSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 6a52a58 commit 5ece66d

File tree

582 files changed

+2515
-2641
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

582 files changed

+2515
-2641
lines changed

proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextArtifactsAndExecutionsRequest.java

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

358358
@java.lang.Override
359359
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
360-
if (!getContextBytes().isEmpty()) {
360+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(context_)) {
361361
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, context_);
362362
}
363363
for (int i = 0; i < artifacts_.size(); i++) {
@@ -375,7 +375,7 @@ public int getSerializedSize() {
375375
if (size != -1) return size;
376376

377377
size = 0;
378-
if (!getContextBytes().isEmpty()) {
378+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(context_)) {
379379
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, context_);
380380
}
381381
{

proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextChildrenRequest.java

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

259259
@java.lang.Override
260260
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
261-
if (!getContextBytes().isEmpty()) {
261+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(context_)) {
262262
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, context_);
263263
}
264264
for (int i = 0; i < childContexts_.size(); i++) {
@@ -273,7 +273,7 @@ public int getSerializedSize() {
273273
if (size != -1) return size;
274274

275275
size = 0;
276-
if (!getContextBytes().isEmpty()) {
276+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(context_)) {
277277
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, context_);
278278
}
279279
{

proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddExecutionEventsRequest.java

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

270270
@java.lang.Override
271271
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
272-
if (!getExecutionBytes().isEmpty()) {
272+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(execution_)) {
273273
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, execution_);
274274
}
275275
for (int i = 0; i < events_.size(); i++) {
@@ -284,7 +284,7 @@ public int getSerializedSize() {
284284
if (size != -1) return size;
285285

286286
size = 0;
287-
if (!getExecutionBytes().isEmpty()) {
287+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(execution_)) {
288288
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, execution_);
289289
}
290290
for (int i = 0; i < events_.size(); i++) {

proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddTrialMeasurementRequest.java

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

253253
@java.lang.Override
254254
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
255-
if (!getTrialNameBytes().isEmpty()) {
255+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trialName_)) {
256256
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trialName_);
257257
}
258258
if (measurement_ != null) {
@@ -267,7 +267,7 @@ public int getSerializedSize() {
267267
if (size != -1) return size;
268268

269269
size = 0;
270-
if (!getTrialNameBytes().isEmpty()) {
270+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trialName_)) {
271271
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, trialName_);
272272
}
273273
if (measurement_ != null) {

proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Annotation.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -745,10 +745,10 @@ public final boolean isInitialized() {
745745

746746
@java.lang.Override
747747
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
748-
if (!getNameBytes().isEmpty()) {
748+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
749749
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
750750
}
751-
if (!getPayloadSchemaUriBytes().isEmpty()) {
751+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payloadSchemaUri_)) {
752752
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, payloadSchemaUri_);
753753
}
754754
if (payload_ != null) {
@@ -765,7 +765,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
765765
if (updateTime_ != null) {
766766
output.writeMessage(7, getUpdateTime());
767767
}
768-
if (!getEtagBytes().isEmpty()) {
768+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
769769
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, etag_);
770770
}
771771
unknownFields.writeTo(output);
@@ -777,10 +777,10 @@ public int getSerializedSize() {
777777
if (size != -1) return size;
778778

779779
size = 0;
780-
if (!getNameBytes().isEmpty()) {
780+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
781781
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
782782
}
783-
if (!getPayloadSchemaUriBytes().isEmpty()) {
783+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payloadSchemaUri_)) {
784784
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, payloadSchemaUri_);
785785
}
786786
if (payload_ != null) {
@@ -805,7 +805,7 @@ public int getSerializedSize() {
805805
if (updateTime_ != null) {
806806
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime());
807807
}
808-
if (!getEtagBytes().isEmpty()) {
808+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
809809
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_);
810810
}
811811
size += unknownFields.getSerializedSize();

proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpec.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,10 @@ public final boolean isInitialized() {
422422

423423
@java.lang.Override
424424
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
425-
if (!getNameBytes().isEmpty()) {
425+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
426426
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
427427
}
428-
if (!getDisplayNameBytes().isEmpty()) {
428+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
429429
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
430430
}
431431
if (createTime_ != null) {
@@ -434,7 +434,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
434434
if (updateTime_ != null) {
435435
output.writeMessage(4, getUpdateTime());
436436
}
437-
if (!getEtagBytes().isEmpty()) {
437+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
438438
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, etag_);
439439
}
440440
unknownFields.writeTo(output);
@@ -446,10 +446,10 @@ public int getSerializedSize() {
446446
if (size != -1) return size;
447447

448448
size = 0;
449-
if (!getNameBytes().isEmpty()) {
449+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
450450
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
451451
}
452-
if (!getDisplayNameBytes().isEmpty()) {
452+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
453453
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
454454
}
455455
if (createTime_ != null) {
@@ -458,7 +458,7 @@ public int getSerializedSize() {
458458
if (updateTime_ != null) {
459459
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime());
460460
}
461-
if (!getEtagBytes().isEmpty()) {
461+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
462462
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, etag_);
463463
}
464464
size += unknownFields.getSerializedSize();

proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Artifact.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,16 +1079,16 @@ public final boolean isInitialized() {
10791079

10801080
@java.lang.Override
10811081
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1082-
if (!getNameBytes().isEmpty()) {
1082+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
10831083
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
10841084
}
1085-
if (!getDisplayNameBytes().isEmpty()) {
1085+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
10861086
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
10871087
}
1088-
if (!getUriBytes().isEmpty()) {
1088+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
10891089
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, uri_);
10901090
}
1091-
if (!getEtagBytes().isEmpty()) {
1091+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
10921092
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_);
10931093
}
10941094
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
@@ -1102,16 +1102,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
11021102
if (state_ != com.google.cloud.aiplatform.v1.Artifact.State.STATE_UNSPECIFIED.getNumber()) {
11031103
output.writeEnum(13, state_);
11041104
}
1105-
if (!getSchemaTitleBytes().isEmpty()) {
1105+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaTitle_)) {
11061106
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, schemaTitle_);
11071107
}
1108-
if (!getSchemaVersionBytes().isEmpty()) {
1108+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaVersion_)) {
11091109
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, schemaVersion_);
11101110
}
11111111
if (metadata_ != null) {
11121112
output.writeMessage(16, getMetadata());
11131113
}
1114-
if (!getDescriptionBytes().isEmpty()) {
1114+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
11151115
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, description_);
11161116
}
11171117
unknownFields.writeTo(output);
@@ -1123,16 +1123,16 @@ public int getSerializedSize() {
11231123
if (size != -1) return size;
11241124

11251125
size = 0;
1126-
if (!getNameBytes().isEmpty()) {
1126+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
11271127
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
11281128
}
1129-
if (!getDisplayNameBytes().isEmpty()) {
1129+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
11301130
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
11311131
}
1132-
if (!getUriBytes().isEmpty()) {
1132+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
11331133
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, uri_);
11341134
}
1135-
if (!getEtagBytes().isEmpty()) {
1135+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
11361136
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_);
11371137
}
11381138
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
@@ -1154,16 +1154,16 @@ public int getSerializedSize() {
11541154
if (state_ != com.google.cloud.aiplatform.v1.Artifact.State.STATE_UNSPECIFIED.getNumber()) {
11551155
size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, state_);
11561156
}
1157-
if (!getSchemaTitleBytes().isEmpty()) {
1157+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaTitle_)) {
11581158
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, schemaTitle_);
11591159
}
1160-
if (!getSchemaVersionBytes().isEmpty()) {
1160+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaVersion_)) {
11611161
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, schemaVersion_);
11621162
}
11631163
if (metadata_ != null) {
11641164
size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getMetadata());
11651165
}
1166-
if (!getDescriptionBytes().isEmpty()) {
1166+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
11671167
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, description_);
11681168
}
11691169
size += unknownFields.getSerializedSize();

proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Attribution.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -571,13 +571,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
571571
for (int i = 0; i < outputIndex_.size(); i++) {
572572
output.writeInt32NoTag(outputIndex_.getInt(i));
573573
}
574-
if (!getOutputDisplayNameBytes().isEmpty()) {
574+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputDisplayName_)) {
575575
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, outputDisplayName_);
576576
}
577577
if (approximationError_ != 0D) {
578578
output.writeDouble(6, approximationError_);
579579
}
580-
if (!getOutputNameBytes().isEmpty()) {
580+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputName_)) {
581581
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, outputName_);
582582
}
583583
unknownFields.writeTo(output);
@@ -611,13 +611,13 @@ public int getSerializedSize() {
611611
}
612612
outputIndexMemoizedSerializedSize = dataSize;
613613
}
614-
if (!getOutputDisplayNameBytes().isEmpty()) {
614+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputDisplayName_)) {
615615
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, outputDisplayName_);
616616
}
617617
if (approximationError_ != 0D) {
618618
size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, approximationError_);
619619
}
620-
if (!getOutputNameBytes().isEmpty()) {
620+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputName_)) {
621621
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, outputName_);
622622
}
623623
size += unknownFields.getSerializedSize();

proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutoscalingMetricSpec.java

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

211211
@java.lang.Override
212212
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
213-
if (!getMetricNameBytes().isEmpty()) {
213+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) {
214214
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_);
215215
}
216216
if (target_ != 0) {
@@ -225,7 +225,7 @@ public int getSerializedSize() {
225225
if (size != -1) return size;
226226

227227
size = 0;
228-
if (!getMetricNameBytes().isEmpty()) {
228+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) {
229229
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_);
230230
}
231231
if (target_ != 0) {

proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesRequest.java

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

296296
@java.lang.Override
297297
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
298-
if (!getParentBytes().isEmpty()) {
298+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
299299
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
300300
}
301301
for (int i = 0; i < requests_.size(); i++) {
@@ -310,7 +310,7 @@ public int getSerializedSize() {
310310
if (size != -1) return size;
311311

312312
size = 0;
313-
if (!getParentBytes().isEmpty()) {
313+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
314314
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
315315
}
316316
for (int i = 0; i < requests_.size(); i++) {

0 commit comments

Comments
 (0)