ui/shared/src/main/java/com/squareup/subzero/shared/SubzeroUtils.java
public static void validateInternalCommandRequest(InternalCommandRequest request)
      throws VerificationException, IllegalArgumentException {
    switch (request.getCommandCase()) {
      case INITWALLET:
        validateInitWalletInternalCommandRequest(request);
        break;
      case FINALIZEWALLET:
        validateFinalizeWalletInternalCommandRequest(request.getFinalizeWalletOrThrow());
        break;
      case SIGNTX:
        validateSignTxInternalCommandRequest(request.getSignTxOrThrow());
        break;
      default:
        throw new IllegalStateException("unreachable");
    }
  }
/**
   * Verifies size/count limits for InternalCommandRequest proto fields
   * @param request InternalCommandRequest to validate
   * @throws VerificationException if limits are exceeded
   * @throws IllegalArgumentException if InternalCommandRequest doesn't contain matching message
   */
Verifies size/count limits for InternalCommandRequest proto fields
@param request InternalCommandRequest to validate
@throws VerificationException if limits are exceeded
@throws IllegalArgumentException if InternalCommandRequest doesn't contain matching message
Verifies size / count limits for InternalCommandRequest proto fields @param request InternalCommandRequest to validate @throws VerificationException if limits are exceeded @throws IllegalArgumentException if InternalCommandRequest doesn ' t contain matching message
public static void validateInternalCommandRequest(InternalCommandRequest request)
      throws VerificationException, IllegalArgumentException {
    switch (request.getCommandCase()) {
      case INITWALLET:
        validateInitWalletInternalCommandRequest(request);
        break;
      case FINALIZEWALLET:
        validateFinalizeWalletInternalCommandRequest(request.getFinalizeWalletOrThrow());
        break;
      case SIGNTX:
        validateSignTxInternalCommandRequest(request.getSignTxOrThrow());
        break;
      default:
        throw new IllegalStateException("unreachable");
    }
  }
public static void validateInternalCommandRequest ( InternalCommandRequest request ) throws VerificationException , IllegalArgumentException { switch ( request . getCommandCase ( ) ) { case INITWALLET : validateInitWalletInternalCommandRequest ( request ) ; break ; case FINALIZEWALLET : validateFinalizeWalletInternalCommandRequest ( request . getFinalizeWalletOrThrow ( ) ) ; break ; case SIGNTX : validateSignTxInternalCommandRequest ( request . getSignTxOrThrow ( ) ) ; break ; default : throw new IllegalStateException ( "unreachable" ) ; } }
Verifies size/count limits for InternalCommandRequest proto fields
 @param request InternalCommandRequest to validate
 @throws VerificationException if limits are exceeded
 @throws IllegalArgumentException if InternalCommandRequest doesn't contain matching message
Verifies size / count limits for InternalCommandRequest proto fields @param request InternalCommandRequest to validate @throws VerificationException if limits are exceeded @throws IllegalArgumentException if InternalCommandRequest doesn ' t contain matching message