protected final Object dynamicMethod()

in sdk/sdk/src/main/java/com/google/atap/jacquard/protocol/JacquardProtocol.java [31029:31224]


    protected final Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        Object arg0, Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new com.google.atap.jacquard.protocol.JacquardProtocol.OtaDfuMetadata();
        }
        case IS_INITIALIZED: {
          return DEFAULT_INSTANCE;
        }
        case MAKE_IMMUTABLE: {
          signedHash_.makeImmutable();
          hashContext_.makeImmutable();
          return null;
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case VISIT: {
          Visitor visitor = (Visitor) arg0;
          com.google.atap.jacquard.protocol.JacquardProtocol.OtaDfuMetadata other = (com.google.atap.jacquard.protocol.JacquardProtocol.OtaDfuMetadata) arg1;
          finalSize_ = visitor.visitInt(
              hasFinalSize(), finalSize_,
              other.hasFinalSize(), other.finalSize_);
          finalCrc_ = visitor.visitInt(
              hasFinalCrc(), finalCrc_,
              other.hasFinalCrc(), other.finalCrc_);
          currentSize_ = visitor.visitInt(
              hasCurrentSize(), currentSize_,
              other.hasCurrentSize(), other.currentSize_);
          currentCrc_ = visitor.visitInt(
              hasCurrentCrc(), currentCrc_,
              other.hasCurrentCrc(), other.currentCrc_);
          finalImageSize_ = visitor.visitInt(
              hasFinalImageSize(), finalImageSize_,
              other.hasFinalImageSize(), other.finalImageSize_);
          finalImageCrc_ = visitor.visitInt(
              hasFinalImageCrc(), finalImageCrc_,
              other.hasFinalImageCrc(), other.finalImageCrc_);
          currentImageSize_ = visitor.visitInt(
              hasCurrentImageSize(), currentImageSize_,
              other.hasCurrentImageSize(), other.currentImageSize_);
          currentImageCrc_ = visitor.visitInt(
              hasCurrentImageCrc(), currentImageCrc_,
              other.hasCurrentImageCrc(), other.currentImageCrc_);
          writeAddr_ = visitor.visitInt(
              hasWriteAddr(), writeAddr_,
              other.hasWriteAddr(), other.writeAddr_);
          signedHash_= visitor.visitIntList(signedHash_, other.signedHash_);
          hashContext_= visitor.visitIntList(hashContext_, other.hashContext_);
          isSigned_ = visitor.visitBoolean(
              hasIsSigned(), isSigned_,
              other.hasIsSigned(), other.isSigned_);
          if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
              .INSTANCE) {
            bitField0_ |= other.bitField0_;
          }
          return this;
        }
        case MERGE_FROM_STREAM: {
          com.google.protobuf.CodedInputStream input =
              (com.google.protobuf.CodedInputStream) arg0;
          com.google.protobuf.ExtensionRegistryLite extensionRegistry =
              (com.google.protobuf.ExtensionRegistryLite) arg1;
          try {
            boolean done = false;
            while (!done) {
              int tag = input.readTag();
              switch (tag) {
                case 0:
                  done = true;
                  break;
                default: {
                  if (!parseUnknownField(tag, input)) {
                    done = true;
                  }
                  break;
                }
                case 8: {
                  bitField0_ |= 0x00000001;
                  finalSize_ = input.readUInt32();
                  break;
                }
                case 16: {
                  bitField0_ |= 0x00000002;
                  finalCrc_ = input.readUInt32();
                  break;
                }
                case 24: {
                  bitField0_ |= 0x00000004;
                  currentSize_ = input.readUInt32();
                  break;
                }
                case 32: {
                  bitField0_ |= 0x00000008;
                  currentCrc_ = input.readUInt32();
                  break;
                }
                case 40: {
                  bitField0_ |= 0x00000010;
                  finalImageSize_ = input.readUInt32();
                  break;
                }
                case 48: {
                  bitField0_ |= 0x00000020;
                  finalImageCrc_ = input.readUInt32();
                  break;
                }
                case 56: {
                  bitField0_ |= 0x00000040;
                  currentImageSize_ = input.readUInt32();
                  break;
                }
                case 64: {
                  bitField0_ |= 0x00000080;
                  currentImageCrc_ = input.readUInt32();
                  break;
                }
                case 72: {
                  bitField0_ |= 0x00000100;
                  writeAddr_ = input.readUInt32();
                  break;
                }
                case 80: {
                  if (!signedHash_.isModifiable()) {
                    signedHash_ =
                        com.google.protobuf.GeneratedMessageLite.mutableCopy(signedHash_);
                  }
                  signedHash_.addInt(input.readUInt32());
                  break;
                }
                case 82: {
                  int length = input.readRawVarint32();
                  int limit = input.pushLimit(length);
                  if (!signedHash_.isModifiable() && input.getBytesUntilLimit() > 0) {
                    signedHash_ =
                        com.google.protobuf.GeneratedMessageLite.mutableCopy(signedHash_);
                  }
                  while (input.getBytesUntilLimit() > 0) {
                    signedHash_.addInt(input.readUInt32());
                  }
                  input.popLimit(limit);
                  break;
                }
                case 88: {
                  if (!hashContext_.isModifiable()) {
                    hashContext_ =
                        com.google.protobuf.GeneratedMessageLite.mutableCopy(hashContext_);
                  }
                  hashContext_.addInt(input.readUInt32());
                  break;
                }
                case 90: {
                  int length = input.readRawVarint32();
                  int limit = input.pushLimit(length);
                  if (!hashContext_.isModifiable() && input.getBytesUntilLimit() > 0) {
                    hashContext_ =
                        com.google.protobuf.GeneratedMessageLite.mutableCopy(hashContext_);
                  }
                  while (input.getBytesUntilLimit() > 0) {
                    hashContext_.addInt(input.readUInt32());
                  }
                  input.popLimit(limit);
                  break;
                }
                case 96: {
                  bitField0_ |= 0x00000200;
                  isSigned_ = input.readBool();
                  break;
                }
              }
            }
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw new RuntimeException(e.setUnfinishedMessage(this));
          } catch (java.io.IOException e) {
            throw new RuntimeException(
                new com.google.protobuf.InvalidProtocolBufferException(
                    e.getMessage()).setUnfinishedMessage(this));
          } finally {
          }
        }
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          if (PARSER == null) {    synchronized (com.google.atap.jacquard.protocol.JacquardProtocol.OtaDfuMetadata.class) {
              if (PARSER == null) {
                PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE);
              }
            }
          }
          return PARSER;
        }
      }
      throw new UnsupportedOperationException();
    }