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

Commit

Permalink
fix: Remove invalid resource annotations (#699)
Browse files Browse the repository at this point in the history
* 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: googleapis/googleapis-gen@f0d78f4
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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Oct 21, 2021
1 parent 6a52a58 commit 5ece66d
Show file tree
Hide file tree
Showing 582 changed files with 2,515 additions and 2,641 deletions.
Expand Up @@ -357,7 +357,7 @@ public final boolean isInitialized() {

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

size = 0;
if (!getContextBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(context_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, context_);
}
{
Expand Down
Expand Up @@ -258,7 +258,7 @@ public final boolean isInitialized() {

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

size = 0;
if (!getContextBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(context_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, context_);
}
{
Expand Down
Expand Up @@ -269,7 +269,7 @@ public final boolean isInitialized() {

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

size = 0;
if (!getExecutionBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(execution_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, execution_);
}
for (int i = 0; i < events_.size(); i++) {
Expand Down
Expand Up @@ -252,7 +252,7 @@ public final boolean isInitialized() {

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

size = 0;
if (!getTrialNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trialName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, trialName_);
}
if (measurement_ != null) {
Expand Down
Expand Up @@ -745,10 +745,10 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!getPayloadSchemaUriBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payloadSchemaUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, payloadSchemaUri_);
}
if (payload_ != null) {
Expand All @@ -765,7 +765,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (updateTime_ != null) {
output.writeMessage(7, getUpdateTime());
}
if (!getEtagBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, etag_);
}
unknownFields.writeTo(output);
Expand All @@ -777,10 +777,10 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!getPayloadSchemaUriBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payloadSchemaUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, payloadSchemaUri_);
}
if (payload_ != null) {
Expand All @@ -805,7 +805,7 @@ public int getSerializedSize() {
if (updateTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime());
}
if (!getEtagBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -422,10 +422,10 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!getDisplayNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
}
if (createTime_ != null) {
Expand All @@ -434,7 +434,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (updateTime_ != null) {
output.writeMessage(4, getUpdateTime());
}
if (!getEtagBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, etag_);
}
unknownFields.writeTo(output);
Expand All @@ -446,10 +446,10 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!getDisplayNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
}
if (createTime_ != null) {
Expand All @@ -458,7 +458,7 @@ public int getSerializedSize() {
if (updateTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime());
}
if (!getEtagBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, etag_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -1079,16 +1079,16 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!getDisplayNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
}
if (!getUriBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, uri_);
}
if (!getEtagBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
Expand All @@ -1102,16 +1102,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (state_ != com.google.cloud.aiplatform.v1.Artifact.State.STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(13, state_);
}
if (!getSchemaTitleBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaTitle_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, schemaTitle_);
}
if (!getSchemaVersionBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, schemaVersion_);
}
if (metadata_ != null) {
output.writeMessage(16, getMetadata());
}
if (!getDescriptionBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, description_);
}
unknownFields.writeTo(output);
Expand All @@ -1123,16 +1123,16 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!getDisplayNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
}
if (!getUriBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, uri_);
}
if (!getEtagBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_);
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
Expand All @@ -1154,16 +1154,16 @@ public int getSerializedSize() {
if (state_ != com.google.cloud.aiplatform.v1.Artifact.State.STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, state_);
}
if (!getSchemaTitleBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaTitle_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, schemaTitle_);
}
if (!getSchemaVersionBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, schemaVersion_);
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getMetadata());
}
if (!getDescriptionBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, description_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -571,13 +571,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < outputIndex_.size(); i++) {
output.writeInt32NoTag(outputIndex_.getInt(i));
}
if (!getOutputDisplayNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputDisplayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, outputDisplayName_);
}
if (approximationError_ != 0D) {
output.writeDouble(6, approximationError_);
}
if (!getOutputNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, outputName_);
}
unknownFields.writeTo(output);
Expand Down Expand Up @@ -611,13 +611,13 @@ public int getSerializedSize() {
}
outputIndexMemoizedSerializedSize = dataSize;
}
if (!getOutputDisplayNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputDisplayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, outputDisplayName_);
}
if (approximationError_ != 0D) {
size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, approximationError_);
}
if (!getOutputNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, outputName_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -210,7 +210,7 @@ public final boolean isInitialized() {

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

size = 0;
if (!getMetricNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_);
}
if (target_ != 0) {
Expand Down
Expand Up @@ -295,7 +295,7 @@ public final boolean isInitialized() {

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

size = 0;
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
for (int i = 0; i < requests_.size(); i++) {
Expand Down
Expand Up @@ -292,7 +292,7 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
for (int i = 0; i < migrateResourceRequests_.size(); i++) {
Expand All @@ -307,7 +307,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
for (int i = 0; i < migrateResourceRequests_.size(); i++) {
Expand Down

0 comments on commit 5ece66d

Please sign in to comment.