Skip to content

Commit 68a6a94

Browse files
chore(bazel): update protobuf to v3.21.7 (googleapis#487)
- [ ] 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 beb5552 commit 68a6a94

File tree

229 files changed

+14195
-21968
lines changed

Some content is hidden

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

229 files changed

+14195
-21968
lines changed

java-analytics-admin/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file:
2222
<dependency>
2323
<groupId>com.google.analytics</groupId>
2424
<artifactId>google-analytics-admin</artifactId>
25-
<version>0.13.3</version>
25+
<version>0.13.4</version>
2626
</dependency>
2727
```
2828

2929
If you are using Gradle without BOM, add this to your dependencies:
3030

3131
```Groovy
32-
implementation 'com.google.analytics:google-analytics-admin:0.13.3'
32+
implementation 'com.google.analytics:google-analytics-admin:0.13.4'
3333
```
3434

3535
If you are using SBT, add this to your dependencies:
3636

3737
```Scala
38-
libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.13.3"
38+
libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.13.4"
3939
```
4040

4141
## Authentication

java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilter.java

+51-93
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 AccessBetweenFilter(
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.admin.v1alpha.NumericValue.Builder subBuilder = null;
74-
if (fromValue_ != null) {
75-
subBuilder = fromValue_.toBuilder();
76-
}
77-
fromValue_ =
78-
input.readMessage(
79-
com.google.analytics.admin.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.admin.v1alpha.NumericValue.Builder subBuilder = null;
90-
if (toValue_ != null) {
91-
subBuilder = toValue_.toBuilder();
92-
}
93-
toValue_ =
94-
input.readMessage(
95-
com.google.analytics.admin.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.admin.v1alpha.AccessReportProto
12655
.internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_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
}
@@ -440,17 +369,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
440369
}
441370

442371
// Construct using com.google.analytics.admin.v1alpha.AccessBetweenFilter.newBuilder()
443-
private Builder() {
444-
maybeForceBuilderInitialization();
445-
}
372+
private Builder() {}
446373

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

456378
@java.lang.Override
@@ -561,7 +483,7 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessBetweenFilter
561483
if (other.hasToValue()) {
562484
mergeToValue(other.getToValue());
563485
}
564-
this.mergeUnknownFields(other.unknownFields);
486+
this.mergeUnknownFields(other.getUnknownFields());
565487
onChanged();
566488
return this;
567489
}
@@ -576,18 +498,43 @@ public Builder mergeFrom(
576498
com.google.protobuf.CodedInputStream input,
577499
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
578500
throws java.io.IOException {
579-
com.google.analytics.admin.v1alpha.AccessBetweenFilter parsedMessage = null;
501+
if (extensionRegistry == null) {
502+
throw new java.lang.NullPointerException();
503+
}
580504
try {
581-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
505+
boolean done = false;
506+
while (!done) {
507+
int tag = input.readTag();
508+
switch (tag) {
509+
case 0:
510+
done = true;
511+
break;
512+
case 10:
513+
{
514+
input.readMessage(getFromValueFieldBuilder().getBuilder(), extensionRegistry);
515+
516+
break;
517+
} // case 10
518+
case 18:
519+
{
520+
input.readMessage(getToValueFieldBuilder().getBuilder(), extensionRegistry);
521+
522+
break;
523+
} // case 18
524+
default:
525+
{
526+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
527+
done = true; // was an endgroup tag
528+
}
529+
break;
530+
} // default:
531+
} // switch (tag)
532+
} // while (!done)
582533
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
583-
parsedMessage =
584-
(com.google.analytics.admin.v1alpha.AccessBetweenFilter) e.getUnfinishedMessage();
585534
throw e.unwrapIOException();
586535
} finally {
587-
if (parsedMessage != null) {
588-
mergeFrom(parsedMessage);
589-
}
590-
}
536+
onChanged();
537+
} // finally
591538
return this;
592539
}
593540

@@ -995,7 +942,18 @@ public AccessBetweenFilter parsePartialFrom(
995942
com.google.protobuf.CodedInputStream input,
996943
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
997944
throws com.google.protobuf.InvalidProtocolBufferException {
998-
return new AccessBetweenFilter(input, extensionRegistry);
945+
Builder builder = newBuilder();
946+
try {
947+
builder.mergeFrom(input, extensionRegistry);
948+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
949+
throw e.setUnfinishedMessage(builder.buildPartial());
950+
} catch (com.google.protobuf.UninitializedMessageException e) {
951+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
952+
} catch (java.io.IOException e) {
953+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
954+
.setUnfinishedMessage(builder.buildPartial());
955+
}
956+
return builder.buildPartial();
999957
}
1000958
};
1001959

0 commit comments

Comments
 (0)