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

Commit

Permalink
chore(bazel): update version of Protobuf to v3.20.1 (#786)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 444328399

Source-Link: googleapis/googleapis@c7ca416

Source-Link: googleapis/googleapis-gen@d617054
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDYxNzA1NDUzYTYyYjNlY2RhNzhhYTMwYzE5Mjg0MGViYzVhOGE5MCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Apr 28, 2022
1 parent bb3c669 commit 26f1231
Show file tree
Hide file tree
Showing 14 changed files with 83 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ private GetTraceRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ private ListTracesRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ private ListTracesResponse(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ private PatchTracesRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ private Trace(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ private TraceSpan(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down Expand Up @@ -649,7 +651,7 @@ public int getLabelsCount() {
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
Expand Down Expand Up @@ -744,7 +746,7 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
@java.lang.Override
public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
Expand Down Expand Up @@ -791,7 +793,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
Expand Down Expand Up @@ -2038,7 +2040,7 @@ public int getLabelsCount() {
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
Expand Down Expand Up @@ -2134,7 +2136,7 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
public java.lang.String getLabelsOrDefault(
java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
Expand Down Expand Up @@ -2181,7 +2183,7 @@ public java.lang.String getLabelsOrDefault(
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
Expand Down Expand Up @@ -2235,7 +2237,7 @@ public Builder clearLabels() {
*/
public Builder removeLabels(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
internalGetMutableLabels().getMutableMap().remove(key);
return this;
Expand Down Expand Up @@ -2286,11 +2288,12 @@ public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() {
*/
public Builder putLabels(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
if (value == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map value");
}

internalGetMutableLabels().getMutableMap().put(key, value);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,12 @@ public interface TraceSpanOrBuilder
*
* <code>map&lt;string, string&gt; labels = 7;</code>
*/
java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);

/* nullable */
java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
*
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ private Traces(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ private AttributeValue(
}
case 16:
{
valueCase_ = 2;
value_ = input.readInt64();
valueCase_ = 2;
break;
}
case 24:
{
valueCase_ = 3;
value_ = input.readBool();
valueCase_ = 3;
break;
}
default:
Expand All @@ -109,6 +109,8 @@ private AttributeValue(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down Expand Up @@ -821,8 +823,9 @@ public Builder mergeStringValue(com.google.devtools.cloudtrace.v2.TruncatableStr
} else {
if (valueCase_ == 1) {
stringValueBuilder_.mergeFrom(value);
} else {
stringValueBuilder_.setMessage(value);
}
stringValueBuilder_.setMessage(value);
}
valueCase_ = 1;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ private BatchWriteSpansRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ private Module(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ private Span(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down Expand Up @@ -612,8 +614,12 @@ public interface AttributesOrBuilder
* <code>map&lt;string, .google.devtools.cloudtrace.v2.AttributeValue&gt; attribute_map = 1;
* </code>
*/

/* nullable */
com.google.devtools.cloudtrace.v2.AttributeValue getAttributeMapOrDefault(
java.lang.String key, com.google.devtools.cloudtrace.v2.AttributeValue defaultValue);
java.lang.String key,
/* nullable */
com.google.devtools.cloudtrace.v2.AttributeValue defaultValue);
/**
*
*
Expand Down Expand Up @@ -732,6 +738,8 @@ private Attributes(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down Expand Up @@ -818,7 +826,7 @@ public int getAttributeMapCount() {
@java.lang.Override
public boolean containsAttributeMap(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
return internalGetAttributeMap().getMap().containsKey(key);
}
Expand Down Expand Up @@ -868,7 +876,7 @@ public boolean containsAttributeMap(java.lang.String key) {
public com.google.devtools.cloudtrace.v2.AttributeValue getAttributeMapOrDefault(
java.lang.String key, com.google.devtools.cloudtrace.v2.AttributeValue defaultValue) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
java.util.Map<java.lang.String, com.google.devtools.cloudtrace.v2.AttributeValue> map =
internalGetAttributeMap().getMap();
Expand All @@ -893,7 +901,7 @@ public com.google.devtools.cloudtrace.v2.AttributeValue getAttributeMapOrDefault
public com.google.devtools.cloudtrace.v2.AttributeValue getAttributeMapOrThrow(
java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
java.util.Map<java.lang.String, com.google.devtools.cloudtrace.v2.AttributeValue> map =
internalGetAttributeMap().getMap();
Expand Down Expand Up @@ -1340,7 +1348,7 @@ public int getAttributeMapCount() {
@java.lang.Override
public boolean containsAttributeMap(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
return internalGetAttributeMap().getMap().containsKey(key);
}
Expand Down Expand Up @@ -1390,7 +1398,7 @@ public boolean containsAttributeMap(java.lang.String key) {
public com.google.devtools.cloudtrace.v2.AttributeValue getAttributeMapOrDefault(
java.lang.String key, com.google.devtools.cloudtrace.v2.AttributeValue defaultValue) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
java.util.Map<java.lang.String, com.google.devtools.cloudtrace.v2.AttributeValue> map =
internalGetAttributeMap().getMap();
Expand All @@ -1415,7 +1423,7 @@ public com.google.devtools.cloudtrace.v2.AttributeValue getAttributeMapOrDefault
public com.google.devtools.cloudtrace.v2.AttributeValue getAttributeMapOrThrow(
java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
java.util.Map<java.lang.String, com.google.devtools.cloudtrace.v2.AttributeValue> map =
internalGetAttributeMap().getMap();
Expand Down Expand Up @@ -1446,7 +1454,7 @@ public Builder clearAttributeMap() {
*/
public Builder removeAttributeMap(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
internalGetMutableAttributeMap().getMutableMap().remove(key);
return this;
Expand Down Expand Up @@ -1475,11 +1483,12 @@ public Builder removeAttributeMap(java.lang.String key) {
public Builder putAttributeMap(
java.lang.String key, com.google.devtools.cloudtrace.v2.AttributeValue value) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
if (value == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map value");
}

internalGetMutableAttributeMap().getMutableMap().put(key, value);
return this;
}
Expand Down Expand Up @@ -1846,6 +1855,8 @@ private TimeEvent(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down Expand Up @@ -2045,6 +2056,8 @@ private Annotation(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(this);
Expand Down Expand Up @@ -3144,6 +3157,8 @@ private MessageEvent(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(this);
Expand Down Expand Up @@ -5035,8 +5050,9 @@ public Builder mergeAnnotation(
} else {
if (valueCase_ == 2) {
annotationBuilder_.mergeFrom(value);
} else {
annotationBuilder_.setMessage(value);
}
annotationBuilder_.setMessage(value);
}
valueCase_ = 2;
return this;
Expand Down Expand Up @@ -5251,8 +5267,9 @@ public Builder mergeMessageEvent(
} else {
if (valueCase_ == 3) {
messageEventBuilder_.mergeFrom(value);
} else {
messageEventBuilder_.setMessage(value);
}
messageEventBuilder_.setMessage(value);
}
valueCase_ = 3;
return this;
Expand Down Expand Up @@ -5577,6 +5594,8 @@ private TimeEvents(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down Expand Up @@ -6851,6 +6870,8 @@ private Link(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down Expand Up @@ -8305,6 +8326,8 @@ private Links(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Loading

0 comments on commit 26f1231

Please sign in to comment.