Skip to content

Commit a9c2abe

Browse files
chore(bazel): update protobuf to v3.21.7 (#585)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 477955264 Source-Link: https://togithub.com/googleapis/googleapis/commit/a724450af76d0001f23602684c49cd6a4b3a5654 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/4abcbcaec855e74a0b22a4988cf9e0eb61a83094 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFiY2JjYWVjODU1ZTc0YTBiMjJhNDk4OGNmOWUwZWI2MWE4MzA5NCJ9
1 parent ebed28e commit a9c2abe

File tree

101 files changed

+7541
-11650
lines changed

Some content is hidden

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

101 files changed

+7541
-11650
lines changed

java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilter.java

Lines changed: 51 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -50,77 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5050
return this.unknownFields;
5151
}
5252

53-
private BetweenFilter(
54-
com.google.protobuf.CodedInputStream input,
55-
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
56-
throws com.google.protobuf.InvalidProtocolBufferException {
57-
this();
58-
if (extensionRegistry == null) {
59-
throw new java.lang.NullPointerException();
60-
}
61-
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
62-
com.google.protobuf.UnknownFieldSet.newBuilder();
63-
try {
64-
boolean done = false;
65-
while (!done) {
66-
int tag = input.readTag();
67-
switch (tag) {
68-
case 0:
69-
done = true;
70-
break;
71-
case 10:
72-
{
73-
com.google.analytics.data.v1alpha.NumericValue.Builder subBuilder = null;
74-
if (fromValue_ != null) {
75-
subBuilder = fromValue_.toBuilder();
76-
}
77-
fromValue_ =
78-
input.readMessage(
79-
com.google.analytics.data.v1alpha.NumericValue.parser(), extensionRegistry);
80-
if (subBuilder != null) {
81-
subBuilder.mergeFrom(fromValue_);
82-
fromValue_ = subBuilder.buildPartial();
83-
}
84-
85-
break;
86-
}
87-
case 18:
88-
{
89-
com.google.analytics.data.v1alpha.NumericValue.Builder subBuilder = null;
90-
if (toValue_ != null) {
91-
subBuilder = toValue_.toBuilder();
92-
}
93-
toValue_ =
94-
input.readMessage(
95-
com.google.analytics.data.v1alpha.NumericValue.parser(), extensionRegistry);
96-
if (subBuilder != null) {
97-
subBuilder.mergeFrom(toValue_);
98-
toValue_ = subBuilder.buildPartial();
99-
}
100-
101-
break;
102-
}
103-
default:
104-
{
105-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
106-
done = true;
107-
}
108-
break;
109-
}
110-
}
111-
}
112-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
113-
throw e.setUnfinishedMessage(this);
114-
} catch (com.google.protobuf.UninitializedMessageException e) {
115-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
116-
} catch (java.io.IOException e) {
117-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
118-
} finally {
119-
this.unknownFields = unknownFields.build();
120-
makeExtensionsImmutable();
121-
}
122-
}
123-
12453
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
12554
return com.google.analytics.data.v1alpha.ReportingApiProto
12655
.internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor;
@@ -252,7 +181,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
252181
if (toValue_ != null) {
253182
output.writeMessage(2, getToValue());
254183
}
255-
unknownFields.writeTo(output);
184+
getUnknownFields().writeTo(output);
256185
}
257186

258187
@java.lang.Override
@@ -267,7 +196,7 @@ public int getSerializedSize() {
267196
if (toValue_ != null) {
268197
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getToValue());
269198
}
270-
size += unknownFields.getSerializedSize();
199+
size += getUnknownFields().getSerializedSize();
271200
memoizedSize = size;
272201
return size;
273202
}
@@ -291,7 +220,7 @@ public boolean equals(final java.lang.Object obj) {
291220
if (hasToValue()) {
292221
if (!getToValue().equals(other.getToValue())) return false;
293222
}
294-
if (!unknownFields.equals(other.unknownFields)) return false;
223+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
295224
return true;
296225
}
297226

@@ -310,7 +239,7 @@ public int hashCode() {
310239
hash = (37 * hash) + TO_VALUE_FIELD_NUMBER;
311240
hash = (53 * hash) + getToValue().hashCode();
312241
}
313-
hash = (29 * hash) + unknownFields.hashCode();
242+
hash = (29 * hash) + getUnknownFields().hashCode();
314243
memoizedHashCode = hash;
315244
return hash;
316245
}
@@ -439,17 +368,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
439368
}
440369

441370
// Construct using com.google.analytics.data.v1alpha.BetweenFilter.newBuilder()
442-
private Builder() {
443-
maybeForceBuilderInitialization();
444-
}
371+
private Builder() {}
445372

446373
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
447374
super(parent);
448-
maybeForceBuilderInitialization();
449-
}
450-
451-
private void maybeForceBuilderInitialization() {
452-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
453375
}
454376

455377
@java.lang.Override
@@ -560,7 +482,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.BetweenFilter other)
560482
if (other.hasToValue()) {
561483
mergeToValue(other.getToValue());
562484
}
563-
this.mergeUnknownFields(other.unknownFields);
485+
this.mergeUnknownFields(other.getUnknownFields());
564486
onChanged();
565487
return this;
566488
}
@@ -575,17 +497,43 @@ public Builder mergeFrom(
575497
com.google.protobuf.CodedInputStream input,
576498
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
577499
throws java.io.IOException {
578-
com.google.analytics.data.v1alpha.BetweenFilter parsedMessage = null;
500+
if (extensionRegistry == null) {
501+
throw new java.lang.NullPointerException();
502+
}
579503
try {
580-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
504+
boolean done = false;
505+
while (!done) {
506+
int tag = input.readTag();
507+
switch (tag) {
508+
case 0:
509+
done = true;
510+
break;
511+
case 10:
512+
{
513+
input.readMessage(getFromValueFieldBuilder().getBuilder(), extensionRegistry);
514+
515+
break;
516+
} // case 10
517+
case 18:
518+
{
519+
input.readMessage(getToValueFieldBuilder().getBuilder(), extensionRegistry);
520+
521+
break;
522+
} // case 18
523+
default:
524+
{
525+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
526+
done = true; // was an endgroup tag
527+
}
528+
break;
529+
} // default:
530+
} // switch (tag)
531+
} // while (!done)
581532
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
582-
parsedMessage = (com.google.analytics.data.v1alpha.BetweenFilter) e.getUnfinishedMessage();
583533
throw e.unwrapIOException();
584534
} finally {
585-
if (parsedMessage != null) {
586-
mergeFrom(parsedMessage);
587-
}
588-
}
535+
onChanged();
536+
} // finally
589537
return this;
590538
}
591539

@@ -993,7 +941,18 @@ public BetweenFilter parsePartialFrom(
993941
com.google.protobuf.CodedInputStream input,
994942
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
995943
throws com.google.protobuf.InvalidProtocolBufferException {
996-
return new BetweenFilter(input, extensionRegistry);
944+
Builder builder = newBuilder();
945+
try {
946+
builder.mergeFrom(input, extensionRegistry);
947+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
948+
throw e.setUnfinishedMessage(builder.buildPartial());
949+
} catch (com.google.protobuf.UninitializedMessageException e) {
950+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
951+
} catch (java.io.IOException e) {
952+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
953+
.setUnfinishedMessage(builder.buildPartial());
954+
}
955+
return builder.buildPartial();
997956
}
998957
};
999958

0 commit comments

Comments
 (0)