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

Method dynamicMethod

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

Source from the content-addressed store, hash-verified

916 // @@protoc_insertion_point(builder_scope:im.tox.proto.CallState)
917 }
918 protected final Object dynamicMethod(
919 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
920 Object arg0, Object arg1) {
921 switch (method) {
922 case NEW_MUTABLE_INSTANCE: {
923 return new im.tox.proto.Av.CallState();
924 }
925 case IS_INITIALIZED: {
926 return DEFAULT_INSTANCE;
927 }
928 case MAKE_IMMUTABLE: {
929 callState_.makeImmutable();
930 return null;
931 }
932 case NEW_BUILDER: {
933 return new Builder();
934 }
935 case VISIT: {
936 Visitor visitor = (Visitor) arg0;
937 im.tox.proto.Av.CallState other = (im.tox.proto.Av.CallState) arg1;
938 friendNumber_ = visitor.visitInt(friendNumber_ != 0, friendNumber_,
939 other.friendNumber_ != 0, other.friendNumber_);
940 callState_= visitor.visitIntList(callState_, other.callState_);
941 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
942 .INSTANCE) {
943 bitField0_ |= other.bitField0_;
944 }
945 return this;
946 }
947 case MERGE_FROM_STREAM: {
948 com.google.protobuf.CodedInputStream input =
949 (com.google.protobuf.CodedInputStream) arg0;
950 com.google.protobuf.ExtensionRegistryLite extensionRegistry =
951 (com.google.protobuf.ExtensionRegistryLite) arg1;
952 try {
953 boolean done = false;
954 while (!done) {
955 int tag = input.readTag();
956 switch (tag) {
957 case 0:
958 done = true;
959 break;
960 default: {
961 if (!input.skipField(tag)) {
962 done = true;
963 }
964 break;
965 }
966 case 8: {
967
968 friendNumber_ = input.readUInt32();
969 break;
970 }
971 case 16: {
972 if (!callState_.isModifiable()) {
973 callState_ =
974 com.google.protobuf.GeneratedMessageLite.mutableCopy(callState_);
975 }

Callers

nothing calls this directly

Calls 1

getMessageMethod · 0.65

Tested by

no test coverage detected