Skip to content

Commit

Permalink
chore: Use Protobuf Message instead of GeneratedMessageV3
Browse files Browse the repository at this point in the history
  • Loading branch information
lqiu96 committed Oct 28, 2024
1 parent 3703bb2 commit 8890e81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package com.google.cloud.storage;

import com.google.protobuf.AbstractMessage;
import com.google.protobuf.GeneratedMessageV3;
import com.google.protobuf.Message;
import com.google.protobuf.ProtocolMessageEnum;
import io.github.classgraph.ClassGraph;
import io.github.classgraph.ClassInfo;
Expand Down Expand Up @@ -55,7 +55,7 @@ public static void main(String[] args) throws IOException {
+ " \"methods\":[{\"name\":\"<init>\",\"parameterTypes\":[] }]\n"
+ " }"),
Stream.of(
scanResult.getSubclasses(GeneratedMessageV3.class).stream(),
scanResult.getSubclasses(Message.class).stream(),
scanResult.getSubclasses(AbstractMessage.Builder.class).stream(),
scanResult.getAllEnums()
.filter(ci -> ci.implementsInterface(ProtocolMessageEnum.class))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"allDeclaredMethods":true,
"methods":[{"name":"<init>","parameterTypes":[] }]
},
{ "name": "com.google.protobuf.GeneratedMessageV3$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, "allPublicMethods": true, "allDeclaredClasses": true, "allPublicClasses": true },
{ "name": "com.google.protobuf.Message$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, "allPublicMethods": true, "allDeclaredClasses": true, "allPublicClasses": true },
{ "name": "io.grpc.alts.internal.AltsContext", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, "allPublicMethods": true, "allDeclaredClasses": true, "allPublicClasses": true },
{ "name": "io.grpc.alts.internal.AltsContext$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, "allPublicMethods": true, "allDeclaredClasses": true, "allPublicClasses": true },
{ "name": "io.grpc.alts.internal.Endpoint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, "allPublicMethods": true, "allDeclaredClasses": true, "allPublicClasses": true },
Expand Down

0 comments on commit 8890e81

Please sign in to comment.