MCPcopy Create free account
hub / github.com/InsightIM/Tok-Android / dynamicMethod

Method dynamicMethod

app/src/main/java/im/tox/proto/Av.java:1265–1347  ·  view source on GitHub ↗
(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        Object arg0, Object arg1)

Source from the content-addressed store, hash-verified

1263 // @@protoc_insertion_point(builder_scope:im.tox.proto.AudioBitRate)
1264 }
1265 protected final Object dynamicMethod(
1266 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
1267 Object arg0, Object arg1) {
1268 switch (method) {
1269 case NEW_MUTABLE_INSTANCE: {
1270 return new im.tox.proto.Av.AudioBitRate();
1271 }
1272 case IS_INITIALIZED: {
1273 return DEFAULT_INSTANCE;
1274 }
1275 case MAKE_IMMUTABLE: {
1276 return null;
1277 }
1278 case NEW_BUILDER: {
1279 return new Builder();
1280 }
1281 case VISIT: {
1282 Visitor visitor = (Visitor) arg0;
1283 im.tox.proto.Av.AudioBitRate other = (im.tox.proto.Av.AudioBitRate) arg1;
1284 friendNumber_ = visitor.visitInt(friendNumber_ != 0, friendNumber_,
1285 other.friendNumber_ != 0, other.friendNumber_);
1286 audioBitRate_ = visitor.visitInt(audioBitRate_ != 0, audioBitRate_,
1287 other.audioBitRate_ != 0, other.audioBitRate_);
1288 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
1289 .INSTANCE) {
1290 }
1291 return this;
1292 }
1293 case MERGE_FROM_STREAM: {
1294 com.google.protobuf.CodedInputStream input =
1295 (com.google.protobuf.CodedInputStream) arg0;
1296 com.google.protobuf.ExtensionRegistryLite extensionRegistry =
1297 (com.google.protobuf.ExtensionRegistryLite) arg1;
1298 try {
1299 boolean done = false;
1300 while (!done) {
1301 int tag = input.readTag();
1302 switch (tag) {
1303 case 0:
1304 done = true;
1305 break;
1306 default: {
1307 if (!input.skipField(tag)) {
1308 done = true;
1309 }
1310 break;
1311 }
1312 case 8: {
1313
1314 friendNumber_ = input.readUInt32();
1315 break;
1316 }
1317 case 16: {
1318
1319 audioBitRate_ = input.readUInt32();
1320 break;
1321 }
1322 }

Callers

nothing calls this directly

Calls 1

getMessageMethod · 0.65

Tested by

no test coverage detected